|
||||||||||
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.BlockFlower
net.minecraft.block.BlockCrops
public class BlockCrops
Field Summary |
---|
Method Summary | |
---|---|
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 |
void |
fertilize(World par1World,
int par2,
int par3,
int par4)
Apply bonemeal to the crops. |
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. |
int |
getBlockTextureFromSideAndMetadata(int par1,
int par2)
From the specified side and block metadata retrieves the blocks texture. |
int |
getRenderType()
The type of render function that is called for this block |
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)
|
int |
quantityDropped(Random par1Random)
Returns the quantity of items to drop on block destruction. |
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.BlockFlower |
---|
canBlockStay, canPlaceBlockAt, getCollisionBoundingBoxFromPool, getPlantID, getPlantMetadata, getPlantType, isOpaqueCube, onNeighborBlockChange, renderAsNormalBlock |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void updateTick(World par1World, int par2, int par3, int par4, Random par5Random)
updateTick
in class BlockFlower
public void fertilize(World par1World, int par2, int par3, int par4)
public int getBlockTextureFromSideAndMetadata(int par1, int par2)
getBlockTextureFromSideAndMetadata
in class Block
public int getRenderType()
getRenderType
in class BlockFlower
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 idDropped(int par1, Random par2Random, int par3)
idDropped
in class Block
public int quantityDropped(Random par1Random)
quantityDropped
in class Block
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 |