-
Field Summary
Fields inherited from class net.citizensnpcs.api.trait.Trait
npc
-
Constructor Summary
Constructors
-
Method Summary
int
void
Called every tick if overridden.
void
void
Methods inherited from class net.citizensnpcs.api.trait.Trait
getName, getNPC, isRunImplemented, linkToNPC, load, onAttach, onCopy, onDespawn, onPreSpawn, onRemove, onSpawn, save
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
VillagerTrait
public VillagerTrait()
-
Method Details
-
getLevel
public int getLevel()
-
-
run
public void run()
Description copied from class: Trait
Called every tick if overridden.
- Specified by:
run
in interface Runnable
- Overrides:
run
in class Trait
-
setLevel
public void setLevel(int level)
-