Package net.citizensnpcs.trait
Class SneakTrait
java.lang.Object
net.citizensnpcs.api.trait.Trait
net.citizensnpcs.trait.SneakTrait
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
void
onAttach()
Called when the trait has been attached to anNPC
.void
onSpawn()
Called when anNPC
is spawned.void
setSneaking
(boolean sneak)
-
Constructor Details
-
SneakTrait
public SneakTrait()
-
-
Method Details
-
isSneaking
public boolean isSneaking() -
onAttach
public void onAttach()Description copied from class:Trait
-
onSpawn
public void onSpawn()Description copied from class:Trait
Called when anNPC
is spawned.NPC.getEntity()
will return null until this is called. This is also called onAttach when the NPC is already spawned. -
setSneaking
public void setSneaking(boolean sneak)
-