Package net.citizensnpcs.trait
Class SleepTrait
java.lang.Object
net.citizensnpcs.api.trait.Trait
net.citizensnpcs.trait.SleepTrait
- 
Field Summary
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidCalled just before the attachedNPCis despawned.voidrun()Called every tick if overridden.voidsetSleeping(Location at) 
- 
Constructor Details- 
SleepTraitpublic SleepTrait()
 
- 
- 
Method Details- 
onDespawnpublic void onDespawn()Description copied from class:TraitCalled just before the attachedNPCis despawned.NPC.getEntity()will be non-null.
- 
runpublic void run()Description copied from class:TraitCalled every tick if overridden.
- 
setSleeping
 
-