Class PlayerSizeConsumable
java.lang.Object
com.storytimeproductions.stweaks.consumables.PlayerSizeConsumable
- All Implemented Interfaces:
ItemConsumable
Represents a consumable item that allows players to change their own size using /entitysize
'size'.
-
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 a list of parameter types for each parameter name.Returns the permission node required to use this consumable item.
-
Constructor Details
-
PlayerSizeConsumable
public PlayerSizeConsumable()
-
-
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"].
-
getParameterTypes
Description copied from interface:ItemConsumableReturns a list of parameter types for each parameter name. Each value should be one of: "numeric", "alpha", or "alphanumeric" (default if not specified). The list must be the same length as getParameterNames().- Specified by:
getParameterTypesin interfaceItemConsumable- Returns:
- a List of strings representing the type for each parameter.
-
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
-