public abstract class TileFarm extends MultiblockTileEntityForestry<MultiblockLogicFarm> implements IFarmComponent, ISocketable, IStreamableGui, IErrorLogicSource, IOwnedTile, ITitled
IFarmComponent.Active, IFarmComponent.ListenerIMultiblockComponent.HasInventory| Modifier | Constructor and Description |
|---|---|
protected |
TileFarm() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
decodeDescriptionPacket(net.minecraft.nbt.NBTTagCompound packetData)
Used to read tileEntity-specific data from the descriptionPacket (onDataPacket)
|
protected void |
encodeDescriptionPacket(net.minecraft.nbt.NBTTagCompound packetData)
Used to write tileEntity-specific data to the descriptionPacket
|
net.minecraft.inventory.Container |
getContainer(net.minecraft.entity.player.EntityPlayer player,
int data) |
IErrorLogic |
getErrorLogic() |
EnumFarmBlockTexture |
getFarmBlockTexture() |
EnumFarmBlockType |
getFarmBlockType() |
net.minecraft.client.gui.inventory.GuiContainer |
getGui(net.minecraft.entity.player.EntityPlayer player,
int data) |
IInventoryAdapter |
getInternalInventory() |
IOwnerHandler |
getOwnerHandler() |
net.minecraft.item.ItemStack |
getSocket(int slot) |
int |
getSocketCount() |
ICircuitSocketType |
getSocketType() |
java.lang.String |
getUnlocalizedTitle() |
void |
onMachineAssembled(IMultiblockController multiblockController,
net.minecraft.util.math.BlockPos minCoord,
net.minecraft.util.math.BlockPos maxCoord)
Called when a machine is fully assembled from the disassembled state, meaning
it was constructed by a player/entity action, not by chunks loading.
|
void |
onMachineBroken()
Called when the machine is broken for game reasons, e.g.
|
void |
readFromNBT(net.minecraft.nbt.NBTTagCompound nbttagcompound) |
void |
readGuiData(PacketBufferForestry data) |
void |
setFarmBlockTexture(EnumFarmBlockTexture farmBlockTexture) |
void |
setSocket(int slot,
net.minecraft.item.ItemStack stack) |
boolean |
shouldRefresh(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState oldState,
net.minecraft.block.state.IBlockState newState) |
void |
writeGuiData(PacketBufferForestry data) |
net.minecraft.nbt.NBTTagCompound |
writeToNBT(net.minecraft.nbt.NBTTagCompound nbttagcompound) |
allowsAutomation, canExtractItem, canInsertItem, canSlotAccept, clear, closeInventory, decrStackSize, getDisplayName, getField, getFieldCount, getInventoryStackLimit, getName, getOwner, getSizeInventory, getSlotsForFace, getStackInSlot, getWorldObj, hasCustomName, isEmpty, isItemValidForSlot, isLocked, isUsableByPlayer, openGui, openInventory, removeStackFromSlot, setField, setInventorySlotContents, setOwnergetCoordinates, getMultiblockLogic, getUpdatePacket, getUpdateTag, handleUpdateTag, invalidate, onChunkUnload, onDataPacket, validateaddInfoToCrashReport, canRenderBreaking, create, deserializeNBT, getBlockMetadata, getBlockType, getCapability, getDistanceSq, getKey, getMaxRenderDistanceSquared, getPos, getRenderBoundingBox, getTileData, getWorld, hasCapability, hasFastRenderer, hasWorld, isInvalid, markDirty, mirror, onLoad, onlyOpsCanSetNbt, receiveClientEvent, register, restrictNBTCopy, rotate, serializeNBT, setPos, setWorld, setWorldCreate, shouldRenderInPass, updateContainingBlockInfoclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMultiblockLogicgetCoordinates, getOwnergetCoordinatespublic boolean shouldRefresh(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState oldState,
net.minecraft.block.state.IBlockState newState)
shouldRefresh in class net.minecraft.tileentity.TileEntitypublic void onMachineAssembled(IMultiblockController multiblockController, net.minecraft.util.math.BlockPos minCoord, net.minecraft.util.math.BlockPos maxCoord)
IMultiblockComponentonMachineAssembled in interface IMultiblockComponentonMachineAssembled in class MultiblockTileEntityBase<MultiblockLogicFarm>multiblockController - The controller to which this part is being assembled.public void onMachineBroken()
IMultiblockComponentonMachineBroken in interface IMultiblockComponentonMachineBroken in class MultiblockTileEntityBase<MultiblockLogicFarm>public IInventoryAdapter getInternalInventory()
getInternalInventory in class MultiblockTileEntityForestry<MultiblockLogicFarm>public void readFromNBT(net.minecraft.nbt.NBTTagCompound nbttagcompound)
readFromNBT in class MultiblockTileEntityForestry<MultiblockLogicFarm>public net.minecraft.nbt.NBTTagCompound writeToNBT(net.minecraft.nbt.NBTTagCompound nbttagcompound)
writeToNBT in class MultiblockTileEntityForestry<MultiblockLogicFarm>public void setFarmBlockTexture(EnumFarmBlockTexture farmBlockTexture)
public EnumFarmBlockTexture getFarmBlockTexture()
public EnumFarmBlockType getFarmBlockType()
protected void encodeDescriptionPacket(net.minecraft.nbt.NBTTagCompound packetData)
MultiblockTileEntityBaseencodeDescriptionPacket in class MultiblockTileEntityBase<MultiblockLogicFarm>protected void decodeDescriptionPacket(net.minecraft.nbt.NBTTagCompound packetData)
MultiblockTileEntityBasedecodeDescriptionPacket in class MultiblockTileEntityBase<MultiblockLogicFarm>public int getSocketCount()
getSocketCount in interface ISocketablepublic net.minecraft.item.ItemStack getSocket(int slot)
getSocket in interface ISocketablepublic void setSocket(int slot,
net.minecraft.item.ItemStack stack)
setSocket in interface ISocketablepublic ICircuitSocketType getSocketType()
getSocketType in interface ISocketablepublic void writeGuiData(PacketBufferForestry data)
writeGuiData in interface IStreamableGuipublic void readGuiData(PacketBufferForestry data) throws java.io.IOException
readGuiData in interface IStreamableGuijava.io.IOExceptionpublic IErrorLogic getErrorLogic()
getErrorLogic in interface IErrorLogicSourcepublic IOwnerHandler getOwnerHandler()
getOwnerHandler in interface IOwnedTilepublic java.lang.String getUnlocalizedTitle()
getUnlocalizedTitle in interface ITitledpublic net.minecraft.client.gui.inventory.GuiContainer getGui(net.minecraft.entity.player.EntityPlayer player,
int data)
getGui in interface IGuiHandlerTilepublic net.minecraft.inventory.Container getContainer(net.minecraft.entity.player.EntityPlayer player,
int data)
getContainer in interface IGuiHandlerTile