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
Constructor and Description |
---|
BreakSpeed(EntityPlayer player,
IBlockState state,
float original,
BlockPos pos) |
Modifier and Type | Method and Description |
---|---|
float |
getNewSpeed() |
float |
getOriginalSpeed() |
BlockPos |
getPos() |
IBlockState |
getState() |
void |
setNewSpeed(float newSpeed) |
getEntityPlayer
getEntityLiving
getEntity
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
public BreakSpeed(EntityPlayer player, IBlockState state, float original, BlockPos pos)
public IBlockState getState()
public float getOriginalSpeed()
public float getNewSpeed()
public void setNewSpeed(float newSpeed)
public BlockPos getPos()