Package xyz.geik.farmer.api.handlers
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
ConstructorDescriptionFarmerModuleGuiCreateEvent
(org.bukkit.entity.Player player, xyz.geik.glib.shades.inventorygui.InventoryGui gui, Farmer farmer) FarmerModuleGuiCreateEvent constructor -
Method Summary
Modifier and TypeMethodDescriptionstatic org.bukkit.event.HandlerList
Spigot handlers requirement * @return handler listorg.bukkit.event.HandlerList
Spigot handlers requirementvoid
setCancelled
(boolean isCancelled) Cancel eventMethods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
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 guigui
- that has createdfarmer
- 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 classorg.bukkit.event.Event
- Returns:
- handler list
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList()Spigot handlers requirement * @return handler list- Returns:
- HandlerList list
-