public class AnvilRepairEvent extends PlayerEvent
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 |
---|
AnvilRepairEvent(EntityPlayer player,
ItemStack output,
ItemStack left,
ItemStack right) |
Modifier and Type | Method and Description |
---|---|
float |
getBreakChance() |
ItemStack |
getLeft()
Fired when the player removes a "repaired" item from the Anvil's Output slot.
|
ItemStack |
getOutput() |
ItemStack |
getRight() |
void |
setBreakChance(float breakChance) |
getEntityPlayer
getEntityLiving
getEntity
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
public AnvilRepairEvent(EntityPlayer player, ItemStack output, ItemStack left, ItemStack right)
public ItemStack getLeft()
public ItemStack getRight()
public ItemStack getOutput()
public float getBreakChance()
public void setBreakChance(float breakChance)