public class TileEntityPiston extends TileEntity
blockMetadata, blockType, INFINITE_EXTENT_AABB, worldObj, xCoord, yCoord, zCoord| Constructor and Description |
|---|
TileEntityPiston() |
TileEntityPiston(int par1,
int par2,
int par3,
boolean par4,
boolean par5) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearPistonTileEntity()
removes a pistons tile entity (and if the piston is moving, stops it)
|
int |
getBlockMetadata()
Returns block data at the location of this entity (client-only).
|
float |
getOffsetX(float par1) |
float |
getOffsetY(float par1) |
float |
getOffsetZ(float par1) |
int |
getPistonOrientation()
Returns the orientation of the piston as an int
|
float |
getProgress(float par1)
Get interpolated progress value (between lastProgress and progress) given the fractional time between ticks as an
argument.
|
int |
getStoredBlockID() |
boolean |
isExtending()
Returns true if a piston is extending
|
void |
readFromNBT(NBTTagCompound par1NBTTagCompound)
Reads a tile entity from NBT.
|
boolean |
shouldRenderHead() |
void |
updateEntity()
Allows the entity to update its state.
|
void |
writeToNBT(NBTTagCompound par1NBTTagCompound)
Writes a tile entity to NBT.
|
addMapping, canUpdate, createAndLoadEntity, func_85027_a, getBlockType, getDescriptionPacket, getDistanceFrom, getMaxRenderDistanceSquared, getRenderBoundingBox, getWorldObj, hasWorldObj, invalidate, isInvalid, onChunkUnload, onDataPacket, onInventoryChanged, receiveClientEvent, setWorldObj, shouldRefresh, shouldRenderInPass, updateContainingBlockInfo, validatepublic TileEntityPiston()
public TileEntityPiston(int par1,
int par2,
int par3,
boolean par4,
boolean par5)
public int getStoredBlockID()
public int getBlockMetadata()
getBlockMetadata in class TileEntitypublic boolean isExtending()
public int getPistonOrientation()
public boolean shouldRenderHead()
public float getProgress(float par1)
public float getOffsetX(float par1)
public float getOffsetY(float par1)
public float getOffsetZ(float par1)
public void clearPistonTileEntity()
public void updateEntity()
updateEntity in class TileEntitypublic void readFromNBT(NBTTagCompound par1NBTTagCompound)
readFromNBT in class TileEntitypublic void writeToNBT(NBTTagCompound par1NBTTagCompound)
writeToNBT in class TileEntity