Class GuiEngineEvent
java.lang.Object
org.bukkit.event.Event
io.github.toberocat.guiengine.event.spigot.GuiEngineEvent
- Direct Known Subclasses:
GuiCloseEvent
,GuiComponentClickEvent
,GuiComponentDragEvent
public class GuiEngineEvent
extends org.bukkit.event.Event
Represents a custom GUI engine event that extends the `Event` class from Bukkit.
This class is the base class for all GUI-related events in the GUI engine.
This class is licensed under the GNU General Public License. Created: 21.05.2023 Author: Tobias Madlberger (Tobias)
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Constructor Summary
ConstructorsConstructorDescriptionGuiEngineEvent
(@NotNull GuiContext context) Constructs a new `GuiEngineEvent` with the associated `GuiContext`. -
Method Summary
Modifier and TypeMethodDescription@NotNull GuiContext
Gets the `GuiContext` associated with this GUI engine event.static @NotNull org.bukkit.event.HandlerList
Gets the `HandlerList` for this GUI engine event.@NotNull org.bukkit.event.HandlerList
Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
GuiEngineEvent
Constructs a new `GuiEngineEvent` with the associated `GuiContext`.- Parameters:
context
- The `GuiContext` associated with the event.
-
-
Method Details
-
getHandlerList
@NotNull public static @NotNull org.bukkit.event.HandlerList getHandlerList()Gets the `HandlerList` for this GUI engine event.- Returns:
- The `HandlerList` for this event.
-
getContext
Gets the `GuiContext` associated with this GUI engine event.- Returns:
- The `GuiContext` associated with the event.
-
getHandlers
@NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlers
in classorg.bukkit.event.Event
-