Uses of Class
net.citizensnpcs.api.trait.Trait
Packages that use Trait
Package
Description
-
Uses of Trait in net.citizensnpcs.api.event
Methods 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.npc
Fields 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.trait
Methods 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.trait
Subclasses of Trait in net.citizensnpcs.api.trait.trait