|
||||||||||
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.BlockFlowerPot
public class BlockFlowerPot
Field Summary |
---|
Constructor Summary | |
---|---|
BlockFlowerPot(int par1)
|
Method Summary | |
---|---|
boolean |
canPlaceBlockAt(World par1World,
int par2,
int par3,
int par4)
Checks to see if its valid to put this block at the specified coordinates. |
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 |
boolean |
func_82505_u_()
|
int |
getDamageValue(World par1World,
int par2,
int par3,
int par4)
Get the block's damage value (for use with pick block). |
static int |
getMetaForPlant(ItemStack par0ItemStack)
Return the flower pot metadata value associated with the specified item. |
static ItemStack |
getPlantForMeta(int par0)
Return the item associated with the specified flower pot metadata value. |
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)
|
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 |
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 |
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 |
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 |
Constructor Detail |
---|
public BlockFlowerPot(int par1)
Method Detail |
---|
public void setBlockBoundsForItemRender()
setBlockBoundsForItemRender
in class Block
public boolean isOpaqueCube()
isOpaqueCube
in class Block
public int getRenderType()
getRenderType
in class Block
public boolean renderAsNormalBlock()
renderAsNormalBlock
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 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 boolean func_82505_u_()
func_82505_u_
in class Block
public boolean canPlaceBlockAt(World par1World, int par2, int par3, int par4)
canPlaceBlockAt
in class Block
public void onNeighborBlockChange(World par1World, int par2, int par3, int par4, int par5)
onNeighborBlockChange
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 int idDropped(int par1, Random par2Random, int par3)
idDropped
in class Block
public static ItemStack getPlantForMeta(int par0)
public static int getMetaForPlant(ItemStack par0ItemStack)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |