Class VillagerData
java.lang.Object
net.minecraft.entity.merchant.villager.VillagerData
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<VillagerData>
private final int
private static final int[]
private final VillagerProfession
private final VillagerType
-
Constructor Summary
ConstructorDescriptionVillagerData
(VillagerType p_i50180_1_, VillagerProfession p_i50180_2_, int p_i50180_3_) -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
canLevelUp
(int p_221128_0_) int
getLevel()
static int
getMaxXpPerLevel
(int p_221127_0_) static int
getMinXpPerLevel
(int p_221133_0_) getType()
setLevel
(int p_221135_1_) setProfession
(VillagerProfession p_221126_1_) setType
(VillagerType p_221134_1_)
-
Field Details
-
NEXT_LEVEL_XP_THRESHOLDS
private static final int[] NEXT_LEVEL_XP_THRESHOLDS -
CODEC
-
type
-
profession
-
level
private final int level
-
-
Constructor Details
-
VillagerData
-
-
Method Details
-
getType
-
getProfession
-
getLevel
public int getLevel() -
setType
-
setProfession
-
setLevel
-
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_)
-