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) protected
NPCTraitEvent
(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 Trait
AbstractNPC.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 attachedTrait
sMethods in net.citizensnpcs.api.npc with parameters of type TraitModifier and TypeMethodDescriptionvoid
void
Adds a trait to this NPC.Method parameters in net.citizensnpcs.api.npc with type arguments of type TraitModifier and TypeMethodDescriptionvoid
void
Adds a trait to this NPC.protected Trait
AbstractNPC.getTraitFor
(Class<? extends Trait> clazz) boolean
boolean
Checks if this NPC has the given trait.void
AbstractNPC.removeTrait
(Class<? extends Trait> traitClass) void
NPC.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 theTrait
class 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 -
Uses of Trait in net.citizensnpcs.npc
Methods 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.trait
Subclasses of Trait in net.citizensnpcs.traitModifier and TypeClassDescriptionclass
Persists the Minecraft age variable forAgeable
s.class
Persists a list ofAnchor
s.class
class
class
class
class
Redirects left and right clicks to anotherNPC
.class
class
class
class
class
Persists EnderCrystal metadata.class
PersistsEnderman
metadata.class
class
Persists aPlayer
to follow while spawned.class
class
class
Enable/disable Minecraft's gravity.class
Manages a set of holograms attached to the NPC.class
class
Persists variousHorse
metadata.class
PersistsItemFrame
metadata.class
Persists the /npc lookclose metadataclass
class
Persists the NPC's mounted on entity, if any.class
Persists Ocelot metadata.class
class
PersistsPainting
metadata.class
class
Persists namedPose
s.class
PersistsCreeper
powered status.class
Persists Rabbit metadata.class
class
Persists saddle metadata.class
class
class
PersistsSheep
metadata.class
Shop trait for NPC GUI shops.class
class
Persists skin layers that should/should not be visible on the NPC skin.class
class
class
Persists Slime size.class
class
class
Persists the Villager profession metadata.class
PersistsWither
metadata.class
PersistsWolf
metadata.class
PersistsSheep
wool color metadata. -
Uses of Trait in net.citizensnpcs.trait.text
Subclasses of Trait in net.citizensnpcs.trait.text -
Uses of Trait in net.citizensnpcs.trait.versioned
Subclasses of Trait in net.citizensnpcs.trait.versionedModifier and TypeClassDescriptionclass
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
-
Uses of Trait in net.citizensnpcs.trait.waypoint
Subclasses of Trait in net.citizensnpcs.trait.waypoint