|
||||||||||
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.BlockFarmland
public class BlockFarmland
Field Summary |
---|
Method Summary | |
---|---|
int |
getBlockTextureFromSideAndMetadata(int par1,
int par2)
From the specified side and block metadata retrieves the blocks texture. |
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 |
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. |
void |
onFallenUpon(World par1World,
int par2,
int par3,
int par4,
Entity par5Entity,
float par6)
Block's chance to react to an entity falling on it. |
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 |
updateTick(World par1World,
int par2,
int par3,
int par4,
Random par5Random)
Ticks the block if it's been scheduled |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public AxisAlignedBB getCollisionBoundingBoxFromPool(World par1World, int par2, int par3, int par4)
getCollisionBoundingBoxFromPool
in class Block
public boolean isOpaqueCube()
isOpaqueCube
in class Block
public boolean renderAsNormalBlock()
renderAsNormalBlock
in class Block
public int getBlockTextureFromSideAndMetadata(int par1, int par2)
getBlockTextureFromSideAndMetadata
in class Block
public void updateTick(World par1World, int par2, int par3, int par4, Random par5Random)
updateTick
in class Block
public void onFallenUpon(World par1World, int par2, int par3, int par4, Entity par5Entity, float par6)
onFallenUpon
in class Block
public void onNeighborBlockChange(World par1World, int par2, int par3, int par4, int par5)
onNeighborBlockChange
in class Block
public int idDropped(int par1, Random par2Random, int par3)
idDropped
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 |