public abstract class MultiblockTileEntityBase<T extends IMultiblockLogic> extends net.minecraft.tileentity.TileEntity implements IMultiblockComponent
IMultiblockComponent.HasInventory| Constructor and Description |
|---|
MultiblockTileEntityBase(T multiblockLogic) |
| 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.util.math.BlockPos |
getCoordinates()
Returns the location of this tile entity in the world.
|
T |
getMultiblockLogic() |
net.minecraft.network.play.server.SPacketUpdateTileEntity |
getUpdatePacket() |
net.minecraft.nbt.NBTTagCompound |
getUpdateTag() |
void |
handleUpdateTag(net.minecraft.nbt.NBTTagCompound tag) |
void |
invalidate() |
void |
onChunkUnload() |
void |
onDataPacket(net.minecraft.network.NetworkManager network,
net.minecraft.network.play.server.SPacketUpdateTileEntity packet) |
abstract 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.
|
abstract void |
onMachineBroken()
Called when the machine is broken for game reasons, e.g.
|
void |
readFromNBT(net.minecraft.nbt.NBTTagCompound data) |
void |
validate() |
net.minecraft.nbt.NBTTagCompound |
writeToNBT(net.minecraft.nbt.NBTTagCompound data) |
addInfoToCrashReport, canRenderBreaking, create, deserializeNBT, getBlockMetadata, getBlockType, getCapability, getDisplayName, getDistanceSq, getKey, getMaxRenderDistanceSquared, getPos, getRenderBoundingBox, getTileData, getWorld, hasCapability, hasFastRenderer, hasWorld, isInvalid, markDirty, mirror, onLoad, onlyOpsCanSetNbt, receiveClientEvent, register, restrictNBTCopy, rotate, serializeNBT, setPos, setWorld, setWorldCreate, shouldRefresh, shouldRenderInPass, updateContainingBlockInfoclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetOwnerpublic MultiblockTileEntityBase(T multiblockLogic)
public net.minecraft.util.math.BlockPos getCoordinates()
IMultiblockComponentgetCoordinates in interface IMultiblockComponentpublic T getMultiblockLogic()
getMultiblockLogic in interface IMultiblockComponentpublic abstract void onMachineAssembled(IMultiblockController multiblockController, net.minecraft.util.math.BlockPos minCoord, net.minecraft.util.math.BlockPos maxCoord)
IMultiblockComponentonMachineAssembled in interface IMultiblockComponentmultiblockController - The controller to which this part is being assembled.public abstract void onMachineBroken()
IMultiblockComponentonMachineBroken in interface IMultiblockComponentpublic void readFromNBT(net.minecraft.nbt.NBTTagCompound data)
readFromNBT in class net.minecraft.tileentity.TileEntitypublic net.minecraft.nbt.NBTTagCompound writeToNBT(net.minecraft.nbt.NBTTagCompound data)
writeToNBT in class net.minecraft.tileentity.TileEntitypublic void invalidate()
invalidate in class net.minecraft.tileentity.TileEntitypublic void onChunkUnload()
onChunkUnload in class net.minecraft.tileentity.TileEntitypublic final void validate()
validate in class net.minecraft.tileentity.TileEntitypublic 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 final void onDataPacket(net.minecraft.network.NetworkManager network,
net.minecraft.network.play.server.SPacketUpdateTileEntity packet)
onDataPacket in class net.minecraft.tileentity.TileEntitypublic void handleUpdateTag(net.minecraft.nbt.NBTTagCompound tag)
handleUpdateTag in class net.minecraft.tileentity.TileEntityprotected void encodeDescriptionPacket(net.minecraft.nbt.NBTTagCompound packetData)
protected void decodeDescriptionPacket(net.minecraft.nbt.NBTTagCompound packetData)