Package net.citizensnpcs.trait
Class ScoreboardTrait
java.lang.Object
net.citizensnpcs.api.trait.Trait
net.citizensnpcs.trait.ScoreboardTrait
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateTeam(String entityName) getColor()voidonDespawn(DespawnReason reason) Called just before the attachedNPCis despawned.voidonRemove()Called when a trait is removed from the attachedNPC.voidonSpawn()Called when anNPCis spawned.voidvoidvoidupdate()
-
Constructor Details
-
ScoreboardTrait
public ScoreboardTrait()
-
-
Method Details
-
createTeam
-
getColor
-
onDespawn
Description copied from class:TraitCalled just before the attachedNPCis despawned.NPC.getEntity()will be non-null. -
onRemove
public void onRemove()Description copied from class:TraitCalled when a trait is removed from the attachedNPC. -
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. -
setColor
-
setTags
-
update
public void update()
-