Class VillagerData

java.lang.Object
net.minecraft.entity.merchant.villager.VillagerData

public class VillagerData extends Object
  • Field Details

    • NEXT_LEVEL_XP_THRESHOLDS

      private static final int[] NEXT_LEVEL_XP_THRESHOLDS
    • 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()
    • setType

      public VillagerData setType(VillagerType p_221134_1_)
    • setProfession

      public VillagerData setProfession(VillagerProfession p_221126_1_)
    • setLevel

      public VillagerData setLevel(int p_221135_1_)
    • getMinXpPerLevel

      public static int getMinXpPerLevel(int p_221133_0_)
    • getMaxXpPerLevel

      public static int getMaxXpPerLevel(int p_221127_0_)
    • canLevelUp

      public static boolean canLevelUp(int p_221128_0_)