Package net.citizensnpcs.trait
Class BehaviorTrait
java.lang.Object
net.citizensnpcs.api.trait.Trait
net.citizensnpcs.trait.BehaviorTrait
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TraitTemplateParser
void
Called just before the attachedNPC
is despawned.void
onSpawn()
Called when anNPC
is spawned.
-
Constructor Details
-
BehaviorTrait
public BehaviorTrait()
-
-
Method Details
-
onDespawn
public void onDespawn()Description copied from class:Trait
Called just before the attachedNPC
is despawned.NPC.getEntity()
will be non-null. -
onSpawn
public void onSpawn()Description copied from class:Trait
Called when anNPC
is spawned.NPC.getEntity()
will return null until this is called. This is also called onAttach when the NPC is already spawned. -
createTemplateParser
-