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(CompoundNBT tag) |
BlockState |
getBlockState() |
double |
getDistanceSq(double x,
double y,
double z) |
double |
getMaxRenderDistanceSquared() |
BlockPos |
getPos() |
CompoundNBT |
getTileData()
Gets a
NBTTagCompound that can be used to store custom data for this tile entity. |
TileEntityType<?> |
getType() |
SUpdateTileEntityPacket |
getUpdatePacket() |
CompoundNBT |
getUpdateTag() |
World |
getWorld() |
boolean |
hasWorld() |
boolean |
isRemoved() |
void |
markDirty() |
void |
mirror(Mirror mirrorIn) |
boolean |
onlyOpsCanSetNbt() |
void |
read(CompoundNBT 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() |
void |
warnInvalidBlock() |
CompoundNBT |
write(CompoundNBT 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
getCapability, getCapability
@Nullable 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(CompoundNBT compound)
public CompoundNBT write(CompoundNBT compound)
@Nullable public static TileEntity create(CompoundNBT tag)
public void markDirty()
public double getDistanceSq(double x, double y, double z)
public double getMaxRenderDistanceSquared()
public BlockPos getPos()
public BlockState getBlockState()
@Nullable public SUpdateTileEntityPacket getUpdatePacket()
public CompoundNBT 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 CompoundNBT 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
public void warnInvalidBlock()