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.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 |
int |
metadata |
float |
newSpeed |
float |
originalSpeed |
int |
x |
int |
y |
int |
z |
entityPlayerentityLivingentity| 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, setuppublic 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)