Package dev.foxikle.customnpcs.data
Class Equipment
java.lang.Object
dev.foxikle.customnpcs.data.Equipment
The class representing the NPC's items
-
Constructor Summary
ConstructorsConstructorDescriptionA constructor to create an equipment object with air as all itemsEquipment
(org.bukkit.inventory.ItemStack head, org.bukkit.inventory.ItemStack chest, org.bukkit.inventory.ItemStack legs, org.bukkit.inventory.ItemStack boots, org.bukkit.inventory.ItemStack hand, org.bukkit.inventory.ItemStack offhand) The constructor to create the equipment object -
Method Summary
Modifier and TypeMethodDescriptionclone()
void
importFromEntityEquipment
(org.bukkit.inventory.EntityEquipment e) Imports the relevant items from an EntityEquipment Object
-
Constructor Details
-
Equipment
public Equipment(org.bukkit.inventory.ItemStack head, org.bukkit.inventory.ItemStack chest, org.bukkit.inventory.ItemStack legs, org.bukkit.inventory.ItemStack boots, org.bukkit.inventory.ItemStack hand, org.bukkit.inventory.ItemStack offhand) The constructor to create the equipment object- Parameters:
head
- The item on the NPC's headchest
- The item on the NPC's chestlegs
- The item on the NPC's legsboots
- The item on the NPC's feethand
- The item in the NPC's handoffhand
- The item in the NPC's offhand
-
Equipment
public Equipment()A constructor to create an equipment object with air as all items
-
-
Method Details