Class FarmerMainGuiOpenEvent

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

public class FarmerMainGuiOpenEvent extends org.bukkit.event.Event
FarmerMainGuiOpenEvent fired when a player open the main gui
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
    FarmerMainGuiOpenEvent(org.bukkit.entity.Player player, Farmer farmer, xyz.geik.glib.shades.inventorygui.InventoryGui gui)
    FarmerMainGuiOpenEvent constructor with player, farmer and gui objects as parameters
  • 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

    • FarmerMainGuiOpenEvent

      public FarmerMainGuiOpenEvent(org.bukkit.entity.Player player, Farmer farmer, xyz.geik.glib.shades.inventorygui.InventoryGui gui)
      FarmerMainGuiOpenEvent constructor with player, farmer and gui objects as parameters
      Parameters:
      player - Player who open the gui
      farmer - Farmer object of player
      gui - InventoryGui object of farmer
      See Also:
      • InventoryGui
      • InventoryGui.show(org.bukkit.entity.HumanEntity)
      • Player
      • Farmer
  • Method Details

    • setCancelled

      public void setCancelled(boolean isCancelled)
      Cancel event
      Parameters:
      isCancelled - Event status
    • 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