Class PlayerOpenArenaEditorInSetupGUI
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
de.marcely.bedwars.api.event.player.PlayerOpenArenaEditorInSetupGUI
- All Implemented Interfaces:
- ArenaEvent,- Cancellable
public abstract class PlayerOpenArenaEditorInSetupGUI
extends PlayerEvent
implements ArenaEvent, Cancellable
Gets called when player opens an arena editor inside the setup GUI (/bw arena setupgui)
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionclassstatic enumstatic enumNested classes/interfaces inherited from class org.bukkit.event.EventEvent.Result
- 
Field SummaryFields inherited from class org.bukkit.event.player.PlayerEventplayer
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidAdds a button to the end of its set category.protected abstract booleanconstruct(Plugin plugin, PlayerOpenArenaEditorInSetupGUI.ButtonCategory category, PlayerOpenArenaEditorInSetupGUI.ButtonType type, ItemStack icon, ClickListener listener) Constructs a new button on which players will be able to click on.constructSpliterator(Plugin plugin, PlayerOpenArenaEditorInSetupGUI.ButtonCategory category) Constructs a spliterator.@Nullable ArenagetArena()Returns the localArenathat is involved in this event.Returns all buttons that were added to a specific category.static HandlerListReturns the arena that is involved in this event.protected abstract voidsetButtonIcon(PlayerOpenArenaEditorInSetupGUI.Button button, ItemStack icon) protected abstract voidsetButtonVisibility(PlayerOpenArenaEditorInSetupGUI.Button button, boolean visible) Methods inherited from class org.bukkit.event.player.PlayerEventgetPlayerMethods inherited from class org.bukkit.event.EventgetEventName, isAsynchronousMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.bukkit.event.CancellableisCancelled, setCancelled
- 
Constructor Details- 
PlayerOpenArenaEditorInSetupGUI
 
- 
- 
Method Details- 
setButtonIconprotected abstract void setButtonIcon(PlayerOpenArenaEditorInSetupGUI.Button button, ItemStack icon) 
- 
setButtonVisibilityprotected abstract void setButtonVisibility(PlayerOpenArenaEditorInSetupGUI.Button button, boolean visible) 
- 
buttonExists
- 
getArenaReturns the localArenathat is involved in this event.May be nullif the arena isn't local.- Specified by:
- getArenain interface- ArenaEvent
- Returns:
- The arena that is involved. May be null
 
- 
getRemoteArenaReturns the arena that is involved in this event.- Returns:
- The involved arena
 
- 
getButtonspublic List<PlayerOpenArenaEditorInSetupGUI.Button> getButtons(PlayerOpenArenaEditorInSetupGUI.ButtonCategory category) Returns all buttons that were added to a specific category.It's safe to remove, add and iterate the entries of this list. Those changes are also getting applied to the real world. - Parameters:
- category- The category to which the buttons were added
- Returns:
- All existing buttons of a category
 
- 
addButtonAdds a button to the end of its set category.Use construct(Plugin, ButtonCategory, ButtonType, ItemStack, ClickListener)to create a Button instance.- Parameters:
- button- The button that shall be added
 
- 
constructpublic PlayerOpenArenaEditorInSetupGUI.Button construct(Plugin plugin, PlayerOpenArenaEditorInSetupGUI.ButtonCategory category, PlayerOpenArenaEditorInSetupGUI.ButtonType type, ItemStack icon, ClickListener listener) Constructs a new button on which players will be able to click on.Keep in mind that this does not automatically adds it, it's only constructing the object. To add it use addButton(Button)or add it to the list ingetButtons(ButtonCategory).- Parameters:
- plugin- The plugin that created the listener (or this button). This is important so that the button automatically gets removed when the plugin unload
- category- The category/row to which the item shall be added to
- type- The type of the button. Plugins should use- PlayerOpenArenaEditorInSetupGUI.ButtonType.CUSTOM, but this is not a must. Does effectivelly nothing, but helps plugins to orientate
- icon- The icon of the button which players will see
- listener- The listener that handles what will happen when the player clicks on it
- Returns:
- The constructed button
 
- 
constructSpliteratorpublic PlayerOpenArenaEditorInSetupGUI.Button constructSpliterator(Plugin plugin, PlayerOpenArenaEditorInSetupGUI.ButtonCategory category) Constructs a spliterator.Keep in mind that this does not automatically adds it, it's only constructing the object. To add it use addButton(Button)or add it to the list ingetButtons(ButtonCategory).- Parameters:
- plugin- The plugin that created the listener (or this button). This is important so that the button automatically gets removed when the plugin unload
- category- The category/row to which the item shall be added to
- Returns:
- The constructed button
 
- 
getHandlers- Specified by:
- getHandlersin class- Event
 
- 
getHandlerList
 
-