YATS/Forge Documentation
 All Classes Namespaces Files Functions Variables Enumerator Pages
net.minecraft.tileentity.TileEntity Class Reference
Inheritance diagram for net.minecraft.tileentity.TileEntity:
net.minecraft.tileentity.TileEntityBeacon net.minecraft.tileentity.TileEntityBrewingStand net.minecraft.tileentity.TileEntityChest net.minecraft.tileentity.TileEntityCommandBlock net.minecraft.tileentity.TileEntityComparator net.minecraft.tileentity.TileEntityDaylightDetector net.minecraft.tileentity.TileEntityDispenser net.minecraft.tileentity.TileEntityEnchantmentTable net.minecraft.tileentity.TileEntityEnderChest net.minecraft.tileentity.TileEntityEndPortal net.minecraft.tileentity.TileEntityFurnace net.minecraft.tileentity.TileEntityHopper net.minecraft.tileentity.TileEntityMobSpawner net.minecraft.tileentity.TileEntityNote net.minecraft.tileentity.TileEntityPiston net.minecraft.tileentity.TileEntityRecordPlayer net.minecraft.tileentity.TileEntitySign net.minecraft.tileentity.TileEntitySkull YATS.tile.TileAdvExtractor YATS.tile.TileExtractor YATS.tile.TileItemBuffer YATS.tile.TileRemoteExtractor YATS.tile.TileRoutingMarshaller YATS.tile.TileTube

Public Member Functions

World getWorldObj ()
 
void setWorldObj (World par1World)
 
boolean func_70309_m ()
 
void readFromNBT (NBTTagCompound par1NBTTagCompound)
 
void writeToNBT (NBTTagCompound par1NBTTagCompound)
 
void updateEntity ()
 
int getBlockMetadata ()
 
void onInventoryChanged ()
 
double getDistanceFrom (double par1, double par3, double par5)
 
double getMaxRenderDistanceSquared ()
 
Block getBlockType ()
 
Packet getDescriptionPacket ()
 
boolean isInvalid ()
 
void invalidate ()
 
void validate ()
 
boolean receiveClientEvent (int par1, int par2)
 
void updateContainingBlockInfo ()
 
void func_85027_a (CrashReportCategory par1CrashReportCategory)
 
boolean canUpdate ()
 
void onDataPacket (INetworkManager net, Packet132TileEntityData pkt)
 
void onChunkUnload ()
 
boolean shouldRefresh (int oldID, int newID, int oldMeta, int newMeta, World world, int x, int y, int z)
 
boolean shouldRenderInPass (int pass)
 
AxisAlignedBB getRenderBoundingBox ()
 

Static Public Member Functions

static void addMapping (Class par0Class, String par1Str)
 
static TileEntity createAndLoadEntity (NBTTagCompound par0NBTTagCompound)
 

Public Attributes

World worldObj
 
int xCoord
 
int yCoord
 
int zCoord
 
int blockMetadata = -1
 
Block blockType
 

Static Public Attributes

static final AxisAlignedBB INFINITE_EXTENT_AABB = AxisAlignedBB.getBoundingBox(Double.NEGATIVE_INFINITY, Double.NEGATIVE_INFINITY, Double.NEGATIVE_INFINITY, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY)
 

Protected Attributes

boolean tileEntityInvalid
 

Member Function Documentation

static void net.minecraft.tileentity.TileEntity.addMapping ( Class  par0Class,
String  par1Str 
)
static

Adds a new two-way mapping between the class and its string name in both hashmaps.

boolean net.minecraft.tileentity.TileEntity.canUpdate ( )

Determines if this TileEntity requires update calls.

Returns
True if you want updateEntity() to be called, false if not
static TileEntity net.minecraft.tileentity.TileEntity.createAndLoadEntity ( NBTTagCompound  par0NBTTagCompound)
static

Creates a new entity and loads its data from the specified NBT.

boolean net.minecraft.tileentity.TileEntity.func_70309_m ( )
void net.minecraft.tileentity.TileEntity.func_85027_a ( CrashReportCategory  par1CrashReportCategory)
int net.minecraft.tileentity.TileEntity.getBlockMetadata ( )

Returns block data at the location of this entity (client-only).

Block net.minecraft.tileentity.TileEntity.getBlockType ( )

Gets the block type at the location of this entity (client-only).

Packet net.minecraft.tileentity.TileEntity.getDescriptionPacket ( )

Overriden in a sign to provide the text.

double net.minecraft.tileentity.TileEntity.getDistanceFrom ( double  par1,
double  par3,
double  par5 
)

Returns the square of the distance between this entity and the passed in coordinates.

double net.minecraft.tileentity.TileEntity.getMaxRenderDistanceSquared ( )
AxisAlignedBB net.minecraft.tileentity.TileEntity.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.

Returns
an appropriately size AxisAlignedBB for the TileEntity
World net.minecraft.tileentity.TileEntity.getWorldObj ( )

Returns the worldObj for this tileEntity.

void net.minecraft.tileentity.TileEntity.invalidate ( )

invalidates a tile entity

boolean net.minecraft.tileentity.TileEntity.isInvalid ( )

returns true if tile entity is invalid, false otherwise

void net.minecraft.tileentity.TileEntity.onChunkUnload ( )

Called when the chunk this TileEntity is on is Unloaded.

void net.minecraft.tileentity.TileEntity.onDataPacket ( INetworkManager  net,
Packet132TileEntityData  pkt 
)

Called when you receive a TileEntityData packet for the location this TileEntity is currently in. On the client, the NetworkManager will always be the remote server. On the server, it will be whomever is responsible for sending the packet.

Parameters
netThe NetworkManager the packet originated from
pktThe data packet
void net.minecraft.tileentity.TileEntity.onInventoryChanged ( )

Called when an the contents of an Inventory change, usually

void net.minecraft.tileentity.TileEntity.readFromNBT ( NBTTagCompound  par1NBTTagCompound)

Reads a tile entity from NBT.

boolean net.minecraft.tileentity.TileEntity.receiveClientEvent ( int  par1,
int  par2 
)

Called when a client event is received with the event number and argument, see World.sendClientEvent

void net.minecraft.tileentity.TileEntity.setWorldObj ( World  par1World)

Sets the worldObj for this tileEntity.

boolean net.minecraft.tileentity.TileEntity.shouldRefresh ( int  oldID,
int  newID,
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. Use with caution as this will leave straggler TileEntities, or create conflicts with other TileEntities if not used properly.

Parameters
oldIDThe old ID of the block
newIDThe new ID of the block (May be the same)
oldMetaThe old metadata of the block
newMetaThe new metadata of the block (May be the same)
worldCurrent world
xX Postion
yY Position
zZ Position
Returns
True to remove the old tile entity, false to keep it in tact {and create a new one if the new values specify to}
boolean net.minecraft.tileentity.TileEntity.shouldRenderInPass ( int  pass)
void net.minecraft.tileentity.TileEntity.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 net.minecraft.tileentity.TileEntity.updateEntity ( )

Allows the entity to update its state. Overridden in most subclasses, e.g. the mob spawner uses this to count ticks and creates a new spawn inside its implementation.

void net.minecraft.tileentity.TileEntity.validate ( )

validates a tile entity

void net.minecraft.tileentity.TileEntity.writeToNBT ( NBTTagCompound  par1NBTTagCompound)

Writes a tile entity to NBT.

Member Data Documentation

int net.minecraft.tileentity.TileEntity.blockMetadata = -1
Block net.minecraft.tileentity.TileEntity.blockType

the Block type that this TileEntity is contained within

final AxisAlignedBB net.minecraft.tileentity.TileEntity.INFINITE_EXTENT_AABB = AxisAlignedBB.getBoundingBox(Double.NEGATIVE_INFINITY, Double.NEGATIVE_INFINITY, Double.NEGATIVE_INFINITY, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY)
static

Sometimes default render bounding box: infinite in scope. Used to control rendering on TileEntitySpecialRenderer.

boolean net.minecraft.tileentity.TileEntity.tileEntityInvalid
protected
World net.minecraft.tileentity.TileEntity.worldObj

The reference to the world.

int net.minecraft.tileentity.TileEntity.xCoord

The x coordinate of the tile entity.

int net.minecraft.tileentity.TileEntity.yCoord

The y coordinate of the tile entity.

int net.minecraft.tileentity.TileEntity.zCoord

The z coordinate of the tile entity.


The documentation for this class was generated from the following file: