|
||||||||||
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.BlockTrapDoor
public class BlockTrapDoor
Field Summary | |
---|---|
static boolean |
disableValidation
Set this to allow trapdoors to remain free-floating |
Method Summary | |
---|---|
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 |
MovingObjectPosition |
collisionRayTrace(World par1World,
int par2,
int par3,
int par4,
Vec3 par5Vec3,
Vec3 par6Vec3)
Ray traces through the blocks collision from start vector to end vector returning a ray trace hit. |
boolean |
getBlocksMovement(IBlockAccess par1IBlockAccess,
int par2,
int par3,
int par4)
|
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) |
int |
getRenderType()
The type of render function that is called for this block |
AxisAlignedBB |
getSelectedBoundingBoxFromPool(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. |
static boolean |
isTrapdoorOpen(int par0)
|
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 |
onBlockClicked(World par1World,
int par2,
int par3,
int par4,
EntityPlayer par5EntityPlayer)
Called when the block is clicked by a player. |
int |
onBlockPlaced(World par1World,
int par2,
int par3,
int par4,
int par5,
float par6,
float par7,
float par8,
int par9)
Called when a block is placed using its ItemBlock. |
void |
onNeighborBlockChange(World par1World,
int par2,
int par3,
int par4,
int par5)
Lets the block know when one of its neighbor changes. |
void |
onPoweredBlockChange(World par1World,
int par2,
int par3,
int par4,
boolean par5)
|
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 |
setBlockBoundsForBlockRender(int par1)
|
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 |
Field Detail |
---|
public static boolean disableValidation
Method Detail |
---|
public boolean isOpaqueCube()
isOpaqueCube
in class Block
public boolean renderAsNormalBlock()
renderAsNormalBlock
in class Block
public boolean getBlocksMovement(IBlockAccess par1IBlockAccess, int par2, int par3, int par4)
getBlocksMovement
in class Block
public int getRenderType()
getRenderType
in class Block
public AxisAlignedBB getSelectedBoundingBoxFromPool(World par1World, int par2, int par3, int par4)
getSelectedBoundingBoxFromPool
in class Block
public AxisAlignedBB getCollisionBoundingBoxFromPool(World par1World, int par2, int par3, int par4)
getCollisionBoundingBoxFromPool
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 setBlockBoundsForBlockRender(int par1)
public void onBlockClicked(World par1World, int par2, int par3, int par4, EntityPlayer par5EntityPlayer)
onBlockClicked
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 onPoweredBlockChange(World par1World, int par2, int par3, int par4, boolean par5)
public void onNeighborBlockChange(World par1World, int par2, int par3, int par4, int par5)
onNeighborBlockChange
in class Block
public MovingObjectPosition collisionRayTrace(World par1World, int par2, int par3, int par4, Vec3 par5Vec3, Vec3 par6Vec3)
collisionRayTrace
in class Block
public int onBlockPlaced(World par1World, int par2, int par3, int par4, int par5, float par6, float par7, float par8, int par9)
onBlockPlaced
in class Block
public boolean canPlaceBlockOnSide(World par1World, int par2, int par3, int par4, int par5)
canPlaceBlockOnSide
in class Block
public static boolean isTrapdoorOpen(int par0)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |