Class BackConsumable
java.lang.Object
com.storytimeproductions.stweaks.consumables.BackConsumable
- All Implemented Interfaces:
ItemConsumable
Represents a consumable item that allows players to return to a previously teleported region.
This item is represented by a paper with a specific model and lore.
-
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 the names of parameters required by 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
-
BackConsumable
public BackConsumable()
-
-
Method Details
-
getBaseMaterial
public org.bukkit.Material getBaseMaterial()Returns the base material for this consumable item.- Specified by:
getBaseMaterialin interfaceItemConsumable- Returns:
- the base material, which is PAPER for this consumable.
-
getItemModel
Returns the unique item model identifier for this consumable.- Specified by:
getItemModelin interfaceItemConsumable- Returns:
- a string representing the item model, e.g., "storytime:back"
-
getName
public net.kyori.adventure.text.Component getName()Returns 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
Returns the lore for this consumable item.context or instructions for the player.
- Specified by:
getLorein interfaceItemConsumable- Returns:
- a List of Components representing the lore of the item,
-
getCommand
Returns 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
Returns the names of parameters required by the command associated with this consumable.- Specified by:
getParameterNamesin interfaceItemConsumable- Returns:
- an empty list, as this consumable does not require any parameters.
-
getPermissionNode
Returns the permission node required to use this consumable item.- Specified by:
getPermissionNodein interfaceItemConsumable- Returns:
- a string representing the permission node, or null if no permission
-