YATS/Forge Documentation
 All Classes Namespaces Files Functions Variables Enumerator Pages
net.minecraft.tileentity.TileEntityPiston Class Reference
Inheritance diagram for net.minecraft.tileentity.TileEntityPiston:
net.minecraft.tileentity.TileEntity

Public Member Functions

 TileEntityPiston ()
 
 TileEntityPiston (int par1, int par2, int par3, boolean par4, boolean par5)
 
int getStoredBlockID ()
 
int getBlockMetadata ()
 
boolean isExtending ()
 
int getPistonOrientation ()
 
boolean shouldRenderHead ()
 
float getProgress (float par1)
 
float getOffsetX (float par1)
 
float getOffsetY (float par1)
 
float getOffsetZ (float par1)
 
void clearPistonTileEntity ()
 
void updateEntity ()
 
void readFromNBT (NBTTagCompound par1NBTTagCompound)
 
void writeToNBT (NBTTagCompound par1NBTTagCompound)
 
- Public Member Functions inherited from net.minecraft.tileentity.TileEntity
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 ()
 

Additional Inherited Members

- Static Public Member Functions inherited from net.minecraft.tileentity.TileEntity
static void addMapping (Class par0Class, String par1Str)
 
static TileEntity createAndLoadEntity (NBTTagCompound par0NBTTagCompound)
 
- Public Attributes inherited from net.minecraft.tileentity.TileEntity
World worldObj
 
int xCoord
 
int yCoord
 
int zCoord
 
int blockMetadata = -1
 
Block blockType
 
- Static Public Attributes inherited from net.minecraft.tileentity.TileEntity
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 inherited from net.minecraft.tileentity.TileEntity
boolean tileEntityInvalid
 

Constructor & Destructor Documentation

net.minecraft.tileentity.TileEntityPiston.TileEntityPiston ( )
net.minecraft.tileentity.TileEntityPiston.TileEntityPiston ( int  par1,
int  par2,
int  par3,
boolean  par4,
boolean  par5 
)

Member Function Documentation

void net.minecraft.tileentity.TileEntityPiston.clearPistonTileEntity ( )

removes a pistons tile entity (and if the piston is moving, stops it)

int net.minecraft.tileentity.TileEntityPiston.getBlockMetadata ( )

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

float net.minecraft.tileentity.TileEntityPiston.getOffsetX ( float  par1)
float net.minecraft.tileentity.TileEntityPiston.getOffsetY ( float  par1)
float net.minecraft.tileentity.TileEntityPiston.getOffsetZ ( float  par1)
int net.minecraft.tileentity.TileEntityPiston.getPistonOrientation ( )

Returns the orientation of the piston as an int

float net.minecraft.tileentity.TileEntityPiston.getProgress ( float  par1)

Get interpolated progress value (between lastProgress and progress) given the fractional time between ticks as an argument.

int net.minecraft.tileentity.TileEntityPiston.getStoredBlockID ( )
boolean net.minecraft.tileentity.TileEntityPiston.isExtending ( )

Returns true if a piston is extending

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

Reads a tile entity from NBT.

boolean net.minecraft.tileentity.TileEntityPiston.shouldRenderHead ( )
void net.minecraft.tileentity.TileEntityPiston.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.TileEntityPiston.writeToNBT ( NBTTagCompound  par1NBTTagCompound)

Writes a tile entity to NBT.


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