Package net.staticstudios.menus.button
Class PlayerSkullButtonBuilder
java.lang.Object
net.staticstudios.menus.button.PlayerSkullButtonBuilder
- 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 enchantedSet 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-clickedplayer(org.bukkit.entity.Player player) Set the player profile from a player for the buttonSet the player profile from a player id for the buttonplayerProfile(com.destroystokyo.paper.profile.PlayerProfile playerProfile) Set the player profile of the buttonSet the texture of the player skullMethods 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
-
PlayerSkullButtonBuilder
protected PlayerSkullButtonBuilder(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
-
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
-
playerProfile
public PlayerSkullButtonBuilder playerProfile(com.destroystokyo.paper.profile.PlayerProfile playerProfile) Set the player profile of the button- Parameters:
playerProfile- the player profile- Returns:
- the builder
-
player
Set the player profile from a player for the button- Parameters:
player- the player- Returns:
- the builder
-
playerId
Set the player profile from a player id for the button- Parameters:
playerId- the player id- Returns:
- the builder
-
texture
Set the texture of the player skull- Parameters:
base64Texture- the texture, encoded in base64- Returns:
- the builder
-
build
Description copied from interface:ButtonBuilderBuild the button- Specified by:
buildin interfaceButtonBuilder- Returns:
- The button
-
clone
-