Class SleepTrait
java.lang.Object
net.citizensnpcs.api.trait.Trait
net.citizensnpcs.trait.SleepTrait
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCalled just before the attachedNPCis despawned.voidrun()Called every tick if overridden.voidsetSleeping(Location at) Methods inherited from class Trait
getName, getNPC, getTraitId, isRunImplemented, linkToNPC, load, onAttach, onCopy, onDespawn, onPreSpawn, onRemove, onRemove, onSpawn, save
-
Constructor Details
-
SleepTrait
public SleepTrait()
-
-
Method Details
-
onDespawn
public void onDespawn()Description copied from class:TraitCalled just before the attachedNPCis despawned.NPC.getEntity()will be non-null. -
run
-
setSleeping
-