|
||||||||||
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.BlockContainer
net.minecraft.block.BlockSkull
public class BlockSkull
Field Summary |
---|
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 |
TileEntity |
createNewTileEntity(World par1World)
Returns a new instance of a block's tile entity class. |
int |
damageDropped(int par1)
Determines the damage on the item the block drops. |
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. |
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 |
getDamageValue(World par1World,
int par2,
int par3,
int par4)
Get the block's damage value (for use with pick block). |
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. |
void |
makeWither(World par1World,
int par2,
int par3,
int par4,
TileEntitySkull par5TileEntitySkull)
This method attempts to create a wither at the given location and skull |
void |
onBlockHarvested(World par1World,
int par2,
int par3,
int par4,
int par5,
EntityPlayer par6EntityPlayer)
Called when the block is attempted to be harvested |
void |
onBlockPlacedBy(World par1World,
int par2,
int par3,
int par4,
EntityLiving par5EntityLiving)
Called when the block is placed in the world. |
boolean |
renderAsNormalBlock()
If this block doesn't render as an ordinary block it will return False (examples: signs, buttons, stairs, etc) |
void |
setBlockBoundsBasedOnState(IBlockAccess par1IBlockAccess,
int par2,
int par3,
int par4)
Updates the blocks bounds based on its current state. |
Methods inherited from class net.minecraft.block.BlockContainer |
---|
createNewTileEntity, onBlockAdded, onBlockEventReceived |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public int getRenderType()
getRenderType
in class Block
public boolean isOpaqueCube()
isOpaqueCube
in class Block
public boolean renderAsNormalBlock()
renderAsNormalBlock
in class Block
public void setBlockBoundsBasedOnState(IBlockAccess par1IBlockAccess, int par2, int par3, int par4)
setBlockBoundsBasedOnState
in class Block
public AxisAlignedBB getCollisionBoundingBoxFromPool(World par1World, int par2, int par3, int par4)
getCollisionBoundingBoxFromPool
in class Block
public void onBlockPlacedBy(World par1World, int par2, int par3, int par4, EntityLiving par5EntityLiving)
onBlockPlacedBy
in class Block
public TileEntity createNewTileEntity(World par1World)
createNewTileEntity
in class BlockContainer
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 int damageDropped(int par1)
damageDropped
in class Block
public void onBlockHarvested(World par1World, int par2, int par3, int par4, int par5, EntityPlayer par6EntityPlayer)
onBlockHarvested
in class Block
public void breakBlock(World par1World, int par2, int par3, int par4, int par5, int par6)
breakBlock
in class BlockContainer
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 void makeWither(World par1World, int par2, int par3, int par4, TileEntitySkull par5TileEntitySkull)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |