类 VillagerData
java.lang.Object
net.minecraft.world.entity.npc.VillagerData
-
字段概要
字段修饰符和类型字段说明static final com.mojang.serialization.Codec<VillagerData>
private final int
static final int
static final int
private static final int[]
private final VillagerProfession
private final VillagerType
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static boolean
canLevelUp
(int pLevel) int
getLevel()
static int
getMaxXpPerLevel
(int pLevel) static int
getMinXpPerLevel
(int pLevel) getType()
setLevel
(int pLevel) setProfession
(VillagerProfession pProfession) setType
(VillagerType pType)
-
字段详细资料
-
构造器详细资料
-
VillagerData
-
-
方法详细资料
-
getType
-
getProfession
-
getLevel
public int getLevel() -
setType
-
setProfession
-
setLevel
-
getMinXpPerLevel
public static int getMinXpPerLevel(int pLevel) -
getMaxXpPerLevel
public static int getMaxXpPerLevel(int pLevel) -
canLevelUp
public static boolean canLevelUp(int pLevel)
-