public abstract class TileEntity extends CapabilityProvider<TileEntity> implements IForgeTileEntity
Modifier and Type | Field and Description |
---|---|
protected BlockPos |
pos |
protected boolean |
removed |
protected World |
world |
INFINITE_EXTENT_AABB
Constructor and Description |
---|
TileEntity(TileEntityType<?> tileEntityTypeIn) |
Modifier and Type | Method and Description |
---|---|
void |
addInfoToCrashReport(CrashReportCategory reportCategory) |
static TileEntity |
create(NBTTagCompound tag) |
IBlockState |
getBlockState() |
double |
getDistanceSq(double x,
double y,
double z) |
double |
getMaxRenderDistanceSquared() |
BlockPos |
getPos() |
NBTTagCompound |
getTileData()
Gets a
NBTTagCompound that can be used to store custom data for this tile entity. |
TileEntityType<?> |
getType() |
SPacketUpdateTileEntity |
getUpdatePacket() |
NBTTagCompound |
getUpdateTag() |
World |
getWorld() |
boolean |
hasWorld() |
boolean |
isRemoved() |
void |
markDirty() |
void |
mirror(Mirror mirrorIn) |
boolean |
onlyOpsCanSetNbt() |
void |
read(NBTTagCompound compound) |
boolean |
receiveClientEvent(int id,
int type) |
void |
remove() |
void |
rotate(Rotation rotationIn) |
void |
setPos(BlockPos posIn) |
void |
setWorld(World worldIn) |
void |
updateContainingBlockInfo() |
void |
validate() |
NBTTagCompound |
write(NBTTagCompound compound) |
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCaps
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
canRenderBreaking, deserializeNBT, getModelData, getRenderBoundingBox, getTileEntity, handleUpdateTag, hasFastRenderer, onChunkUnloaded, onDataPacket, onLoad, requestModelDataUpdate, serializeNBT, shouldRenderInPass
getCapability, getCapability
protected World world
protected BlockPos pos
protected boolean removed
public TileEntity(TileEntityType<?> tileEntityTypeIn)
@Nullable public World getWorld()
public void setWorld(World worldIn)
public boolean hasWorld()
public void read(NBTTagCompound compound)
public NBTTagCompound write(NBTTagCompound compound)
@Nullable public static TileEntity create(NBTTagCompound tag)
public void markDirty()
public double getDistanceSq(double x, double y, double z)
public double getMaxRenderDistanceSquared()
public BlockPos getPos()
public IBlockState getBlockState()
@Nullable public SPacketUpdateTileEntity getUpdatePacket()
public NBTTagCompound getUpdateTag()
public boolean isRemoved()
public void remove()
public void validate()
public boolean receiveClientEvent(int id, int type)
public void updateContainingBlockInfo()
public void addInfoToCrashReport(CrashReportCategory reportCategory)
public void setPos(BlockPos posIn)
public boolean onlyOpsCanSetNbt()
public void rotate(Rotation rotationIn)
public void mirror(Mirror mirrorIn)
public TileEntityType<?> getType()
public NBTTagCompound getTileData()
IForgeTileEntity
NBTTagCompound
that can be used to store custom data for this tile entity.
It will be written, and read from disc, so it persists over world saves.getTileData
in interface IForgeTileEntity