Package net.citizensnpcs.trait.versioned
Class VillagerTrait
java.lang.Object
net.citizensnpcs.api.trait.Trait
net.citizensnpcs.trait.versioned.VillagerTrait
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetLevel()getType()voidrun()Called every tick if overridden.voidsetLevel(int level) voidsetType(Villager.Type type) static voidvillager(CommandContext args, CommandSender sender, NPC npc, Villager.Profession profession, Villager.Type type, Integer level)
-
Constructor Details
-
VillagerTrait
public VillagerTrait()
-
-
Method Details
-
getLevel
public int getLevel() -
getType
-
run
public void run()Description copied from class:TraitCalled every tick if overridden. -
setLevel
public void setLevel(int level) -
setType
-
villager
public static void villager(CommandContext args, CommandSender sender, NPC npc, Villager.Profession profession, Villager.Type type, Integer level) throws CommandException - Throws:
CommandException
-