public class PlayerCloseMenuEvent
extends org.bukkit.event.Event
implements org.bukkit.event.Cancellable
Constructor and Description |
---|
PlayerCloseMenuEvent(SuperiorPlayer superiorPlayer,
ISuperiorMenu superiorMenu,
ISuperiorMenu newMenu)
The constructor of the event.
|
Modifier and Type | Method and Description |
---|---|
static org.bukkit.event.HandlerList |
getHandlerList() |
org.bukkit.event.HandlerList |
getHandlers() |
ISuperiorMenu |
getNewMenu()
Get the new menu that will be opened.
|
SuperiorPlayer |
getPlayer()
Get the player that opened the menu.
|
ISuperiorMenu |
getSuperiorMenu()
Get the menu that was opened by the player.
|
boolean |
isCancelled() |
void |
setCancelled(boolean cancelled) |
void |
setNewMenu(ISuperiorMenu newMenu)
Set the new menu that will be opened.
|
public PlayerCloseMenuEvent(SuperiorPlayer superiorPlayer, ISuperiorMenu superiorMenu, @Nullable ISuperiorMenu newMenu)
superiorPlayer
- The player that closed the menu.superiorMenu
- The menu that was closed.newMenu
- The new menu that will be opened.
If null, no menu will be opened.public SuperiorPlayer getPlayer()
public ISuperiorMenu getSuperiorMenu()
@Nullable public ISuperiorMenu getNewMenu()
public void setNewMenu(@Nullable ISuperiorMenu newMenu)
newMenu
- The new menu that will be opened.
If null, no menu will be opened.public boolean isCancelled()
isCancelled
in interface org.bukkit.event.Cancellable
public void setCancelled(boolean cancelled)
setCancelled
in interface org.bukkit.event.Cancellable
public org.bukkit.event.HandlerList getHandlers()
getHandlers
in class org.bukkit.event.Event
public static org.bukkit.event.HandlerList getHandlerList()