net.minecraft.world.entity.npc

public record VillagerData

cqp
net.minecraft.world.entity.npc.VillagerData
net.minecraft.class_3850
net.minecraft.unmapped.C_zuqrzrur
net.minecraft.village.VillagerData
net.minecraft.village.VillagerData

Field summary

Modifier and TypeField
private final Holder<VillagerType>
e
type
comp_3520
f_pucgcgih
type
type
private final Holder<VillagerProfession>
f
profession
comp_3521
f_wcnfuadm
profession
profession
private final int
g
level
comp_3522
f_dxcgixir
level
level
public static final int
a
MIN_VILLAGER_LEVEL
field_30613
f_pfwszziv
MIN_LEVEL
MIN_LEVEL
public static final int
b
MAX_VILLAGER_LEVEL
field_30614
f_qmhqzzmn
MAX_LEVEL
MAX_LEVEL
private static final int[]
h
NEXT_LEVEL_XP_THRESHOLDS
field_18540
f_cxjhbszi
LEVEL_BASE_EXPERIENCE
LEVEL_BASE_EXPERIENCE
public static final com.mojang.serialization.Codec<VillagerData>
c
CODEC
field_24669
f_eachtuxh
CODEC
CODEC
public static final StreamCodec<RegistryFriendlyByteBuf, VillagerData>
d
STREAM_CODEC
field_48345
f_xovgoapg
PACKET_CODEC
PACKET_CODEC

Constructor summary

ModifierConstructor
public (Holder<VillagerType> type, Holder<VillagerProfession> profession, int level)

Method summary

Modifier and TypeMethod
public VillagerData
a(je<cqt> arg0)
withType(Holder<VillagerType> arg0)
method_16922(class_6880<class_3854> arg0)
m_mwvllcqb(C_cjzoxshv<C_vhpfztda> arg0)
withType(RegistryEntry<VillagerType> type)
m_mwvllcqb(Holder<VillagerType> type)
public VillagerData
a(jf$a arg0, alf<cqt> arg1)
withType(HolderGetter$Provider arg0, ResourceKey<VillagerType> arg1)
method_66687(class_7871$class_7872 arg0, class_5321<class_3854> arg1)
m_ntsneemp(C_pzdchrcy$C_pbvqpmst arg0, C_xhhleach<C_vhpfztda> arg1)
withType(RegistryEntryLookup$RegistryLookup registries, RegistryKey<VillagerType> typeKey)
public VillagerData
b(je<cqr> arg0)
withProfession(Holder<VillagerProfession> arg0)
method_16921(class_6880<class_3852> arg0)
m_kfuvvtmo(C_cjzoxshv<C_yhqxfbuc> arg0)
withProfession(RegistryEntry<VillagerProfession> profession)
m_kfuvvtmo(Holder<VillagerProfession> profession)
public VillagerData
b(jf$a arg0, alf<cqr> arg1)
withProfession(HolderGetter$Provider arg0, ResourceKey<VillagerProfession> arg1)
method_66688(class_7871$class_7872 arg0, class_5321<class_3852> arg1)
m_blydewrs(C_pzdchrcy$C_pbvqpmst arg0, C_xhhleach<C_yhqxfbuc> arg1)
withProfession(RegistryEntryLookup$RegistryLookup registries, RegistryKey<VillagerProfession> professionKey)
public VillagerData
a(int arg0)
withLevel(int arg0)
method_16920(int arg0)
m_kxeyphax(int arg0)
withLevel(int level)
m_kxeyphax(int b)
public static int
b(int arg0)
getMinXpPerLevel(int arg0)
method_19194(int arg0)
m_xfpybjor(int arg0)
getLowerLevelExperience(int level)
getLowerLevelExperience(int level)
public static int
c(int arg0)
getMaxXpPerLevel(int arg0)
method_19195(int arg0)
m_llyqkced(int arg0)
getUpperLevelExperience(int level)
getUpperLevelExperience(int level)
public static boolean
d(int arg0)
canLevelUp(int arg0)
method_19196(int arg0)
m_rpqexovw(int arg0)
canLevelUp(int level)
canLevelUp(int level)
public Holder<VillagerType>
a()
type()
comp_3520()
m_ljjnmxgu()
type()
type()
public Holder<VillagerProfession>
b()
profession()
comp_3521()
m_jpdjtvog()
profession()
profession()
public int
c()
level()
comp_3522()
m_uzrxlbcu()
level()
level()