Uses of Class
net.citizensnpcs.api.trait.Trait
Packages that use Trait
Package
Description
- 
Uses of Trait in net.citizensnpcs.api.eventMethods in net.citizensnpcs.api.event that return TraitMethods in net.citizensnpcs.api.event that return types with arguments of type TraitModifier and TypeMethodDescriptionNPCTraitCommandAttachEvent.getTraitClass()NPCTraitCommandDetachEvent.getTraitClass()Constructors in net.citizensnpcs.api.event with parameters of type TraitModifierConstructorDescriptionNPCAddTraitEvent(NPC npc, Trait trait) NPCRemoveTraitEvent(NPC npc, Trait trait) protectedNPCTraitEvent(NPC npc, Trait trait) Constructor parameters in net.citizensnpcs.api.event with type arguments of type TraitModifierConstructorDescriptionNPCTraitCommandAttachEvent(NPC npc, Class<? extends Trait> traitClass, CommandSender sender) NPCTraitCommandDetachEvent(NPC npc, Class<? extends Trait> traitClass, CommandSender sender) 
- 
Uses of Trait in net.citizensnpcs.api.npcFields in net.citizensnpcs.api.npc with type parameters of type TraitMethods in net.citizensnpcs.api.npc with type parameters of type TraitModifier and TypeMethodDescription<T extends Trait>
 TAbstractNPC.getOrAddTrait(Class<T> clazz) <T extends Trait>
 TNPC.getOrAddTrait(Class<T> trait) Gets a trait from the given class.<T extends Trait>
 T<T extends Trait>
 TDeprecated.for intransparent naming.<T extends Trait>
 TAbstractNPC.getTraitNullable(Class<T> clazz) <T extends Trait>
 TNPC.getTraitNullable(Class<T> trait) Gets the trait instance with the given class.default <T extends Trait>
 com.google.common.base.Optional<T> NPC.getTraitOptional(Class<T> trait) Gets the trait instance with the given class.Methods in net.citizensnpcs.api.npc that return TraitModifier and TypeMethodDescriptionprotected TraitAbstractNPC.getTraitFor(Class<? extends Trait> clazz) Methods in net.citizensnpcs.api.npc that return types with arguments of type TraitModifier and TypeMethodDescriptionAbstractNPC.getTraits()NPC.getTraits()Returns the currently attachedTraitsMethods in net.citizensnpcs.api.npc with parameters of type TraitModifier and TypeMethodDescriptionvoidvoidAdds a trait to this NPC.Method parameters in net.citizensnpcs.api.npc with type arguments of type TraitModifier and TypeMethodDescriptionvoidvoidAdds a trait to this NPC.protected TraitAbstractNPC.getTraitFor(Class<? extends Trait> clazz) booleanbooleanChecks if this NPC has the given trait.voidAbstractNPC.removeTrait(Class<? extends Trait> traitClass) voidNPC.removeTrait(Class<? extends Trait> trait) Removes a trait from this NPC.
- 
Uses of Trait in net.citizensnpcs.api.traitMethods in net.citizensnpcs.api.trait with type parameters of type TraitModifier and TypeMethodDescription<T extends Trait>
 TGets a trait with the given class.<T extends Trait>
 TGets a trait with the given name.<T extends Trait>
 TTraitInfo.tryCreateInstance()Methods in net.citizensnpcs.api.trait that return types with arguments of type TraitModifier and TypeMethodDescriptionTraitFactory.getTraitClass(String name) Gets theTraitclass with the given name, or null if not found.TraitInfo.getTraitClass()Method parameters in net.citizensnpcs.api.trait with type arguments of type Trait
- 
Uses of Trait in net.citizensnpcs.api.trait.traitSubclasses of Trait in net.citizensnpcs.api.trait.trait
- 
Uses of Trait in net.citizensnpcs.npcMethods in net.citizensnpcs.npc with type parameters of type TraitMethods in net.citizensnpcs.npc that return types with arguments of type TraitMethods in net.citizensnpcs.npc with parameters of type Trait
- 
Uses of Trait in net.citizensnpcs.traitSubclasses of Trait in net.citizensnpcs.traitModifier and TypeClassDescriptionclassPersists the Minecraft age variable forAgeables.classPersists a list ofAnchors.classclassclassclassclassRedirects left and right clicks to anotherNPC.classclassclassclassclassPersists EnderCrystal metadata.classPersistsEndermanmetadata.classclassPersists aPlayerto follow while spawned.classclassclassEnable/disable Minecraft's gravity.classManages a set of holograms attached to the NPC.classclassPersists variousHorsemetadata.classPersistsItemFramemetadata.classPersists the /npc lookclose metadataclassclassPersists the NPC's mounted on entity, if any.classPersists Ocelot metadata.classclassPersistsPaintingmetadata.classclassPersists namedPoses.classPersistsCreeperpowered status.classPersists Rabbit metadata.classclassPersists saddle metadata.classclassclassPersistsSheepmetadata.classShop trait for NPC GUI shops.classclassPersists skin layers that should/should not be visible on the NPC skin.classclassclassPersists Slime size.classclassclassPersists the Villager profession metadata.classPersistsWithermetadata.classPersistsWolfmetadata.classPersistsSheepwool color metadata.
- 
Uses of Trait in net.citizensnpcs.trait.textSubclasses of Trait in net.citizensnpcs.trait.textModifier and TypeClassDescriptionclassPersists text metadata, i.e. text that will be said by an NPC on certain triggers.
- 
Uses of Trait in net.citizensnpcs.trait.versionedSubclasses of Trait in net.citizensnpcs.trait.versionedModifier and TypeClassDescriptionclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclass
- 
Uses of Trait in net.citizensnpcs.trait.waypointSubclasses of Trait in net.citizensnpcs.trait.waypoint