Package net.citizensnpcs.trait
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 net.citizensnpcs.api.trait.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
public void run()Description copied from class:TraitCalled every tick if overridden. -
setSleeping
-