|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.minecraft.src.Block
net.minecraft.src.BlockLog
public class BlockLog
Field Summary | |
---|---|
static String[] |
woodType
The type of tree this log came from. |
Method Summary | |
---|---|
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 |
boolean |
canSustainLeaves(World world,
int x,
int y,
int z)
Determines if this block can prevent leaves connected to it from decaying. |
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 |
void |
getSubBlocks(int par1,
CreativeTabs par2CreativeTabs,
List par3List)
|
int |
idDropped(int par1,
Random par2Random,
int par3)
Returns the ID of the items to drop on destruction. |
boolean |
isWood(World world,
int x,
int y,
int z)
|
static int |
limitToValidMetadata(int par0)
returns a number between 0 and 3 |
void |
onBlockPlacedBy(World par1World,
int par2,
int par3,
int par4,
EntityLiving par5EntityLiving)
Called when the block is placed in the world. |
int |
quantityDropped(Random par1Random)
Returns the quantity of items to drop on block destruction. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String[] woodType
Method Detail |
---|
public int getRenderType()
getRenderType
in class Block
public int quantityDropped(Random par1Random)
quantityDropped
in class Block
public int idDropped(int par1, Random par2Random, int par3)
idDropped
in class Block
public void breakBlock(World par1World, int par2, int par3, int par4, int par5, int par6)
breakBlock
in class Block
public void onBlockPlacedBy(World par1World, int par2, int par3, int par4, EntityLiving par5EntityLiving)
onBlockPlacedBy
in class Block
public int getBlockTextureFromSideAndMetadata(int par1, int par2)
getBlockTextureFromSideAndMetadata
in class Block
public static int limitToValidMetadata(int par0)
public void getSubBlocks(int par1, CreativeTabs par2CreativeTabs, List par3List)
getSubBlocks
in class Block
public boolean canSustainLeaves(World world, int x, int y, int z)
Block
canSustainLeaves
in class Block
world
- The current worldx
- X Positiony
- Y Positionz
- Z Position
public boolean isWood(World world, int x, int y, int z)
isWood
in class Block
world
- 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 |