Package net.citizensnpcs.trait
Class SleepTrait
java.lang.Object
net.citizensnpcs.api.trait.Trait
net.citizensnpcs.trait.SleepTrait
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Called just before the attachedNPC
is despawned.void
run()
Called every tick if overridden.void
setSleeping
(Location at)
-
Constructor Details
-
SleepTrait
public SleepTrait()
-
-
Method Details
-
onDespawn
public void onDespawn()Description copied from class:Trait
Called just before the attachedNPC
is despawned.NPC.getEntity()
will be non-null. -
run
public void run()Description copied from class:Trait
Called every tick if overridden. -
setSleeping
-