public abstract class BlockEntity
extends net.minecraft.tileentity.TileEntity
implements net.minecraft.util.ITickable
| Constructor and Description |
|---|
BlockEntity() |
| Modifier and Type | Method and Description |
|---|---|
int |
getTrackingUpdateTime() |
net.minecraft.network.play.server.SPacketUpdateTileEntity |
getUpdatePacket() |
net.minecraft.nbt.NBTTagCompound |
getUpdateTag() |
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.SPacketUpdateTileEntity 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 |
update() |
net.minecraft.nbt.NBTTagCompound |
writeToNBT(net.minecraft.nbt.NBTTagCompound compound) |
addInfoToCrashReport, canRenderBreaking, create, deserializeNBT, getBlockMetadata, getBlockType, getCapability, getDisplayName, getDistanceSq, getKey, getMaxRenderDistanceSquared, getPos, getRenderBoundingBox, getTileData, getWorld, handleUpdateTag, hasCapability, hasFastRenderer, hasWorld, invalidate, isInvalid, markDirty, mirror, onChunkUnload, onLoad, onlyOpsCanSetNbt, receiveClientEvent, register, restrictNBTCopy, rotate, serializeNBT, setPos, setWorld, setWorldCreate, shouldRefresh, shouldRenderInPass, updateContainingBlockInfo, validatepublic final void update()
update in interface net.minecraft.util.ITickablepublic net.minecraft.network.play.server.SPacketUpdateTileEntity getUpdatePacket()
getUpdatePacket in class net.minecraft.tileentity.TileEntitypublic void onDataPacket(net.minecraft.network.NetworkManager networkManager,
net.minecraft.network.play.server.SPacketUpdateTileEntity packet)
onDataPacket in class net.minecraft.tileentity.TileEntitypublic net.minecraft.nbt.NBTTagCompound getUpdateTag()
getUpdateTag in class net.minecraft.tileentity.TileEntitypublic final void readFromNBT(net.minecraft.nbt.NBTTagCompound compound)
readFromNBT in class net.minecraft.tileentity.TileEntitypublic final net.minecraft.nbt.NBTTagCompound 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()