public abstract class BlockEntity
extends net.minecraft.tileentity.TileEntity
| Constructor and Description |
|---|
BlockEntity() |
| Modifier and Type | Method and Description |
|---|---|
net.minecraft.network.Packet |
getDescriptionPacket() |
int |
getTrackingUpdateTime() |
abstract void |
loadNBTData(net.minecraft.nbt.NBTTagCompound compound)
Load all needed data from the tag
|
void |
loadTrackingSensitiveData(net.minecraft.nbt.NBTTagCompound compound)
Client reads tracking sensitive data from this hook
|
void |
onDataPacket(net.minecraft.network.NetworkManager networkManager,
net.minecraft.network.play.server.S35PacketUpdateTileEntity packet) |
void |
onSync()
Called when the data is syncing
|
void |
onUpdate()
Called every tick
|
void |
readFromNBT(net.minecraft.nbt.NBTTagCompound compound) |
abstract void |
saveNBTData(net.minecraft.nbt.NBTTagCompound compound)
Save all needed data to the tag.
|
void |
saveTrackingSensitiveData(net.minecraft.nbt.NBTTagCompound compound)
Write any tracking sensitive data to this NBT.
|
void |
updateEntity() |
void |
writeToNBT(net.minecraft.nbt.NBTTagCompound compound) |
addMapping, canUpdate, createAndLoadEntity, func_145828_a, getBlockMetadata, getBlockType, getDistanceFrom, getMaxRenderDistanceSquared, getRenderBoundingBox, getWorldObj, hasWorldObj, invalidate, isInvalid, markDirty, onChunkUnload, receiveClientEvent, setWorldObj, shouldRefresh, shouldRenderInPass, updateContainingBlockInfo, validatepublic final void updateEntity()
updateEntity in class net.minecraft.tileentity.TileEntitypublic net.minecraft.network.Packet getDescriptionPacket()
getDescriptionPacket in class net.minecraft.tileentity.TileEntitypublic void onDataPacket(net.minecraft.network.NetworkManager networkManager,
net.minecraft.network.play.server.S35PacketUpdateTileEntity packet)
onDataPacket in class net.minecraft.tileentity.TileEntitypublic final void readFromNBT(net.minecraft.nbt.NBTTagCompound compound)
readFromNBT in class net.minecraft.tileentity.TileEntitypublic final void writeToNBT(net.minecraft.nbt.NBTTagCompound compound)
writeToNBT in class net.minecraft.tileentity.TileEntitypublic void saveTrackingSensitiveData(net.minecraft.nbt.NBTTagCompound compound)
compound - the compound to save topublic void loadTrackingSensitiveData(net.minecraft.nbt.NBTTagCompound compound)
compound - the compound to load frompublic abstract void saveNBTData(net.minecraft.nbt.NBTTagCompound compound)
compound - the compound to save topublic abstract void loadNBTData(net.minecraft.nbt.NBTTagCompound compound)
compound - the compound to load frompublic void onUpdate()
public void onSync()
public int getTrackingUpdateTime()