public class TileEntityPiston extends TileEntity implements ITickable
blockType, INFINITE_EXTENT_AABB, pos, tileEntityInvalid, worldObj
Constructor and Description |
---|
TileEntityPiston() |
TileEntityPiston(IBlockState pistonStateIn,
EnumFacing pistonFacingIn,
boolean extendingIn,
boolean shouldHeadBeRenderedIn) |
Modifier and Type | Method and Description |
---|---|
void |
clearPistonTileEntity()
removes a piston's tile entity (and if the piston is moving, stops it)
|
int |
getBlockMetadata() |
EnumFacing |
getFacing() |
float |
getOffsetX(float ticks) |
float |
getOffsetY(float ticks) |
float |
getOffsetZ(float ticks) |
IBlockState |
getPistonState() |
float |
getProgress(float ticks)
Get interpolated progress value (between lastProgress and progress) given the fractional time between ticks as an
argument
|
boolean |
isExtending()
Returns true if a piston is extending
|
void |
readFromNBT(NBTTagCompound compound) |
boolean |
shouldPistonHeadBeRendered() |
void |
update()
Like the old updateEntity(), except more generic.
|
void |
writeToNBT(NBTTagCompound compound) |
addInfoToCrashReport, addMapping, canRenderBreaking, createAndLoadEntity, deserializeNBT, func_183000_F, getBlockType, getCapability, getDescriptionPacket, getDistanceSq, getMaxRenderDistanceSquared, getPos, getRenderBoundingBox, getTileData, getWorld, hasCapability, hasFastRenderer, hasWorldObj, invalidate, isInvalid, markDirty, onChunkUnload, onDataPacket, onLoad, receiveClientEvent, restrictNBTCopy, serializeNBT, setPos, setWorldObj, shouldRefresh, shouldRenderInPass, updateContainingBlockInfo, validate
public TileEntityPiston()
public TileEntityPiston(IBlockState pistonStateIn, EnumFacing pistonFacingIn, boolean extendingIn, boolean shouldHeadBeRenderedIn)
public IBlockState getPistonState()
public int getBlockMetadata()
getBlockMetadata
in class TileEntity
public boolean isExtending()
public EnumFacing getFacing()
public boolean shouldPistonHeadBeRendered()
public float getProgress(float ticks)
public float getOffsetX(float ticks)
public float getOffsetY(float ticks)
public float getOffsetZ(float ticks)
public void clearPistonTileEntity()
public void update()
public void readFromNBT(NBTTagCompound compound)
readFromNBT
in class TileEntity
public void writeToNBT(NBTTagCompound compound)
writeToNBT
in class TileEntity