Package net.staticstudios.menus.button
Class SimpleButtonBuilder
java.lang.Object
net.staticstudios.menus.button.SimpleButtonBuilder
- All Implemented Interfaces:
Cloneable,ButtonBuilder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionamount(int amount) Set the amount of the buttonbuild()Build the buttonclone()description(String description) Set the description of the buttondescription(String... description) Set the description of the buttondescription(List<String> description) Set the description of the buttonenchanted(boolean enchanted) Set if the button should be enchantedmaterial(org.bukkit.Material material) Set the material of the buttonSet the name of the buttonname(net.kyori.adventure.text.Component name) Set the name of the buttononClick(ButtonAction action) Add an action to run when the button is clickedonLeftClick(ButtonAction action) Add an action to run when the button is left-clickedonRightClick(ButtonAction action) Add an action to run when the button is right-clickedMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.staticstudios.menus.button.ButtonBuilder
buildAndRegister
-
Constructor Details
-
SimpleButtonBuilder
protected SimpleButtonBuilder(boolean mutable)
-
-
Method Details
-
name
Set the name of the button- Parameters:
name- the name- Returns:
- the builder
-
name
Set the name of the button- Parameters:
name- the name- Returns:
- the builder
-
description
Set the description of the button- Parameters:
description- the description- Returns:
- the builder
-
description
Set the description of the button- Parameters:
description- the description- Returns:
- the builder
-
description
Set the description of the button- Parameters:
description- the description- Returns:
- the builder
-
material
Set the material of the button- Parameters:
material- the material- Returns:
- the builder
-
amount
Set the amount of the button- Parameters:
amount- the amount- Returns:
- the builder
-
enchanted
Set if the button should be enchanted- Parameters:
enchanted- if the button should be enchanted- Returns:
- the builder
-
build
Description copied from interface:ButtonBuilderBuild the button- Specified by:
buildin interfaceButtonBuilder- Returns:
- The button
-
clone
-