public class AnvilTileEntity
extends net.minecraft.tileentity.TileEntity
Constructor and Description |
---|
AnvilTileEntity() |
Modifier and Type | Method and Description |
---|---|
int |
getCount() |
net.minecraft.item.ItemStack |
getStack() |
int |
getState() |
net.minecraft.network.play.server.SUpdateTileEntityPacket |
getUpdatePacket() |
net.minecraft.nbt.CompoundNBT |
getUpdateTag() |
void |
load(net.minecraft.block.BlockState state,
net.minecraft.nbt.CompoundNBT nbt) |
void |
onDataPacket(net.minecraft.network.NetworkManager net,
net.minecraft.network.play.server.SUpdateTileEntityPacket pkt) |
net.minecraft.nbt.CompoundNBT |
save(net.minecraft.nbt.CompoundNBT nbt) |
void |
setCount(int count) |
void |
setStack(net.minecraft.item.ItemStack stack) |
void |
setState(int state) |
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 net.minecraft.nbt.CompoundNBT save(net.minecraft.nbt.CompoundNBT nbt)
save
in class net.minecraft.tileentity.TileEntity
public void load(net.minecraft.block.BlockState state, net.minecraft.nbt.CompoundNBT nbt)
load
in class net.minecraft.tileentity.TileEntity
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 net, net.minecraft.network.play.server.SUpdateTileEntityPacket pkt)
@Nonnull public net.minecraft.item.ItemStack getStack()
public int getState()
public int getCount()
public void setStack(@Nonnull net.minecraft.item.ItemStack stack)
public void setCount(int count)
public void setState(int state)