|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.minecraft.block.Block
net.minecraft.block.BlockPistonBase
public class BlockPistonBase
Field Summary |
---|
Constructor Summary | |
---|---|
BlockPistonBase(int par1,
int par2,
boolean par3)
|
Method Summary | |
---|---|
void |
addCollidingBlockToList(World par1World,
int par2,
int par3,
int par4,
AxisAlignedBB par5AxisAlignedBB,
List par6List,
Entity par7Entity)
if the specified block is in the given AABB, add its collision bounding box to the given list |
static int |
determineOrientation(World par0World,
int par1,
int par2,
int par3,
EntityPlayer par4EntityPlayer)
gets the way this piston should face for that entity that placed it. |
int |
getBlockTextureFromSideAndMetadata(int par1,
int par2)
From the specified side and block metadata retrieves the blocks texture. |
AxisAlignedBB |
getCollisionBoundingBoxFromPool(World par1World,
int par2,
int par3,
int par4)
Returns a bounding box from the pool of bounding boxes (this means this box can change after the pool has been cleared to be reused) |
static int |
getOrientation(int par0)
returns an int which describes the direction the piston faces |
int |
getPistonExtensionTexture()
|
int |
getRenderType()
The type of render function that is called for this block |
static boolean |
isExtended(int par0)
Determine if the metadata is related to something powered. |
boolean |
isOpaqueCube()
Is this block (a) opaque and (b) a full 1m cube? This determines whether or not to render the shared face of two adjacent blocks and also whether the player can attach torches, redstone wire, etc to this block. |
boolean |
onBlockActivated(World par1World,
int par2,
int par3,
int par4,
EntityPlayer par5EntityPlayer,
int par6,
float par7,
float par8,
float par9)
Called upon block activation (right click on the block.) |
void |
onBlockAdded(World par1World,
int par2,
int par3,
int par4)
Called whenever the block is added into the world. |
void |
onBlockEventReceived(World par1World,
int par2,
int par3,
int par4,
int par5,
int par6)
Called when the block receives a BlockEvent - see World.addBlockEvent. |
void |
onBlockPlacedBy(World par1World,
int par2,
int par3,
int par4,
EntityLiving par5EntityLiving)
Called when the block is placed in the world. |
void |
onNeighborBlockChange(World par1World,
int par2,
int par3,
int par4,
int par5)
Lets the block know when one of its neighbor changes. |
boolean |
renderAsNormalBlock()
If this block doesn't render as an ordinary block it will return False (examples: signs, buttons, stairs, etc) |
void |
setBlockBoundsBasedOnState(IBlockAccess par1IBlockAccess,
int par2,
int par3,
int par4)
Updates the blocks bounds based on its current state. |
void |
setBlockBoundsForItemRender()
Sets the block's bounds for rendering it as an item |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BlockPistonBase(int par1, int par2, boolean par3)
Method Detail |
---|
public int getPistonExtensionTexture()
public int getBlockTextureFromSideAndMetadata(int par1, int par2)
getBlockTextureFromSideAndMetadata
in class Block
public int getRenderType()
getRenderType
in class Block
public boolean isOpaqueCube()
isOpaqueCube
in class Block
public boolean onBlockActivated(World par1World, int par2, int par3, int par4, EntityPlayer par5EntityPlayer, int par6, float par7, float par8, float par9)
onBlockActivated
in class Block
public void onBlockPlacedBy(World par1World, int par2, int par3, int par4, EntityLiving par5EntityLiving)
onBlockPlacedBy
in class Block
public void onNeighborBlockChange(World par1World, int par2, int par3, int par4, int par5)
onNeighborBlockChange
in class Block
public void onBlockAdded(World par1World, int par2, int par3, int par4)
onBlockAdded
in class Block
public void onBlockEventReceived(World par1World, int par2, int par3, int par4, int par5, int par6)
onBlockEventReceived
in class Block
public void setBlockBoundsBasedOnState(IBlockAccess par1IBlockAccess, int par2, int par3, int par4)
setBlockBoundsBasedOnState
in class Block
public void setBlockBoundsForItemRender()
setBlockBoundsForItemRender
in class Block
public void addCollidingBlockToList(World par1World, int par2, int par3, int par4, AxisAlignedBB par5AxisAlignedBB, List par6List, Entity par7Entity)
addCollidingBlockToList
in class Block
public AxisAlignedBB getCollisionBoundingBoxFromPool(World par1World, int par2, int par3, int par4)
getCollisionBoundingBoxFromPool
in class Block
public boolean renderAsNormalBlock()
renderAsNormalBlock
in class Block
public static int getOrientation(int par0)
public static boolean isExtended(int par0)
public static int determineOrientation(World par0World, int par1, int par2, int par3, EntityPlayer par4EntityPlayer)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |