Class Cosmetic

java.lang.Object
com.storytimeproductions.stweaks.util.Cosmetic

public class Cosmetic extends Object
Represents a cosmetic item with an ID, item model, display name, lore, and crafting recipe.
  • Constructor Details

    • Cosmetic

      public Cosmetic(String id, String itemModel, String displayName, List<String> lore, org.bukkit.Material[][] recipe)
      Constructs a new Cosmetic.
      Parameters:
      id - the unique identifier for the cosmetic
      itemModel - the item model identifier
      displayName - the display name of the cosmetic
      lore - the lore (description) of the cosmetic
      recipe - the crafting recipe for the cosmetic
  • Method Details

    • getId

      public String getId()
      Gets the unique identifier for this cosmetic.
      Returns:
      the cosmetic ID
    • getItemModel

      public String getItemModel()
      Gets the item model identifier.
      Returns:
      the item model
    • getDisplayName

      public String getDisplayName()
      Gets the display name of the cosmetic.
      Returns:
      the display name
    • getLore

      public List<String> getLore()
      Gets the lore (description) of the cosmetic.
      Returns:
      the lore as a list of strings
    • getRecipe

      public org.bukkit.Material[][] getRecipe()
      Gets the crafting recipe for the cosmetic.
      Returns:
      the recipe as a 2D array of Material