Class PlayerOpenUIEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
de.marcely.bedwars.api.event.player.PlayerOpenUIEvent
- All Implemented Interfaces:
Cancellable
Gets called when a misc variant of a UI is being shown
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumGet the type of the UI that can be shown.Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result -
Field Summary
Fields inherited from class org.bukkit.event.player.PlayerEvent
player -
Constructor Summary
ConstructorsConstructorDescriptionPlayerOpenUIEvent(Player player, ChestGUI gui, PlayerOpenUIEvent.UIType type) -
Method Summary
Modifier and TypeMethodDescriptiongetGUI()Get the rendered GUI that'd be shown.static HandlerListgetType()Get the type of the UI.Methods inherited from class org.bukkit.event.player.PlayerEvent
getPlayerMethods inherited from class org.bukkit.event.Event
getEventName, isAsynchronousMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.bukkit.event.Cancellable
isCancelled, setCancelled
-
Constructor Details
-
PlayerOpenUIEvent
-
-
Method Details
-
getGUI
Get the rendered GUI that'd be shown.- Returns:
- The GUI that is about to be shown
-
getType
Get the type of the UI.- Returns:
- The UI type
-
getHandlers
- Specified by:
getHandlersin classEvent
-
getHandlerList
-