public static class PlayerEvent.HarvestCheck extends PlayerEvent
ForgeEventFactory#doPlayerHarvestCheck(EntityPlayer, Block, boolean).block contains the Block that is being checked for harvesting. success contains the boolean value for whether the Block will be successfully harvested. Cancelable.HasResultMinecraftForge#EVENT_BUS.PlayerEvent.BreakSpeed, PlayerEvent.Clone, PlayerEvent.HarvestCheck, PlayerEvent.LoadFromFile, PlayerEvent.NameFormat, PlayerEvent.SaveToFile, PlayerEvent.StartTracking, PlayerEvent.StopTrackingLivingEvent.LivingJumpEvent, LivingEvent.LivingUpdateEventEntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructingEvent.HasResult, Event.Result| Modifier and Type | Field and Description |
|---|---|
Block |
block |
boolean |
success |
entityPlayerentityLivingentity| Constructor and Description |
|---|
PlayerEvent.HarvestCheck(EntityPlayer player,
Block block,
boolean success) |
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setuppublic final Block block
public boolean success
public PlayerEvent.HarvestCheck(EntityPlayer player, Block block, boolean success)