|
||||||||||
| 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.BlockTNT
public class BlockTNT
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
BlockTNT(int par1,
int par2)
|
|
| Method Summary | |
|---|---|
boolean |
canDropFromExplosion(Explosion par1Explosion)
Return whether this block can drop from an explosion. |
int |
getBlockTextureFromSide(int par1)
Returns the block texture based on the side being looked at. |
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 |
onBlockAdded(World par1World,
int par2,
int par3,
int par4)
Called whenever the block is added into the world. |
void |
onBlockDestroyedByExplosion(World par1World,
int par2,
int par3,
int par4)
Called upon the block being destroyed by an explosion |
void |
onBlockDestroyedByPlayer(World par1World,
int par2,
int par3,
int par4,
int par5)
Called right before the block is destroyed by a player. |
void |
onEntityCollidedWithBlock(World par1World,
int par2,
int par3,
int par4,
Entity par5Entity)
Triggered whenever an entity collides with this block (enters into the block). |
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. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BlockTNT(int par1,
int par2)
| Method Detail |
|---|
public int getBlockTextureFromSide(int par1)
getBlockTextureFromSide in class Block
public void onBlockAdded(World par1World,
int par2,
int par3,
int par4)
onBlockAdded in class Block
public void onNeighborBlockChange(World par1World,
int par2,
int par3,
int par4,
int par5)
onNeighborBlockChange in class Blockpublic int quantityDropped(Random par1Random)
quantityDropped in class Block
public void onBlockDestroyedByExplosion(World par1World,
int par2,
int par3,
int par4)
onBlockDestroyedByExplosion in class Block
public void onBlockDestroyedByPlayer(World par1World,
int par2,
int par3,
int par4,
int par5)
onBlockDestroyedByPlayer 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 void onEntityCollidedWithBlock(World par1World,
int par2,
int par3,
int par4,
Entity par5Entity)
onEntityCollidedWithBlock in class Blockpublic boolean canDropFromExplosion(Explosion par1Explosion)
canDropFromExplosion in class Block
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||