public class AnvilRepairEvent extends PlayerEvent
PlayerEvent.BreakSpeed, PlayerEvent.Clone, PlayerEvent.HarvestCheck, PlayerEvent.LoadFromFile, PlayerEvent.NameFormat, PlayerEvent.SaveToFile, PlayerEvent.StartTracking, PlayerEvent.StopTracking, PlayerEvent.VisibilityLivingEvent.LivingJumpEvent, LivingEvent.LivingUpdateEventEntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructingEvent.HasResult, Event.Result| Modifier and Type | Field and Description |
|---|---|
private float |
breakChance |
private ItemStack |
left |
private ItemStack |
output |
private ItemStack |
right |
| Constructor and Description |
|---|
AnvilRepairEvent(EntityPlayer player,
ItemStack left,
ItemStack right,
ItemStack output) |
| Modifier and Type | Method and Description |
|---|---|
float |
getBreakChance() |
ItemStack |
getIngredientInput()
Get the second item input into the anvil
|
ItemStack |
getItemInput()
Get the first item input into the anvil
|
ItemStack |
getItemResult()
Get the output result from the anvil
|
ItemStack |
getLeft()
Deprecated.
|
ItemStack |
getOutput()
Deprecated.
|
ItemStack |
getRight()
Deprecated.
|
void |
setBreakChance(float breakChance) |
getEntityPlayergetEntityLivinggetEntitygetListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup@Nonnull private final ItemStack left
@Nonnull private final ItemStack right
@Nonnull private final ItemStack output
private float breakChance
public AnvilRepairEvent(EntityPlayer player, @Nonnull ItemStack left, @Nonnull ItemStack right, @Nonnull ItemStack output)
@Deprecated @Nonnull public ItemStack getLeft()
getItemInput() - this is actually the output slot of the anvil@Deprecated @Nonnull public ItemStack getRight()
getIngredientInput()} - this is actually the first input slot of the anvil@Deprecated @Nonnull public ItemStack getOutput()
getItemResult() - this is actually the second input slot of the anvil@Nonnull public ItemStack getItemResult()
@Nonnull public ItemStack getItemInput()
@Nonnull public ItemStack getIngredientInput()
public float getBreakChance()
public void setBreakChance(float breakChance)