Class VillagerTrait

java.lang.Object
net.citizensnpcs.api.trait.Trait
net.citizensnpcs.trait.versioned.VillagerTrait
All Implemented Interfaces:
Runnable, Listener

public class VillagerTrait extends Trait
  • Constructor Details

    • VillagerTrait

      public VillagerTrait()
  • Method Details

    • getLevel

      public int getLevel()
    • getType

      public Villager.Type getType()
    • 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)
    • setType

      public void setType(Villager.Type type)