public class TradeMachineTileEntity
extends net.minecraft.tileentity.TileEntity
implements net.minecraft.tileentity.ITickableTileEntity
Modifier and Type | Field and Description |
---|---|
net.minecraft.entity.player.ServerPlayerEntity |
player1 |
net.minecraft.entity.player.ServerPlayerEntity |
player2 |
int |
playerCount |
net.minecraft.nbt.CompoundNBT |
poke1 |
net.minecraft.nbt.CompoundNBT |
poke2 |
int |
pos1 |
int |
pos2 |
boolean |
ready1 |
boolean |
ready2 |
java.lang.String |
user1 |
java.lang.String |
user2 |
Constructor and Description |
---|
TradeMachineTileEntity() |
Modifier and Type | Method and Description |
---|---|
java.util.UUID |
getOwnerUUID() |
net.minecraft.network.play.server.SUpdateTileEntityPacket |
getUpdatePacket() |
net.minecraft.nbt.CompoundNBT |
getUpdateTag() |
void |
load(net.minecraft.block.BlockState state,
net.minecraft.nbt.CompoundNBT compound) |
void |
onDataPacket(net.minecraft.network.NetworkManager networkManager,
net.minecraft.network.play.server.SUpdateTileEntityPacket packet) |
boolean |
ready(net.minecraft.entity.player.PlayerEntity player,
boolean ready) |
void |
registerPlayer(net.minecraft.entity.player.ServerPlayerEntity player) |
void |
removePlayer(net.minecraft.entity.player.PlayerEntity player) |
net.minecraft.nbt.CompoundNBT |
save(net.minecraft.nbt.CompoundNBT compound) |
void |
sendChanges() |
void |
setColour(net.minecraft.item.DyeColor dyeColor) |
void |
setOwner(java.util.UUID owner) |
void |
setPos1(int pos)
Sets the Pokemon in the left side of the trade machine.
|
void |
setPos2(int pos)
Sets the Pokemon in the right side of the trade machine.
|
void |
tick() |
void |
trade() |
clearCache, clearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getTileData, getType, getViewDistance, hasLevel, isRemoved, loadStatic, logInvalidState, mirror, onChunkUnloaded, onlyOpCanSetNbt, rotate, setChanged, setLevelAndPosition, setPosition, setRemoved, triggerEvent
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCaps
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public int playerCount
public net.minecraft.entity.player.ServerPlayerEntity player1
public net.minecraft.entity.player.ServerPlayerEntity player2
public boolean ready1
public boolean ready2
public int pos1
public int pos2
public java.lang.String user1
public java.lang.String user2
public net.minecraft.nbt.CompoundNBT poke1
public net.minecraft.nbt.CompoundNBT poke2
public net.minecraft.nbt.CompoundNBT save(net.minecraft.nbt.CompoundNBT compound)
save
in class net.minecraft.tileentity.TileEntity
public void load(net.minecraft.block.BlockState state, net.minecraft.nbt.CompoundNBT compound)
load
in class net.minecraft.tileentity.TileEntity
public void setColour(net.minecraft.item.DyeColor dyeColor)
public java.util.UUID getOwnerUUID()
public void setOwner(java.util.UUID owner)
public net.minecraft.nbt.CompoundNBT getUpdateTag()
getUpdateTag
in class net.minecraft.tileentity.TileEntity
public net.minecraft.network.play.server.SUpdateTileEntityPacket getUpdatePacket()
getUpdatePacket
in class net.minecraft.tileentity.TileEntity
public void onDataPacket(net.minecraft.network.NetworkManager networkManager, net.minecraft.network.play.server.SUpdateTileEntityPacket packet)
onDataPacket
in interface net.minecraftforge.common.extensions.IForgeTileEntity
public void registerPlayer(net.minecraft.entity.player.ServerPlayerEntity player)
public boolean ready(net.minecraft.entity.player.PlayerEntity player, boolean ready)
public void setPos1(int pos)
pos
- The party slot of the Pokemon to add.public void setPos2(int pos)
pos
- The party slot of the Pokemon to add.public void removePlayer(net.minecraft.entity.player.PlayerEntity player)
public void trade()
public void tick()
tick
in interface net.minecraft.tileentity.ITickableTileEntity
public void sendChanges()