Package net.citizensnpcs.trait
Class SneakTrait
java.lang.Object
net.citizensnpcs.api.trait.Trait
net.citizensnpcs.trait.SneakTrait
- 
Field Summary
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanvoidonAttach()Called when the trait has been attached to anNPC.voidonSpawn()Called when anNPCis spawned.voidsetSneaking(boolean sneak) 
- 
Constructor Details- 
SneakTraitpublic SneakTrait()
 
- 
- 
Method Details- 
isSneakingpublic boolean isSneaking()
- 
onAttachpublic void onAttach()Description copied from class:Trait
- 
onSpawnpublic 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.
- 
setSneakingpublic void setSneaking(boolean sneak) 
 
-