|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.minecraft.tileentity.TileEntity
net.minecraft.tileentity.TileEntityPiston
public class TileEntityPiston
Field Summary |
---|
Fields inherited from class net.minecraft.tileentity.TileEntity |
---|
blockMetadata, blockType, worldObj, xCoord, yCoord, zCoord |
Constructor Summary | |
---|---|
TileEntityPiston()
|
|
TileEntityPiston(int par1,
int par2,
int par3,
boolean par4,
boolean par5)
|
Method Summary | |
---|---|
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. |
Methods inherited from class net.minecraft.tileentity.TileEntity |
---|
addMapping, canUpdate, createAndLoadEntity, func_70309_m, func_82115_m, func_85027_a, getBlockType, getDescriptionPacket, getDistanceFrom, getWorldObj, invalidate, isInvalid, onChunkUnload, onDataPacket, onInventoryChanged, receiveClientEvent, setWorldObj, shouldRefresh, updateContainingBlockInfo, validate |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TileEntityPiston()
public TileEntityPiston(int par1, int par2, int par3, boolean par4, boolean par5)
Method Detail |
---|
public int getStoredBlockID()
public int getBlockMetadata()
getBlockMetadata
in class TileEntity
public 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 TileEntity
public void readFromNBT(NBTTagCompound par1NBTTagCompound)
readFromNBT
in class TileEntity
public void writeToNBT(NBTTagCompound par1NBTTagCompound)
writeToNBT
in class TileEntity
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |