Class Equipment
java.lang.Object
net.citizensnpcs.api.trait.Trait
net.citizensnpcs.api.trait.trait.Equipment
Represents an NPC's equipment.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic class -
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget(Equipment.EquipmentSlot eslot) Get an NPC's equipment from the given slot.Gets the NPC's cosmetic equipment from the given slot.Get all of an NPC's cosmetic equipment.Get all of an NPC's equipment.Get all of the equipment as aMap.voidLoads a trait.voidonAttach()Called when the trait has been attached to anNPC.voidonSpawn()Called when anNPCis spawned.voidrun()Called every tick if overridden.voidSaves a trait.voidset(Equipment.EquipmentSlot eslot, ItemStack item) Set the armor from the given slot as the given item.voidsetCosmetic(Equipment.EquipmentSlot slot, ItemStack stack) Set the cosmetic equipment in the given slotMethods inherited from class Trait
getName, getNPC, getTraitId, isRunImplemented, linkToNPC, onCopy, onDespawn, onDespawn, onPreSpawn, onRemove, onRemove