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