public static class PlayerEvent.BreakSpeed extends PlayerEvent
ForgeEventFactory#getBreakSpeed(EntityPlayer, IBlockState, float, BlockPos).state contains the block being broken. originalSpeed contains the original speed at which the player broke the block. newSpeed contains the newSpeed at which the player will break the block. pos contains the coordinates at which this event is occurring. Y value -1 means location is unknown.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 |
|---|---|
float |
newSpeed |
float |
originalSpeed |
BlockPos |
pos |
IBlockState |
state |
entityPlayerentityLivingentity| Constructor and Description |
|---|
PlayerEvent.BreakSpeed(EntityPlayer player,
IBlockState state,
float original,
BlockPos pos) |
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setuppublic final IBlockState state
public final float originalSpeed
public float newSpeed
public final BlockPos pos
public PlayerEvent.BreakSpeed(EntityPlayer player, IBlockState state, float original, BlockPos pos)