Class CustomPrepareAnvilEvent

java.lang.Object
org.bukkit.event.Event
org.bukkit.event.inventory.InventoryEvent
com.destroystokyo.paper.event.inventory.PrepareResultEvent
org.bukkit.event.inventory.PrepareAnvilEvent
me.wolfyscript.customcrafting.listeners.customevents.CustomPrepareAnvilEvent
All Implemented Interfaces:
org.bukkit.event.Cancellable

public class CustomPrepareAnvilEvent extends org.bukkit.event.inventory.PrepareAnvilEvent implements org.bukkit.event.Cancellable
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.bukkit.event.Event

    org.bukkit.event.Event.Result
  • Field Summary

    Fields inherited from class org.bukkit.event.inventory.InventoryEvent

    transaction
  • Constructor Summary

    Constructors
    Constructor
    Description
    CustomPrepareAnvilEvent​(org.bukkit.inventory.InventoryView transaction, org.bukkit.inventory.ItemStack result, CustomAnvilRecipe recipe)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    boolean
     
    void
    setCancelled​(boolean cancelled)
     

    Methods inherited from class org.bukkit.event.inventory.PrepareAnvilEvent

    getInventory, getResult, setResult

    Methods inherited from class com.destroystokyo.paper.event.inventory.PrepareResultEvent

    getHandlerList, getHandlers

    Methods inherited from class org.bukkit.event.inventory.InventoryEvent

    getView, getViewers

    Methods inherited from class org.bukkit.event.Event

    callEvent, getEventName, isAsynchronous

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CustomPrepareAnvilEvent

      public CustomPrepareAnvilEvent(org.bukkit.inventory.InventoryView transaction, org.bukkit.inventory.ItemStack result, CustomAnvilRecipe recipe)
  • Method Details

    • isCancelled

      public boolean isCancelled()
      Specified by:
      isCancelled in interface org.bukkit.event.Cancellable
    • setCancelled

      public void setCancelled(boolean cancelled)
      Specified by:
      setCancelled in interface org.bukkit.event.Cancellable
    • getRecipe

      public CustomAnvilRecipe getRecipe()