Class Equipment

java.lang.Object
dev.foxikle.customnpcs.data.Equipment

public class Equipment extends Object
The class representing the NPC's items
  • Constructor Summary

    Constructors
    Constructor
    Description
    A constructor to create an equipment object with air as all items
    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
  • Method Summary

    Modifier and Type
    Method
    Description
     
    void
    importFromEntityEquipment(org.bukkit.inventory.EntityEquipment e)
    Imports the relevant items from an EntityEquipment Object

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 head
      chest - The item on the NPC's chest
      legs - The item on the NPC's legs
      boots - The item on the NPC's feet
      hand - The item in the NPC's hand
      offhand - The item in the NPC's offhand
    • Equipment

      public Equipment()
      A constructor to create an equipment object with air as all items
  • Method Details

    • importFromEntityEquipment

      public void importFromEntityEquipment(org.bukkit.inventory.EntityEquipment e)
      Imports the relevant items from an EntityEquipment Object
      Parameters:
      e - The entity equipment to pull items from.
    • clone

      public Equipment clone()
      Overrides:
      clone in class Object