public static class BlockEvent.BreakEvent extends BlockEvent
BlockEvent.BreakEvent, BlockEvent.CreateFluidSourceEvent, BlockEvent.CropGrowEvent, BlockEvent.EntityMultiPlaceEvent, BlockEvent.EntityPlaceEvent, BlockEvent.FarmlandTrampleEvent, BlockEvent.FluidPlaceBlockEvent, BlockEvent.HarvestDropsEvent, BlockEvent.NeighborNotifyEvent, BlockEvent.PortalSpawnEvent
Event.HasResult, Event.Result
コンストラクタと説明 |
---|
BreakEvent(World world,
BlockPos pos,
BlockState state,
PlayerEntity player) |
修飾子とタイプ | メソッドと説明 |
---|---|
int |
getExpToDrop()
Get the experience dropped by the block after the event has processed
|
PlayerEntity |
getPlayer() |
void |
setExpToDrop(int exp)
Set the amount of experience dropped by the block after the event has processed
|
getPos, getState, getWorld
getListenerList, getParentListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
public BreakEvent(World world, BlockPos pos, BlockState state, PlayerEntity player)
public PlayerEntity getPlayer()
public int getExpToDrop()
public void setExpToDrop(int exp)
exp
- 1 or higher to drop experience, else nothing will drop