public class TileCocoon extends net.minecraft.tileentity.TileEntity implements IStreamable, IOwnedTile, IButterflyCocoon
| Constructor and Description |
|---|
TileCocoon() |
TileCocoon(boolean isSolid) |
| Modifier and Type | Method and Description |
|---|---|
int |
getAge() |
IButterfly |
getCaterpillar() |
net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> |
getCocoonDrops() |
net.minecraft.util.math.BlockPos |
getCoordinates()
The coordinates of the housing.
|
IOwnerHandler |
getOwnerHandler() |
net.minecraft.network.play.server.SPacketUpdateTileEntity |
getUpdatePacket() |
net.minecraft.nbt.NBTTagCompound |
getUpdateTag() |
void |
handleUpdateTag(net.minecraft.nbt.NBTTagCompound tag) |
boolean |
isSolid() |
void |
onBlockTick() |
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 |
setAge(int age) |
void |
setCaterpillar(IButterfly butterfly) |
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) |
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 IOwnerHandler getOwnerHandler()
getOwnerHandler in interface IOwnedTilepublic 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.TileEntity@Nullable public net.minecraft.network.play.server.SPacketUpdateTileEntity getUpdatePacket()
getUpdatePacket 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.TileEntitypublic void onDataPacket(net.minecraft.network.NetworkManager net,
net.minecraft.network.play.server.SPacketUpdateTileEntity pkt)
onDataPacket in class net.minecraft.tileentity.TileEntitypublic void onBlockTick()
public net.minecraft.util.math.BlockPos getCoordinates()
IHousinggetCoordinates in interface IHousingpublic IButterfly getCaterpillar()
getCaterpillar in interface IButterflyCocoonpublic void setCaterpillar(IButterfly butterfly)
setCaterpillar in interface IButterflyCocoonpublic int getAge()
public void setAge(int age)
public net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> getCocoonDrops()
public boolean isSolid()
isSolid in interface IButterflyCocoon