public class PlayerItemMendEvent extends PlayerEvent implements Cancellable
PlayerExpChangeEvent, and the
 results of this event directly affect the PlayerExpChangeEvent.Event.Resultplayer| Constructor and Description | 
|---|
PlayerItemMendEvent(@NotNull Player who,
                   @NotNull ItemStack item,
                   @NotNull ExperienceOrb experienceOrb,
                   int repairAmount)  | 
| Modifier and Type | Method and Description | 
|---|---|
@NotNull ExperienceOrb | 
getExperienceOrb()
Get the experience orb triggering the event. 
 | 
static @NotNull HandlerList | 
getHandlerList()  | 
@NotNull HandlerList | 
getHandlers()  | 
@NotNull ItemStack | 
getItem()
Get the  
ItemStack to be repaired. | 
int | 
getRepairAmount()
Get the amount the item is to be repaired. 
 | 
boolean | 
isCancelled()
Gets the cancellation state of this event. 
 | 
void | 
setCancelled(boolean cancelled)
Sets the cancellation state of this event. 
 | 
void | 
setRepairAmount(int amount)
Set the amount the item will be repaired. 
 | 
getPlayergetEventName, isAsynchronouspublic PlayerItemMendEvent(@NotNull
                           @NotNull Player who,
                           @NotNull
                           @NotNull ItemStack item,
                           @NotNull
                           @NotNull ExperienceOrb experienceOrb,
                           int repairAmount)
@NotNull public @NotNull ItemStack getItem()
ItemStack to be repaired.
 This is not necessarily the item the player is holding.@NotNull public @NotNull ExperienceOrb getExperienceOrb()
public int getRepairAmount()
public void setRepairAmount(int amount)
amount - how much damage will be repaired on the itempublic boolean isCancelled()
CancellableisCancelled in interface Cancellablepublic void setCancelled(boolean cancelled)
CancellablesetCancelled in interface Cancellablecancelled - true if you wish to cancel this event@NotNull public @NotNull HandlerList getHandlers()
getHandlers in class Event@NotNull public static @NotNull HandlerList getHandlerList()
Copyright © 2021. All rights reserved.