public class VillagerData
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static int[] |
field_221136_a |
private int |
level |
private VillagerProfession |
profession |
private IVillagerType |
type |
Constructor and Description |
---|
VillagerData(com.mojang.datafixers.Dynamic<?> p_i50181_1_) |
VillagerData(IVillagerType type,
VillagerProfession profession,
int level) |
Modifier and Type | Method and Description |
---|---|
static int |
func_221127_c(int p_221127_0_) |
static boolean |
func_221128_d(int p_221128_0_) |
static int |
func_221133_b(int p_221133_0_) |
int |
getLevel() |
VillagerProfession |
getProfession() |
IVillagerType |
getType() |
<T> T |
serialize(com.mojang.datafixers.types.DynamicOps<T> p_221131_1_) |
VillagerData |
withLevel(int levelIn) |
VillagerData |
withProfession(VillagerProfession professionIn) |
VillagerData |
withType(IVillagerType typeIn) |
private static final int[] field_221136_a
private final IVillagerType type
private final VillagerProfession profession
private final int level
public VillagerData(IVillagerType type, VillagerProfession profession, int level)
public VillagerData(com.mojang.datafixers.Dynamic<?> p_i50181_1_)
public IVillagerType getType()
public VillagerProfession getProfession()
public int getLevel()
public VillagerData withType(IVillagerType typeIn)
public VillagerData withProfession(VillagerProfession professionIn)
public VillagerData withLevel(int levelIn)
public <T> T serialize(com.mojang.datafixers.types.DynamicOps<T> p_221131_1_)
public static int func_221133_b(int p_221133_0_)
public static int func_221127_c(int p_221127_0_)
public static boolean func_221128_d(int p_221128_0_)