net.minecraft.world.entity.npc

public class VillagerData

bdq
net.minecraft.world.entity.npc.VillagerData
net.minecraft.class_3850
net.minecraft.village.VillagerData
net.minecraft.entity.merchant.villager.VillagerData
net.minecraft.server.v1_16_R1.VillagerData

Field summary

Modifier and TypeField
private static final int[]
b
NEXT_LEVEL_XP_THRESHOLDS
field_18540
LEVEL_BASE_EXPERIENCE
field_221136_a
public static final com.mojang.serialization.Codec<VillagerData>
a
CODEC
field_24669
CODEC
field_234554_a_
private final VillagerType
c
type
field_17048
type
field_221137_b
private final VillagerProfession
d
profession
field_17049
profession
field_221138_c
private final int
e
level
field_17050
level
field_221139_d

Constructor summary

ModifierConstructor
public (VillagerType arg0, VillagerProfession arg1, int arg2)

Method summary

Modifier and TypeMethod
public VillagerType
a()
getType()
method_16919()
getType()
func_221129_a()
getType()
public VillagerProfession
b()
getProfession()
method_16924()
getProfession()
func_221130_b()
getProfession()
public int
c()
getLevel()
method_16925()
getLevel()
func_221132_c()
getLevel()
public VillagerData
a(bdu arg0)
setType(VillagerType arg0)
method_16922(class_3854 arg0)
withType(VillagerType arg0)
func_221134_a(IVillagerType arg0)
withType(VillagerType arg0)
public VillagerData
a(bds arg0)
setProfession(VillagerProfession arg0)
method_16921(class_3852 arg0)
withProfession(VillagerProfession arg0)
func_221126_a(VillagerProfession arg0)
withProfession(VillagerProfession arg0)
public VillagerData
a(int arg0)
setLevel(int arg0)
method_16920(int arg0)
withLevel(int level)
func_221135_a(int arg0)
withLevel(int arg0)
public static int
c(int arg0)
getMaxXpPerLevel(int arg0)
method_19195(int arg0)
getUpperLevelExperience(int level)
func_221127_c(int arg0)
public static boolean
d(int arg0)
canLevelUp(int arg0)
method_19196(int arg0)
canLevelUp(int level)
func_221128_d(int arg0)
public static int
b(int arg0)
getMinXpPerLevel(int arg0)
method_19194(int arg0)
getLowerLevelExperience(int level)
func_221133_b(int arg0)