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 Summary
-
Method Summary
-
Constructor Details
-
MountTrait
public MountTrait()
-
-
Method Details
-
checkMounted
public void checkMounted() -
getMountedOn
-
onDespawn
public void onDespawn()Description copied from class:Trait
Called just before the attachedNPC
is despawned.NPC.getEntity()
will be non-null. -
onRemove
public void onRemove()Description copied from class:Trait
Called when a trait is removed from the attachedNPC
. -
run
public void run()Description copied from class:Trait
Called every tick if overridden. -
setMountedOn
-
unmount
public void unmount()
-