public static class BlockEvent.BreakEvent extends BlockEvent
BlockEvent.BreakEvent, BlockEvent.HarvestDropsEvent, BlockEvent.MultiPlaceEvent, BlockEvent.PlaceEvent
Event.HasResult, Event.Result
block, blockMetadata, world, x, y, z
Constructor and Description |
---|
BlockEvent.BreakEvent(int x,
int y,
int z,
World world,
Block block,
int blockMetadata,
EntityPlayer player) |
Modifier and Type | Method and Description |
---|---|
int |
getExpToDrop()
Get the experience dropped by the block after the event has processed
|
EntityPlayer |
getPlayer() |
void |
setExpToDrop(int exp)
Set the amount of experience dropped by the block after the event has processed
|
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
public BlockEvent.BreakEvent(int x, int y, int z, World world, Block block, int blockMetadata, EntityPlayer player)
public EntityPlayer getPlayer()
public int getExpToDrop()
public void setExpToDrop(int exp)
exp
- 1 or higher to drop experience, else nothing will drop