|
||||||||||
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.BlockFire
public class BlockFire
Field Summary |
---|
Method Summary | |
---|---|
boolean |
canBlockCatchFire(IBlockAccess par1IBlockAccess,
int par2,
int par3,
int par4)
Deprecated. |
boolean |
canBlockCatchFire(IBlockAccess world,
int x,
int y,
int z,
ForgeDirection face)
Side sensitive version that calls the block function. |
boolean |
canPlaceBlockAt(World par1World,
int par2,
int par3,
int par4)
Checks to see if its valid to put this block at the specified coordinates. |
boolean |
func_82506_l()
|
int |
getChanceToEncourageFire(World par1World,
int par2,
int par3,
int par4,
int par5)
Deprecated. |
int |
getChanceToEncourageFire(World world,
int x,
int y,
int z,
int oldChance,
ForgeDirection face)
Side sensitive version that calls the block function. |
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 |
getRenderType()
The type of render function that is called for this block |
void |
initializeBlock()
This method is called on a block after all other blocks gets already created. |
boolean |
isCollidable()
Returns if this block is collidable (only used by Fire). |
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 |
onBlockAdded(World par1World,
int par2,
int par3,
int par4)
Called whenever the block is added into the world. |
void |
onNeighborBlockChange(World par1World,
int par2,
int par3,
int par4,
int par5)
Lets the block know when one of its neighbor changes. |
int |
quantityDropped(Random par1Random)
Returns the quantity of items to drop on block destruction. |
void |
randomDisplayTick(World par1World,
int par2,
int par3,
int par4,
Random par5Random)
|
boolean |
renderAsNormalBlock()
If this block doesn't render as an ordinary block it will return False (examples: signs, buttons, stairs, etc) |
int |
tickRate()
How many world ticks before ticking |
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 void initializeBlock()
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 getRenderType()
getRenderType
in class Block
public int quantityDropped(Random par1Random)
quantityDropped
in class Block
public int tickRate()
tickRate
in class Block
public void updateTick(World par1World, int par2, int par3, int par4, Random par5Random)
updateTick
in class Block
public boolean func_82506_l()
func_82506_l
in class Block
public boolean isCollidable()
isCollidable
in class Block
@Deprecated public boolean canBlockCatchFire(IBlockAccess par1IBlockAccess, int par2, int par3, int par4)
@Deprecated public int getChanceToEncourageFire(World par1World, int par2, int par3, int par4, int par5)
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 onBlockAdded(World par1World, int par2, int par3, int par4)
onBlockAdded
in class Block
public void randomDisplayTick(World par1World, int par2, int par3, int par4, Random par5Random)
randomDisplayTick
in class Block
public boolean canBlockCatchFire(IBlockAccess world, int x, int y, int z, ForgeDirection face)
world
- The current worldx
- X Positiony
- Y Positionz
- Z Positionface
- The side the fire is coming from
public int getChanceToEncourageFire(World world, int x, int y, int z, int oldChance, ForgeDirection face)
world
- The current worldx
- X Positiony
- Y Positionz
- Z PositionoldChance
- The previous maximum chance.face
- The side the fire is coming from
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |