Class ModdedArmorPiece
java.lang.Object
me.mythicalflame.spigotmodding.items.ModdedItem
me.mythicalflame.spigotmodding.items.ModdedArmorPiece
This class represents a custom armor piece.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class me.mythicalflame.spigotmodding.items.ModdedItem
equals, finalizeItem, getCustomModelData, getDisplayName, getID, getItem, getItem, getMaterial, getNamespace, hasCustomModelData, hashCode, onAttack, onInteract, onKill, onTick
-
Constructor Details
-
ModdedArmorPiece
public ModdedArmorPiece(String namespace, String id, org.bukkit.Material material, String name, Integer customModelData, List<String> lore) Constructs a ModdedArmorPiece object.- Parameters:
namespace
- The non-null namespace that this item belongs to.id
- The non-null ID of this item.material
- The non-null wearable Material that this item is based off of.name
- The nullable display name of this item.customModelData
- The nullable custom model data value of this item.lore
- The nullable lore of the item.- Throws:
NotWearableException
- If this constructor is called with a non-wearable Material
-