net.minecraft.world.entity.npc

public class VillagerData

cpk
net.minecraft.world.entity.npc.VillagerData
net.minecraft.class_3850
net.minecraft.village.VillagerData
net.minecraft.world.entity.npc.VillagerData

Field summary

Modifier and TypeField
public static final int
a
MIN_VILLAGER_LEVEL
field_30613
MIN_LEVEL
public static final int
b
MAX_VILLAGER_LEVEL
field_30614
MAX_LEVEL
private static final int[]
e
NEXT_LEVEL_XP_THRESHOLDS
field_18540
LEVEL_BASE_EXPERIENCE
public static final com.mojang.serialization.Codec<VillagerData>
c
CODEC
field_24669
CODEC
public static final StreamCodec<RegistryFriendlyByteBuf, VillagerData>
d
STREAM_CODEC
field_48345
PACKET_CODEC
private final VillagerType
f
type
field_17048
type
private final VillagerProfession
g
profession
field_17049
profession
private final int
h
level
field_17050
level

Constructor summary

ModifierConstructor
public (VillagerType type, VillagerProfession profession, int level)

Method summary

Modifier and TypeMethod
public VillagerType
a()
getType()
method_16919()
getType()
public VillagerProfession
b()
getProfession()
method_16924()
getProfession()
public int
c()
getLevel()
method_16925()
getLevel()
public VillagerData
a(cpo arg0)
setType(VillagerType arg0)
method_16922(class_3854 arg0)
withType(VillagerType type)
public VillagerData
a(cpm arg0)
setProfession(VillagerProfession arg0)
method_16921(class_3852 arg0)
withProfession(VillagerProfession profession)
public VillagerData
a(int arg0)
setLevel(int arg0)
method_16920(int arg0)
withLevel(int level)
public static int
b(int arg0)
getMinXpPerLevel(int arg0)
method_19194(int arg0)
getLowerLevelExperience(int level)
public static int
c(int arg0)
getMaxXpPerLevel(int arg0)
method_19195(int arg0)
getUpperLevelExperience(int level)
public static boolean
d(int arg0)
canLevelUp(int arg0)
method_19196(int arg0)
canLevelUp(int level)