public class TileEntity
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
int |
blockMetadata |
Block |
blockType |
static AxisAlignedBB |
INFINITE_EXTENT_AABB
Sometimes default render bounding box: infinite in scope.
|
protected boolean |
tileEntityInvalid |
protected World |
worldObj |
int |
xCoord |
int |
yCoord |
int |
zCoord |
Constructor and Description |
---|
TileEntity() |
Modifier and Type | Method and Description |
---|---|
static void |
addMapping(java.lang.Class p_145826_0_,
java.lang.String p_145826_1_) |
boolean |
canUpdate()
Determines if this TileEntity requires update calls.
|
static TileEntity |
createAndLoadEntity(NBTTagCompound p_145827_0_) |
void |
func_145828_a(CrashReportCategory p_145828_1_) |
int |
getBlockMetadata() |
Block |
getBlockType() |
Packet |
getDescriptionPacket() |
double |
getDistanceFrom(double p_145835_1_,
double p_145835_3_,
double p_145835_5_) |
double |
getMaxRenderDistanceSquared() |
AxisAlignedBB |
getRenderBoundingBox()
Return an
AxisAlignedBB that controls the visible scope of a TileEntitySpecialRenderer associated with this TileEntity
Defaults to the collision bounding box Block.getCollisionBoundingBoxFromPool(World, int, int, int) associated with the block
at this location. |
World |
getWorldObj() |
boolean |
hasWorldObj() |
void |
invalidate() |
boolean |
isInvalid() |
void |
markDirty() |
void |
onChunkUnload()
Called when the chunk this TileEntity is on is Unloaded.
|
void |
onDataPacket(NetworkManager net,
S35PacketUpdateTileEntity pkt)
Called when you receive a TileEntityData packet for the location this
TileEntity is currently in.
|
void |
readFromNBT(NBTTagCompound p_145839_1_) |
boolean |
receiveClientEvent(int p_145842_1_,
int p_145842_2_) |
void |
setWorldObj(World p_145834_1_) |
boolean |
shouldRefresh(Block oldBlock,
Block newBlock,
int oldMeta,
int newMeta,
World world,
int x,
int y,
int z)
Called from Chunk.setBlockIDWithMetadata, determines if this tile entity should be re-created when the ID, or Metadata changes.
|
boolean |
shouldRenderInPass(int pass) |
void |
updateContainingBlockInfo() |
void |
updateEntity() |
void |
validate() |
void |
writeToNBT(NBTTagCompound p_145841_1_) |
protected World worldObj
public int xCoord
public int yCoord
public int zCoord
protected boolean tileEntityInvalid
public int blockMetadata
public Block blockType
public static final AxisAlignedBB INFINITE_EXTENT_AABB
TileEntitySpecialRenderer
.public static void addMapping(java.lang.Class p_145826_0_, java.lang.String p_145826_1_)
public World getWorldObj()
public void setWorldObj(World p_145834_1_)
public boolean hasWorldObj()
public void readFromNBT(NBTTagCompound p_145839_1_)
public void writeToNBT(NBTTagCompound p_145841_1_)
public void updateEntity()
public static TileEntity createAndLoadEntity(NBTTagCompound p_145827_0_)
public int getBlockMetadata()
public void markDirty()
public double getDistanceFrom(double p_145835_1_, double p_145835_3_, double p_145835_5_)
public double getMaxRenderDistanceSquared()
public Block getBlockType()
public Packet getDescriptionPacket()
public boolean isInvalid()
public void invalidate()
public void validate()
public boolean receiveClientEvent(int p_145842_1_, int p_145842_2_)
public void updateContainingBlockInfo()
public void func_145828_a(CrashReportCategory p_145828_1_)
public boolean canUpdate()
public void onDataPacket(NetworkManager net, S35PacketUpdateTileEntity pkt)
net
- The NetworkManager the packet originated frompkt
- The data packetpublic void onChunkUnload()
public boolean shouldRefresh(Block oldBlock, Block newBlock, int oldMeta, int newMeta, World world, int x, int y, int z)
oldID
- The old ID of the blocknewID
- The new ID of the block (May be the same)oldMeta
- The old metadata of the blocknewMeta
- The new metadata of the block (May be the same)world
- Current worldx
- X Positiony
- Y Positionz
- Z Positionpublic boolean shouldRenderInPass(int pass)
public AxisAlignedBB getRenderBoundingBox()
AxisAlignedBB
that controls the visible scope of a TileEntitySpecialRenderer
associated with this TileEntity
Defaults to the collision bounding box Block.getCollisionBoundingBoxFromPool(World, int, int, int)
associated with the block
at this location.AxisAlignedBB
for the TileEntity