Class FarmerModuleGuiCreateEvent

java.lang.Object
org.bukkit.event.Event
xyz.geik.farmer.api.handlers.FarmerModuleGuiCreateEvent

public class FarmerModuleGuiCreateEvent extends org.bukkit.event.Event
FarmerModuleGuiCreateEvent is called when a farmer module gui is created
Author:
poyrazinan
  • Nested Class Summary

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

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

    Constructors
    Constructor
    Description
    FarmerModuleGuiCreateEvent(org.bukkit.entity.Player player, xyz.geik.glib.shades.inventorygui.InventoryGui gui, Farmer farmer)
    FarmerModuleGuiCreateEvent constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.bukkit.event.HandlerList
    Spigot handlers requirement * @return handler list
    org.bukkit.event.HandlerList
    Spigot handlers requirement
    void
    setCancelled(boolean isCancelled)
    Cancel event

    Methods inherited from class org.bukkit.event.Event

    getEventName, isAsynchronous

    Methods inherited from class java.lang.Object

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

    • FarmerModuleGuiCreateEvent

      public FarmerModuleGuiCreateEvent(org.bukkit.entity.Player player, xyz.geik.glib.shades.inventorygui.InventoryGui gui, Farmer farmer)
      FarmerModuleGuiCreateEvent constructor
      Parameters:
      player - who opened the gui
      gui - that has created
      farmer - that has opened the gui as reference
      See Also:
  • Method Details

    • setCancelled

      public void setCancelled(boolean isCancelled)
      Cancel event
      Parameters:
      isCancelled - status of event (true = cancelled)
    • getHandlers

      public org.bukkit.event.HandlerList getHandlers()
      Spigot handlers requirement
      Specified by:
      getHandlers in class org.bukkit.event.Event
      Returns:
      handler list
    • getHandlerList

      public static org.bukkit.event.HandlerList getHandlerList()
      Spigot handlers requirement * @return handler list
      Returns:
      HandlerList list