Package net.citizensnpcs.trait
Class MountTrait
java.lang.Object
net.citizensnpcs.api.trait.Trait
net.citizensnpcs.trait.MountTrait
Persists the NPC's mounted on entity, if any. Will attempt to respawn on mount.
- 
Field Summary
- 
Constructor SummaryConstructors
- 
Method Summary
- 
Constructor Details- 
MountTraitpublic MountTrait()
 
- 
- 
Method Details- 
checkMountedpublic void checkMounted()
- 
getMountedOn
- 
onDespawnpublic void onDespawn()Description copied from class:TraitCalled just before the attachedNPCis despawned.NPC.getEntity()will be non-null.
- 
onRemovepublic void onRemove()Description copied from class:TraitCalled when a trait is removed from the attachedNPC.
- 
runpublic void run()Description copied from class:TraitCalled every tick if overridden.
- 
setMountedOn
- 
unmountpublic void unmount()
 
-