Class AnvilConsumable

java.lang.Object
com.storytimeproductions.stweaks.consumables.AnvilConsumable
All Implemented Interfaces:
ItemConsumable

public class AnvilConsumable extends Object implements ItemConsumable
Represents a consumable item that allows players to open an anvil anywhere.
  • Constructor Details

    • AnvilConsumable

      public AnvilConsumable()
  • Method Details

    • getBaseMaterial

      public org.bukkit.Material getBaseMaterial()
      Description copied from interface: ItemConsumable
      Returns the base material for this consumable item.
      Specified by:
      getBaseMaterial in interface ItemConsumable
      Returns:
      the base material, e.g., Material.PAPER for a paper item.
    • getItemModel

      public String getItemModel()
      Description copied from interface: ItemConsumable
      Returns the unique item model identifier for this consumable.
      Specified by:
      getItemModel in interface ItemConsumable
      Returns:
      a string representing the item model, e.g., "storytime:back_token".
    • getName

      public net.kyori.adventure.text.Component getName()
      Description copied from interface: ItemConsumable
      Returns the display name for this consumable item.
      Specified by:
      getName in interface ItemConsumable
      Returns:
      a Component representing the name of the item, e.g., "Back Token".
    • getLore

      public List<net.kyori.adventure.text.Component> getLore()
      Description copied from interface: ItemConsumable
      Returns the lore for this consumable item.
      Specified by:
      getLore in interface ItemConsumable
      Returns:
      a List of Components representing the lore of the item,
    • getCommand

      public String getCommand()
      Description copied from interface: ItemConsumable
      Returns the command associated with this consumable item.
      Specified by:
      getCommand in interface ItemConsumable
      Returns:
      a string representing the command to execute when this item is used, e.g., "back".
    • getParameterNames

      public List<String> getParameterNames()
      Description copied from interface: ItemConsumable
      Returns a list of parameter names required for the command associated with this consumable.
      Specified by:
      getParameterNames in interface ItemConsumable
      Returns:
      a List of strings representing the parameter names, e.g., ["warpName"].
    • getPermissionNode

      public String getPermissionNode()
      Description copied from interface: ItemConsumable
      Returns the permission node required to use this consumable item.
      Specified by:
      getPermissionNode in interface ItemConsumable
      Returns:
      a string representing the permission node, or null if no