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 TraitTemplateParservoidCalled just before the attachedNPCis despawned.voidonSpawn()Called when anNPCis spawned.
-
Constructor Details
-
BehaviorTrait
public BehaviorTrait()
-
-
Method Details
-
onDespawn
public void onDespawn()Description copied from class:TraitCalled just before the attachedNPCis despawned.NPC.getEntity()will be non-null. -
onSpawn
public void onSpawn()Description copied from class:TraitCalled when anNPCis spawned.NPC.getEntity()will return null until this is called. This is also called onAttach when the NPC is already spawned. -
createTemplateParser
-