|
||||||||||
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.BlockRedstoneOre
public class BlockRedstoneOre
Field Summary |
---|
Constructor Summary | |
---|---|
BlockRedstoneOre(int par1,
int par2,
boolean par3)
|
Method Summary | |
---|---|
void |
dropBlockAsItemWithChance(World par1World,
int par2,
int par3,
int par4,
int par5,
float par6,
int par7)
Drops the block items with a specified chance of dropping the specified items |
int |
idDropped(int par1,
Random par2Random,
int par3)
Returns the ID of the items to drop on destruction. |
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 |
onBlockClicked(World par1World,
int par2,
int par3,
int par4,
EntityPlayer par5EntityPlayer)
Called when the block is clicked by a player. |
void |
onEntityWalking(World par1World,
int par2,
int par3,
int par4,
Entity par5Entity)
Called whenever an entity is walking on top of this block. |
int |
quantityDropped(Random par1Random)
Returns the quantity of items to drop on block destruction. |
int |
quantityDroppedWithBonus(int par1,
Random par2Random)
Returns the usual quantity dropped by the block plus a bonus of 1 to 'i' (inclusive). |
void |
randomDisplayTick(World par1World,
int par2,
int par3,
int par4,
Random par5Random)
|
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 |
Constructor Detail |
---|
public BlockRedstoneOre(int par1, int par2, boolean par3)
Method Detail |
---|
public int tickRate()
tickRate
in class Block
public void onBlockClicked(World par1World, int par2, int par3, int par4, EntityPlayer par5EntityPlayer)
onBlockClicked
in class Block
public void onEntityWalking(World par1World, int par2, int par3, int par4, Entity par5Entity)
onEntityWalking
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 updateTick(World par1World, int par2, int par3, int par4, Random par5Random)
updateTick
in class Block
public int idDropped(int par1, Random par2Random, int par3)
idDropped
in class Block
public int quantityDroppedWithBonus(int par1, Random par2Random)
quantityDroppedWithBonus
in class Block
public int quantityDropped(Random par1Random)
quantityDropped
in class Block
public void dropBlockAsItemWithChance(World par1World, int par2, int par3, int par4, int par5, float par6, int par7)
dropBlockAsItemWithChance
in class Block
public void randomDisplayTick(World par1World, int par2, int par3, int par4, Random par5Random)
randomDisplayTick
in class Block
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |