Class VillagerData

java.lang.Object
net.minecraft.village.VillagerData

public class VillagerData
extends Object
  • Field Details

    • LEVEL_BASE_EXPERIENCE

      private static final int[] LEVEL_BASE_EXPERIENCE
    • CODEC

      public static final com.mojang.serialization.Codec<VillagerData> CODEC
    • type

      private final VillagerType type
    • profession

      private final VillagerProfession profession
    • level

      private final int level
  • Constructor Details

  • Method Details

    • getType

      public VillagerType getType()
    • getProfession

      public VillagerProfession getProfession()
    • getLevel

      public int getLevel()
    • withType

      public VillagerData withType​(VillagerType villagerType)
    • withProfession

      public VillagerData withProfession​(VillagerProfession villagerProfession)
    • withLevel

      public VillagerData withLevel​(int level)
    • getLowerLevelExperience

      @Environment(CLIENT) public static int getLowerLevelExperience​(int level)
    • getUpperLevelExperience

      public static int getUpperLevelExperience​(int level)
    • canLevelUp

      public static boolean canLevelUp​(int level)