public static class PlayerEvent.BreakSpeed extends PlayerEvent
ForgeEventFactory#getBreakSpeed(EntityPlayer, Block, int, float, int, int, int)
.block
contains the block being broken. metadata
contains the metadata of 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. x
contains the x-coordinate at which this event is occurring. y
contains the y-coordinate at which this event is occurring. z
contains the z-coordinate at which this event is occurring. 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 |
---|---|
Block |
block |
int |
metadata |
float |
newSpeed |
float |
originalSpeed |
int |
x |
int |
y |
int |
z |
entityPlayer
entityLiving
entity
Constructor and Description |
---|
PlayerEvent.BreakSpeed(EntityPlayer player,
Block block,
int metadata,
float original)
Deprecated.
|
PlayerEvent.BreakSpeed(EntityPlayer player,
Block block,
int metadata,
float original,
int x,
int y,
int z) |
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
public final Block block
public final int metadata
public final float originalSpeed
public float newSpeed
public final int x
public final int y
public final int z
@Deprecated public PlayerEvent.BreakSpeed(EntityPlayer player, Block block, int metadata, float original)
public PlayerEvent.BreakSpeed(EntityPlayer player, Block block, int metadata, float original, int x, int y, int z)