Class PlayerOpenArenaEditorInSetupGUI.Button
java.lang.Object
de.marcely.bedwars.api.event.player.PlayerOpenArenaEditorInSetupGUI.Button
- Enclosing class:
- PlayerOpenArenaEditorInSetupGUI
- 
Method SummaryModifier and TypeMethodDescriptionbooleanexists()Returns whether or not the button still exists on the GUI.Returns the category in which this button is inside.getEvent()Returns the event in which this button was constructed.@Nullable ItemStackgetIcon()Returns a clone of the icon.@Nullable ClickListenerReturns the listener that handles what will happen when the player clicks on the button.Returns the plugin that created this button.getType()Returns the buttons type.booleanA button may exist in the GUI, but this does not mean that it's actually visible.voidSet the icon of the button.voidsetVisible(boolean visible) A button may exist in the GUI, but this does not mean that it's actually visible.
- 
Method Details- 
getPluginReturns the plugin that created this button.- Returns:
- The creator of this plugin
 
- 
getCategoryReturns the category in which this button is inside.- Returns:
- The category of this button
 
- 
getTypeReturns the buttons type.- Returns:
- The type of the button
 
- 
getListenerReturns the listener that handles what will happen when the player clicks on the button.- Returns:
- The handler of the button
 
- 
getIconReturns a clone of the icon. Might be null, used for spliterators.- Returns:
- The icon of the button
 
- 
setIconSet the icon of the button.It's possible to dynamically change the icon by invoking this method. - Parameters:
- icon- The new icon
 
- 
isVisiblepublic boolean isVisible()A button may exist in the GUI, but this does not mean that it's actually visible.It's possible to dynamically hide and show a button. By this the button disappears as if it has been removed. - Returns:
- If it's visible or not
 
- 
setVisiblepublic void setVisible(boolean visible) A button may exist in the GUI, but this does not mean that it's actually visible.It's possible to dynamically hide and show a button. By this the button disappears as if it has been removed. - Parameters:
- visible- If it shall be visible or hidden
 
- 
existspublic boolean exists()Returns whether or not the button still exists on the GUI.Keep in mind that this will also return false when the GUI has been disposed. While it may be closed it does not automatically mean that is has been disposed - Returns:
- If the button still exists internally
 
- 
getEventReturns the event in which this button was constructed.- Returns:
- The event in which this button was initiated
 
 
-