Class Cosmetic
java.lang.Object
com.storytimeproductions.stweaks.util.Cosmetic
Represents a cosmetic item with an ID, item model, display name, lore, and crafting recipe.
-
Constructor Summary
Constructors -
Method Summary
-
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 cosmeticitemModel
- the item model identifierdisplayName
- the display name of the cosmeticlore
- the lore (description) of the cosmeticrecipe
- the crafting recipe for the cosmetic
-
-
Method Details
-
getId
Gets the unique identifier for this cosmetic.- Returns:
- the cosmetic ID
-
getItemModel
Gets the item model identifier.- Returns:
- the item model
-
getDisplayName
Gets the display name of the cosmetic.- Returns:
- the display name
-
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
-