Package xyz.geik.farmer.api.handlers
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
ConstructorDescriptionFarmerMainGuiOpenEvent
(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 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
-
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 guifarmer
- Farmer object of playergui
- InventoryGui object of farmer- See Also:
-
-
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 classorg.bukkit.event.Event
- Returns:
- handler list
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList()Spigot handlers requirement * @return handler list- Returns:
- HandlerList list
-