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
.HasResult
MinecraftForge#EVENT_BUS
.PlayerEvent.BreakSpeed, PlayerEvent.Clone, PlayerEvent.HarvestCheck, PlayerEvent.LoadFromFile, PlayerEvent.NameFormat, PlayerEvent.SaveToFile, PlayerEvent.StartTracking, PlayerEvent.StopTracking
LivingEvent.LivingJumpEvent, LivingEvent.LivingUpdateEvent
EntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructing
Event.HasResult, Event.Result
Modifier and Type | Field and Description |
---|---|
float |
newSpeed |
float |
originalSpeed |
BlockPos |
pos |
IBlockState |
state |
entityPlayer
entityLiving
entity
Constructor and Description |
---|
PlayerEvent.BreakSpeed(EntityPlayer player,
IBlockState state,
float original,
BlockPos pos) |
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
public 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)