Package net.citizensnpcs.trait
Class ScoreboardTrait
java.lang.Object
net.citizensnpcs.api.trait.Trait
net.citizensnpcs.trait.ScoreboardTrait
- 
Field Summary
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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- 
ScoreboardTraitpublic ScoreboardTrait()
 
- 
- 
Method Details- 
createTeam
- 
getColor
- 
onDespawnDescription copied from class:TraitCalled just before the attachedNPCis despawned.NPC.getEntity()will be non-null.
- 
onRemovepublic void onRemove()Description copied from class:TraitCalled when a trait is removed from the attachedNPC.
- 
onSpawnpublic 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
- 
updatepublic void update()
 
-