public class AnvilRepairEvent extends PlayerEvent
PlayerEvent.BreakSpeed, PlayerEvent.Clone, PlayerEvent.HarvestCheck, PlayerEvent.ItemCraftedEvent, PlayerEvent.ItemPickupEvent, PlayerEvent.ItemSmeltedEvent, PlayerEvent.LoadFromFile, PlayerEvent.NameFormat, PlayerEvent.PlayerChangedDimensionEvent, PlayerEvent.PlayerLoggedInEvent, PlayerEvent.PlayerLoggedOutEvent, PlayerEvent.PlayerRespawnEvent, PlayerEvent.SaveToFile, PlayerEvent.StartTracking, PlayerEvent.StopTracking, PlayerEvent.Visibility
LivingEvent.LivingJumpEvent, LivingEvent.LivingUpdateEvent
EntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructing, EntityEvent.EyeHeight
Modifier and Type | Field and Description |
---|---|
private float |
breakChance |
private ItemStack |
left |
private ItemStack |
output |
private ItemStack |
right |
Constructor and Description |
---|
AnvilRepairEvent(PlayerEntity 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
|
void |
setBreakChance(float breakChance) |
getPlayer
getEntityLiving
getEntity
@Nonnull private final ItemStack left
@Nonnull private final ItemStack right
@Nonnull private final ItemStack output
private float breakChance
public AnvilRepairEvent(PlayerEntity player, @Nonnull ItemStack left, @Nonnull ItemStack right, @Nonnull ItemStack output)
@Nonnull public ItemStack getItemResult()
@Nonnull public ItemStack getItemInput()
@Nonnull public ItemStack getIngredientInput()
public float getBreakChance()
public void setBreakChance(float breakChance)