|
||||||||||
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.BlockPistonExtension
public class BlockPistonExtension
Field Summary |
---|
Constructor Summary | |
---|---|
BlockPistonExtension(int par1,
int par2)
|
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 |
void |
breakBlock(World par1World,
int par2,
int par3,
int par4,
int par5,
int par6)
ejects contained items into the world, and notifies neighbours of an update, as appropriate |
boolean |
canPlaceBlockAt(World par1World,
int par2,
int par3,
int par4)
Checks to see if its valid to put this block at the specified coordinates. |
boolean |
canPlaceBlockOnSide(World par1World,
int par2,
int par3,
int par4,
int par5)
checks to see if you can place this block can be placed on that side of a block: BlockLever overrides |
void |
clearHeadTexture()
|
int |
getBlockTextureFromSideAndMetadata(int par1,
int par2)
From the specified side and block metadata retrieves the blocks texture. |
static int |
getDirectionMeta(int par0)
|
int |
getRenderType()
The type of render function that is called for this block |
int |
idPicked(World par1World,
int par2,
int par3,
int par4)
|
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. |
void |
onNeighborBlockChange(World par1World,
int par2,
int par3,
int par4,
int par5)
Lets the block know when one of its neighbor changes. |
int |
quantityDropped(Random par1Random)
Returns the quantity of items to drop on block destruction. |
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 |
setHeadTexture(int par1)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BlockPistonExtension(int par1, int par2)
Method Detail |
---|
public void setHeadTexture(int par1)
public void clearHeadTexture()
public void breakBlock(World par1World, int par2, int par3, int par4, int par5, int par6)
breakBlock
in class Block
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 renderAsNormalBlock()
renderAsNormalBlock
in class Block
public boolean canPlaceBlockAt(World par1World, int par2, int par3, int par4)
canPlaceBlockAt
in class Block
public boolean canPlaceBlockOnSide(World par1World, int par2, int par3, int par4, int par5)
canPlaceBlockOnSide
in class Block
public int quantityDropped(Random par1Random)
quantityDropped
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 void setBlockBoundsBasedOnState(IBlockAccess par1IBlockAccess, int par2, int par3, int par4)
setBlockBoundsBasedOnState
in class Block
public void onNeighborBlockChange(World par1World, int par2, int par3, int par4, int par5)
onNeighborBlockChange
in class Block
public static int getDirectionMeta(int par0)
public int idPicked(World par1World, int par2, int par3, int par4)
idPicked
in class Block
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |