Package net.staticstudios.menus.button
Class SimpleButton
java.lang.Object
net.staticstudios.menus.button.SimpleButton
- All Implemented Interfaces:
Button
Represents a button which cannot be modified after its creation
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.staticstudios.menus.button.Button
Button.Action, Button.Placeholder -
Field Summary
Fields inherited from interface net.staticstudios.menus.button.Button
BACK, EMPTY, NEXT_PAGE, PREVIOUS_PAGE -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSimpleButton(org.bukkit.inventory.ItemStack source, Map<Button.Action, List<ButtonAction>> actions) Create a new simple button -
Method Summary
Modifier and TypeMethodDescription@Nullable org.bukkit.inventory.ItemStackgetItemRepresentation(MenuViewer viewer, Menu menu) Get the item representation of the button.voidinvokeActions(@NotNull Button.Action action, @NotNull Menu menu, @NotNull MenuViewer viewer) Invoke the actions of the button
-
Constructor Details
-
SimpleButton
protected SimpleButton(org.bukkit.inventory.ItemStack source, Map<Button.Action, List<ButtonAction>> actions) Create a new simple button- Parameters:
source- the source item stackactions- the actions
-
-
Method Details