Uses of Class
net.citizensnpcs.api.trait.Trait
Package
Description
-
Uses of Trait in net.citizensnpcs.api.event
Modifier and TypeMethodDescriptionNPCTraitCommandAttachEvent.getTraitClass()
NPCTraitCommandDetachEvent.getTraitClass()
ModifierConstructorDescriptionNPCAddTraitEvent
(NPC npc, Trait trait) NPCRemoveTraitEvent
(NPC npc, Trait trait) protected
NPCTraitEvent
(NPC npc, Trait trait) ModifierConstructorDescriptionNPCTraitCommandAttachEvent
(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
Modifier 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.Modifier and TypeMethodDescriptionprotected Trait
AbstractNPC.getTraitFor
(Class<? extends Trait> clazz) Modifier and TypeMethodDescriptionAbstractNPC.getTraits()
NPC.getTraits()
Returns the currently attachedTrait
sModifier and TypeMethodDescriptionvoid
void
Adds a trait to this NPC.Modifier 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
Modifier 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()
Modifier and TypeMethodDescriptionTraitFactory.getTraitClass
(String name) Gets theTrait
class with the given name, or null if not found.TraitInfo.getTraitClass()
-
Uses of Trait in net.citizensnpcs.api.trait.trait
-
Uses of Trait in net.citizensnpcs.npc
-
Uses of Trait in net.citizensnpcs.trait
Modifier and TypeClassDescriptionclass
Persists the Minecraft age variable forAgeable
s.class
Persists a list ofAnchor
s.class
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
-
Uses of Trait in net.citizensnpcs.trait.versioned
Modifier 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