Class NickConsumable
java.lang.Object
com.storytimeproductions.stweaks.consumables.NickConsumable
- All Implemented Interfaces:
ItemConsumable
Represents a consumable item that allows players to change their nickname.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.MaterialReturns the base material for this consumable item.Returns the command associated with this consumable item.Returns the unique item model identifier for this consumable.List<net.kyori.adventure.text.Component> getLore()Returns the lore for this consumable item.net.kyori.adventure.text.ComponentgetName()Returns the display name for this consumable item.Returns a list of parameter names required for the command associated with this consumable.Returns the permission node required to use this consumable item.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ItemConsumable
getParameterTypesModifier and TypeMethodDescriptionReturns a list of parameter types for each parameter name.
-
Constructor Details
-
NickConsumable
public NickConsumable()
-
-
Method Details
-
getBaseMaterial
public org.bukkit.Material getBaseMaterial()Description copied from interface:ItemConsumableReturns the base material for this consumable item.- Specified by:
getBaseMaterialin interfaceItemConsumable- Returns:
- the base material, e.g., Material.PAPER for a paper item.
-
getItemModel
Description copied from interface:ItemConsumableReturns the unique item model identifier for this consumable.- Specified by:
getItemModelin interfaceItemConsumable- Returns:
- a string representing the item model, e.g., "storytime:back_token".
-
getName
public net.kyori.adventure.text.Component getName()Description copied from interface:ItemConsumableReturns the display name for this consumable item.- Specified by:
getNamein interfaceItemConsumable- Returns:
- a Component representing the name of the item, e.g., "Back Token".
-
getLore
Description copied from interface:ItemConsumableReturns the lore for this consumable item.- Specified by:
getLorein interfaceItemConsumable- Returns:
- a List of Components representing the lore of the item,
-
getCommand
Description copied from interface:ItemConsumableReturns the command associated with this consumable item.- Specified by:
getCommandin interfaceItemConsumable- Returns:
- a string representing the command to execute when this item is used, e.g., "back".
-
getParameterNames
Description copied from interface:ItemConsumableReturns a list of parameter names required for the command associated with this consumable.- Specified by:
getParameterNamesin interfaceItemConsumable- Returns:
- a List of strings representing the parameter names, e.g., ["warpName"].
-
getPermissionNode
Description copied from interface:ItemConsumableReturns the permission node required to use this consumable item.- Specified by:
getPermissionNodein interfaceItemConsumable- Returns:
- a string representing the permission node, or null if no
-