Class PrepareInventoryResultEvent

java.lang.Object
org.bukkit.event.Event
org.bukkit.event.inventory.InventoryEvent
org.bukkit.event.inventory.PrepareInventoryResultEvent
Direct Known Subclasses:
PrepareAnvilEvent, PrepareGrindstoneEvent, PrepareSmithingEvent

public class PrepareInventoryResultEvent extends InventoryEvent
Called when an item is put in a slot and the result is calculated.
  • Constructor Details

    • PrepareInventoryResultEvent

      public PrepareInventoryResultEvent(@NotNull InventoryView inventory, @Nullable ItemStack result)
  • Method Details

    • getResult

      @Nullable public ItemStack getResult()
      Get result item, may be null.
      Returns:
      result item
    • setResult

      public void setResult(@Nullable ItemStack result)
      Set result item, may be null.
      Parameters:
      result - result item
    • getHandlers

      @NotNull public HandlerList getHandlers()
      Overrides:
      getHandlers in class InventoryEvent
    • getHandlerList

      @NotNull public static HandlerList getHandlerList()