Package net.citizensnpcs.trait
Class SneakTrait
java.lang.Object
net.citizensnpcs.api.trait.Trait
net.citizensnpcs.trait.SneakTrait
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidonAttach()Called when the trait has been attached to anNPC.voidonSpawn()Called when anNPCis spawned.voidsetSneaking(boolean sneak) Methods inherited from class net.citizensnpcs.api.trait.Trait
getName, getNPC, getTraitId, isRunImplemented, linkToNPC, load, onCopy, onDespawn, onDespawn, onPreSpawn, onRemove, onRemove, run, save
-
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:TraitCalled when anNPCis 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)
-