|
||||||||||
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.BlockTallGrass
public class BlockTallGrass
Field Summary |
---|
Method Summary | |
---|---|
int |
colorMultiplier(IBlockAccess par1IBlockAccess,
int par2,
int par3,
int par4)
|
int |
getBlockColor()
|
ArrayList<ItemStack> |
getBlockDropped(World world,
int x,
int y,
int z,
int meta,
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 |
getDamageValue(World par1World,
int par2,
int par3,
int par4)
Get the block's damage value (for use with pick block). |
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 |
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 |
quantityDroppedWithBonus(int par1,
Random par2Random)
Returns the usual quantity dropped by the block plus a bonus of 1 to 'i' (inclusive). |
Methods inherited from class net.minecraft.block.BlockFlower |
---|
canBlockStay, canPlaceBlockAt, getCollisionBoundingBoxFromPool, getPlantID, getPlantMetadata, getPlantType, getRenderType, isOpaqueCube, onNeighborBlockChange, renderAsNormalBlock, updateTick |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public int getBlockTextureFromSideAndMetadata(int par1, int par2)
getBlockTextureFromSideAndMetadata
in class Block
public int idDropped(int par1, Random par2Random, int par3)
idDropped
in class Block
public int quantityDroppedWithBonus(int par1, Random par2Random)
quantityDroppedWithBonus
in class Block
public void harvestBlock(World par1World, EntityPlayer par2EntityPlayer, int par3, int par4, int par5, int par6)
harvestBlock
in class Block
public int getBlockColor()
getBlockColor
in class Block
public int getRenderColor(int par1)
getRenderColor
in class Block
public int colorMultiplier(IBlockAccess par1IBlockAccess, int par2, int par3, int par4)
colorMultiplier
in class Block
public int getDamageValue(World par1World, int par2, int par3, int par4)
getDamageValue
in class Block
public void getSubBlocks(int par1, CreativeTabs par2CreativeTabs, List par3List)
getSubBlocks
in class Block
public ArrayList<ItemStack> getBlockDropped(World world, int x, int y, int z, int meta, int fortune)
Block
getBlockDropped
in class Block
world
- The current worldx
- X Positiony
- Y Positionz
- Z Positionmeta
- Current metadatafortune
- Breakers fortune level
public boolean isShearable(ItemStack item, World world, int x, int y, int z)
IShearable
isShearable
in interface IShearable
item
- 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 IShearable
item
- 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |