public abstract class TileTreeContainer extends net.minecraft.tileentity.TileEntity implements IStreamable, IOwnedTile
| Constructor and Description |
|---|
TileTreeContainer() |
| Modifier and Type | Method and Description |
|---|---|
IOwnerHandler |
getOwnerHandler() |
ITree |
getTree() |
net.minecraft.network.play.server.SPacketUpdateTileEntity |
getUpdatePacket() |
net.minecraft.nbt.NBTTagCompound |
getUpdateTag() |
void |
handleUpdateTag(net.minecraft.nbt.NBTTagCompound tag) |
abstract void |
onBlockTick(net.minecraft.world.World worldIn,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state,
java.util.Random rand)
Leaves and saplings will implement their logic here.
|
void |
onDataPacket(net.minecraft.network.NetworkManager net,
net.minecraft.network.play.server.SPacketUpdateTileEntity pkt) |
void |
readData(PacketBufferForestry data) |
void |
readFromNBT(net.minecraft.nbt.NBTTagCompound nbttagcompound) |
void |
setTree(ITree tree) |
boolean |
shouldRefresh(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState oldState,
net.minecraft.block.state.IBlockState newSate)
Called from Chunk.setBlockIDWithMetadata, determines if this tile entity should be re-created when the ID, or Metadata changes.
|
void |
writeData(PacketBufferForestry data) |
net.minecraft.nbt.NBTTagCompound |
writeToNBT(net.minecraft.nbt.NBTTagCompound nbttagcompound) |
addInfoToCrashReport, canRenderBreaking, create, deserializeNBT, getBlockMetadata, getBlockType, getCapability, getDisplayName, getDistanceSq, getKey, getMaxRenderDistanceSquared, getPos, getRenderBoundingBox, getTileData, getWorld, hasCapability, hasFastRenderer, hasWorld, invalidate, isInvalid, markDirty, mirror, onChunkUnload, onLoad, onlyOpsCanSetNbt, receiveClientEvent, register, restrictNBTCopy, rotate, serializeNBT, setPos, setWorld, setWorldCreate, shouldRenderInPass, updateContainingBlockInfo, validatepublic void readFromNBT(net.minecraft.nbt.NBTTagCompound nbttagcompound)
readFromNBT in class net.minecraft.tileentity.TileEntitypublic net.minecraft.nbt.NBTTagCompound writeToNBT(net.minecraft.nbt.NBTTagCompound nbttagcompound)
writeToNBT in class net.minecraft.tileentity.TileEntitypublic void writeData(PacketBufferForestry data)
writeData in interface IStreamablepublic void readData(PacketBufferForestry data)
readData in interface IStreamablepublic void setTree(ITree tree)
@Nullable public ITree getTree()
public IOwnerHandler getOwnerHandler()
getOwnerHandler in interface IOwnedTilepublic abstract void onBlockTick(net.minecraft.world.World worldIn,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state,
java.util.Random rand)
public boolean shouldRefresh(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState oldState,
net.minecraft.block.state.IBlockState newSate)
shouldRefresh in class net.minecraft.tileentity.TileEntitypublic net.minecraft.network.play.server.SPacketUpdateTileEntity getUpdatePacket()
getUpdatePacket in class net.minecraft.tileentity.TileEntitypublic void onDataPacket(net.minecraft.network.NetworkManager net,
net.minecraft.network.play.server.SPacketUpdateTileEntity pkt)
onDataPacket in class net.minecraft.tileentity.TileEntitypublic net.minecraft.nbt.NBTTagCompound getUpdateTag()
getUpdateTag in class net.minecraft.tileentity.TileEntitypublic void handleUpdateTag(net.minecraft.nbt.NBTTagCompound tag)
handleUpdateTag in class net.minecraft.tileentity.TileEntity