| 
||||||||||
| 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.BlockLeavesBase
net.minecraft.block.BlockLeaves
public class BlockLeaves
| Field Summary | |
|---|---|
static String[] | 
LEAF_TYPES
 | 
| Fields inherited from class net.minecraft.block.BlockLeavesBase | 
|---|
graphicsLevel | 
| Method Summary | |
|---|---|
 void | 
beginLeavesDecay(World world,
                                 int x,
                                 int y,
                                 int z)
Called when a leaf should start its decay process.  | 
 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  | 
 int | 
colorMultiplier(IBlockAccess par1IBlockAccess,
                               int par2,
                               int par3,
                               int par4)
 | 
 int | 
damageDropped(int par1)
Determines the damage on the item the block drops.  | 
 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  | 
 int | 
getBlockColor()
 | 
 int | 
getBlockTextureFromSideAndMetadata(int par1,
                                                                     int par2)
From the specified side and block metadata retrieves the blocks texture.  | 
 int | 
getRenderColor(int par1)
 | 
 void | 
getSubBlocks(int par1,
                         CreativeTabs par2CreativeTabs,
                         List par3List)
 | 
 void | 
harvestBlock(World par1World,
                         EntityPlayer par2EntityPlayer,
                         int par3,
                         int par4,
                         int par5,
                         int par6)
Called when the player destroys a block with an item that can harvest it.  | 
 int | 
idDropped(int par1,
                   Random par2Random,
                   int par3)
Returns the ID of the items to drop on destruction.  | 
 boolean | 
isLeaves(World world,
                 int x,
                 int y,
                 int z)
Determines if this block is considered a leaf block, used to apply the leaf decay and generation system.  | 
 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 | 
isShearable(ItemStack item,
                       World world,
                       int x,
                       int y,
                       int z)
Checks if the object is currently shearable Example: Sheep return false when they have no wool  | 
 ArrayList<ItemStack> | 
onSheared(ItemStack item,
                   World world,
                   int x,
                   int y,
                   int z,
                   int fortune)
Performs the shear function on this object.  | 
 int | 
quantityDropped(Random par1Random)
Returns the quantity of items to drop on block destruction.  | 
 void | 
randomDisplayTick(World par1World,
                                   int par2,
                                   int par3,
                                   int par4,
                                   Random par5Random)
 | 
 void | 
setGraphicsLevel(boolean par1)
 | 
 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.BlockLeavesBase | 
|---|
shouldSideBeRendered | 
| Methods inherited from class java.lang.Object | 
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public static final String[] LEAF_TYPES
| Method Detail | 
|---|
public int getBlockColor()
getBlockColor in class Blockpublic int getRenderColor(int par1)
getRenderColor in class Block
public int colorMultiplier(IBlockAccess par1IBlockAccess,
                           int par2,
                           int par3,
                           int par4)
colorMultiplier in class Block
public void breakBlock(World par1World,
                       int par2,
                       int par3,
                       int par4,
                       int par5,
                       int par6)
breakBlock in class Block
public void updateTick(World par1World,
                       int par2,
                       int par3,
                       int par4,
                       Random par5Random)
updateTick in class Block
public void randomDisplayTick(World par1World,
                              int par2,
                              int par3,
                              int par4,
                              Random par5Random)
randomDisplayTick in class Blockpublic int quantityDropped(Random par1Random)
quantityDropped in class Block
public int idDropped(int par1,
                     Random par2Random,
                     int par3)
idDropped in class Block
public void dropBlockAsItemWithChance(World par1World,
                                      int par2,
                                      int par3,
                                      int par4,
                                      int par5,
                                      float par6,
                                      int par7)
dropBlockAsItemWithChance in class Block
public void harvestBlock(World par1World,
                         EntityPlayer par2EntityPlayer,
                         int par3,
                         int par4,
                         int par5,
                         int par6)
harvestBlock in class Blockpublic int damageDropped(int par1)
damageDropped in class Blockpublic boolean isOpaqueCube()
isOpaqueCube in class BlockLeavesBase
public int getBlockTextureFromSideAndMetadata(int par1,
                                              int par2)
getBlockTextureFromSideAndMetadata in class Blockpublic void setGraphicsLevel(boolean par1)
public void getSubBlocks(int par1,
                         CreativeTabs par2CreativeTabs,
                         List par3List)
getSubBlocks in class Block
public boolean isShearable(ItemStack item,
                           World world,
                           int x,
                           int y,
                           int z)
IShearable
isShearable in interface IShearableitem - The itemstack that is being used, Possible to be nullworld - The current worldx - The X Positiony - The Y Positionz - The Z Position
public ArrayList<ItemStack> onSheared(ItemStack item,
                                      World world,
                                      int x,
                                      int y,
                                      int z,
                                      int fortune)
IShearable
onSheared in interface IShearableitem - The itemstack that is being used, Possible to be nullworld - The current worldx - The X Positiony - The Y Positionz - The Z Positionfortune - The fortune level of the shears being used
public void beginLeavesDecay(World world,
                             int x,
                             int y,
                             int z)
Block
beginLeavesDecay in class Blockworld - The current worldx - X Positiony - Y Positionz - Z Position
public boolean isLeaves(World world,
                        int x,
                        int y,
                        int z)
Block
isLeaves in class Blockworld - The current worldx - X Positiony - Y Positionz - Z Position
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||