|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.minecraft.src.TileEntity
public class TileEntity
Field Summary | |
---|---|
int |
blockMetadata
|
Block |
blockType
the Block type that this TileEntity is contained within |
World |
worldObj
The reference to the world. |
int |
xCoord
The x coordinate of the tile entity. |
int |
yCoord
The y coordinate of the tile entity. |
int |
zCoord
The z coordinate of the tile entity. |
Constructor Summary | |
---|---|
TileEntity()
|
Method Summary | |
---|---|
static void |
addMapping(Class par0Class,
String par1Str)
Adds a new two-way mapping between the class and its string name in both hashmaps. |
boolean |
canUpdate()
Determines if this TileEntity requires update calls. |
static TileEntity |
createAndLoadEntity(NBTTagCompound par0NBTTagCompound)
Creates a new entity and loads its data from the specified NBT. |
boolean |
func_70309_m()
|
int |
getBlockMetadata()
Returns block data at the location of this entity (client-only). |
Block |
getBlockType()
|
Packet |
getDescriptionPacket()
Overriden in a sign to provide the text. |
double |
getDistanceFrom(double par1,
double par3,
double par5)
|
double |
getRenderDistance()
|
World |
getWorldObj()
|
void |
invalidate()
invalidates a tile entity |
boolean |
isInvalid()
returns true if tile entity is invalid, false otherwise |
void |
onChunkUnload()
Called when the chunk this TileEntity is on is Unloaded. |
void |
onDataPacket(NetworkManager net,
Packet132TileEntityData pkt)
Called when you receive a TileEntityData packet for the location this TileEntity is currently in. |
void |
onInventoryChanged()
Called when an the contents of an Inventory change, usually |
void |
readFromNBT(NBTTagCompound par1NBTTagCompound)
Reads a tile entity from NBT. |
void |
receiveClientEvent(int par1,
int par2)
Called when a client event is received with the event number and argument, see World.sendClientEvent |
void |
setWorldObj(World par1World)
Sets the worldObj for this tileEntity. |
void |
updateContainingBlockInfo()
Causes the TileEntity to reset all it's cached values for it's container block, blockID, metaData and in the case of chests, the adjcacent chest check |
void |
updateEntity()
Allows the entity to update its state. |
void |
validate()
validates a tile entity |
void |
writeToNBT(NBTTagCompound par1NBTTagCompound)
Writes a tile entity to NBT. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public World worldObj
public int xCoord
public int yCoord
public int zCoord
public int blockMetadata
public Block blockType
Constructor Detail |
---|
public TileEntity()
Method Detail |
---|
public static void addMapping(Class par0Class, String par1Str)
public void setWorldObj(World par1World)
public World getWorldObj()
public boolean func_70309_m()
public void readFromNBT(NBTTagCompound par1NBTTagCompound)
public void writeToNBT(NBTTagCompound par1NBTTagCompound)
public void updateEntity()
public static TileEntity createAndLoadEntity(NBTTagCompound par0NBTTagCompound)
public int getBlockMetadata()
public void onInventoryChanged()
public double getDistanceFrom(double par1, double par3, double par5)
public Block getBlockType()
public Packet getDescriptionPacket()
public boolean isInvalid()
public void invalidate()
public void validate()
public void receiveClientEvent(int par1, int par2)
public void updateContainingBlockInfo()
public boolean canUpdate()
public void onDataPacket(NetworkManager net, Packet132TileEntityData pkt)
net
- The NetworkManager the packet originated frompkt
- The data packetpublic void onChunkUnload()
public double getRenderDistance()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |