Class VillagerData

java.lang.Object
net.minecraft.world.entity.npc.VillagerData

public class VillagerData extends Object
  • Field Details

    • MIN_VILLAGER_LEVEL

      public static final int MIN_VILLAGER_LEVEL
      See Also:
      Constant Field Values
    • MAX_VILLAGER_LEVEL

      public static final int MAX_VILLAGER_LEVEL
      See Also:
      Constant Field Values
    • 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_35568_)
    • setProfession

      public VillagerData setProfession(VillagerProfession p_35566_)
    • setLevel

      public VillagerData setLevel(int p_35562_)
    • getMinXpPerLevel

      public static int getMinXpPerLevel(int p_35573_)
    • getMaxXpPerLevel

      public static int getMaxXpPerLevel(int p_35578_)
    • canLevelUp

      public static boolean canLevelUp(int p_35583_)