|
||||||||||
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.BlockDirectional
net.minecraft.block.BlockCocoa
public class BlockCocoa
Field Summary |
---|
Constructor Summary | |
---|---|
BlockCocoa(int par1)
|
Method Summary | |
---|---|
boolean |
canBlockStay(World par1World,
int par2,
int par3,
int par4)
Can this block stay at this position. |
void |
dropBlockAsItemWithChance(World par1World,
int par2,
int par3,
int par4,
int par5,
float par6,
int par7)
Drops the block items with a specified chance of dropping the specified items |
static int |
func_72219_c(int par0)
|
ArrayList<ItemStack> |
getBlockDropped(World world,
int x,
int y,
int z,
int metadata,
int fortune)
This returns a complete list of items dropped from this block. |
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 |
getDamageValue(World par1World,
int par2,
int par3,
int par4)
Get the block's damage value (for use with pick block). |
int |
getRenderType()
The type of render function that is called for this block |
AxisAlignedBB |
getSelectedBoundingBoxFromPool(World par1World,
int par2,
int par3,
int par4)
|
int |
idDropped(int par1,
Random par2Random,
int par3)
Returns the ID of the items to drop on destruction. |
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. |
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 |
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 |
updateTick(World par1World,
int par2,
int par3,
int par4,
Random par5Random)
Ticks the block if it's been scheduled |
Methods inherited from class net.minecraft.block.BlockDirectional |
---|
getDirection |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BlockCocoa(int par1)
Method Detail |
---|
public void updateTick(World par1World, int par2, int par3, int par4, Random par5Random)
updateTick
in class Block
public boolean canBlockStay(World par1World, int par2, int par3, int par4)
canBlockStay
in class Block
public int getRenderType()
getRenderType
in class Block
public boolean renderAsNormalBlock()
renderAsNormalBlock
in class Block
public boolean isOpaqueCube()
isOpaqueCube
in class Block
public AxisAlignedBB getCollisionBoundingBoxFromPool(World par1World, int par2, int par3, int par4)
getCollisionBoundingBoxFromPool
in class Block
public AxisAlignedBB getSelectedBoundingBoxFromPool(World par1World, int par2, int par3, int par4)
getSelectedBoundingBoxFromPool
in class Block
public void setBlockBoundsBasedOnState(IBlockAccess par1IBlockAccess, int par2, int par3, int par4)
setBlockBoundsBasedOnState
in class Block
public void onBlockPlacedBy(World par1World, int par2, int par3, int par4, EntityLiving par5EntityLiving)
onBlockPlacedBy
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 void onNeighborBlockChange(World par1World, int par2, int par3, int par4, int par5)
onNeighborBlockChange
in class Block
public static int func_72219_c(int par0)
public void dropBlockAsItemWithChance(World par1World, int par2, int par3, int par4, int par5, float par6, int par7)
dropBlockAsItemWithChance
in class Block
public ArrayList<ItemStack> getBlockDropped(World world, int x, int y, int z, int metadata, int fortune)
Block
getBlockDropped
in class Block
world
- The current worldx
- X Positiony
- Y Positionz
- Z Positionmetadata
- Current metadatafortune
- Breakers fortune level
public int idPicked(World par1World, int par2, int par3, int par4)
idPicked
in class Block
public int getDamageValue(World par1World, int par2, int par3, int par4)
getDamageValue
in class Block
public int idDropped(int par1, Random par2Random, int par3)
Block
idDropped
in class Block
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |