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
Modifier and TypeClassDescriptionstatic enum
Get 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
ConstructorDescriptionPlayerOpenUIEvent
(Player player, ChestGUI gui, PlayerOpenUIEvent.UIType type) -
Method Summary
Modifier and TypeMethodDescriptiongetGUI()
Get the rendered GUI that'd be shown.static HandlerList
getType()
Get the type of the UI.Methods inherited from class org.bukkit.event.player.PlayerEvent
getPlayer
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
Methods 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:
getHandlers
in classEvent
-
getHandlerList
-