Package net.minecraft.village
Class VillagerData
java.lang.Object
net.minecraft.village.VillagerData
- Mappings:
Namespace Name official byaintermediary net/minecraft/class_3850named net/minecraft/village/VillagerData
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<VillagerData>private final intprivate static final int[]static final intstatic final intprivate final VillagerProfessionprivate final VillagerType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancanLevelUp(int level) intgetLevel()static intgetLowerLevelExperience(int level) getType()static intgetUpperLevelExperience(int level) withLevel(int level) withProfession(VillagerProfession profession) withType(VillagerType type)
-
Field Details
-
MIN_LEVEL
public static final int MIN_LEVEL- See Also:
- Mappings:
Namespace Name Mixin selector official aLbya;a:Iintermediary field_30613Lnet/minecraft/class_3850;field_30613:Inamed MIN_LEVELLnet/minecraft/village/VillagerData;MIN_LEVEL:I
-
MAX_LEVEL
public static final int MAX_LEVEL- See Also:
- Mappings:
Namespace Name Mixin selector official bLbya;b:Iintermediary field_30614Lnet/minecraft/class_3850;field_30614:Inamed MAX_LEVELLnet/minecraft/village/VillagerData;MAX_LEVEL:I
-
LEVEL_BASE_EXPERIENCE
private static final int[] LEVEL_BASE_EXPERIENCE- Mappings:
Namespace Name Mixin selector official dLbya;d:[Iintermediary field_18540Lnet/minecraft/class_3850;field_18540:[Inamed LEVEL_BASE_EXPERIENCELnet/minecraft/village/VillagerData;LEVEL_BASE_EXPERIENCE:[I
-
CODEC
- Mappings:
Namespace Name Mixin selector official cLbya;c:Lcom/mojang/serialization/Codec;intermediary field_24669Lnet/minecraft/class_3850;field_24669:Lcom/mojang/serialization/Codec;named CODECLnet/minecraft/village/VillagerData;CODEC:Lcom/mojang/serialization/Codec;
-
type
- Mappings:
Namespace Name Mixin selector official eLbya;e:Lbye;intermediary field_17048Lnet/minecraft/class_3850;field_17048:Lnet/minecraft/class_3854;named typeLnet/minecraft/village/VillagerData;type:Lnet/minecraft/village/VillagerType;
-
profession
- Mappings:
Namespace Name Mixin selector official fLbya;f:Lbyc;intermediary field_17049Lnet/minecraft/class_3850;field_17049:Lnet/minecraft/class_3852;named professionLnet/minecraft/village/VillagerData;profession:Lnet/minecraft/village/VillagerProfession;
-
level
private final int level- Mappings:
Namespace Name Mixin selector official gLbya;g:Iintermediary field_17050Lnet/minecraft/class_3850;field_17050:Inamed levelLnet/minecraft/village/VillagerData;level:I
-
-
Constructor Details
-
VillagerData
- Mappings:
Namespace Name Mixin selector official <init>Lbya;<init>(Lbye;Lbyc;I)Vintermediary <init>Lnet/minecraft/class_3850;<init>(Lnet/minecraft/class_3854;Lnet/minecraft/class_3852;I)Vnamed <init>Lnet/minecraft/village/VillagerData;<init>(Lnet/minecraft/village/VillagerType;Lnet/minecraft/village/VillagerProfession;I)V
-
-
Method Details
-
getType
- Mappings:
Namespace Name Mixin selector official aLbya;a()Lbye;intermediary method_16919Lnet/minecraft/class_3850;method_16919()Lnet/minecraft/class_3854;named getTypeLnet/minecraft/village/VillagerData;getType()Lnet/minecraft/village/VillagerType;
-
getProfession
- Mappings:
Namespace Name Mixin selector official bLbya;b()Lbyc;intermediary method_16924Lnet/minecraft/class_3850;method_16924()Lnet/minecraft/class_3852;named getProfessionLnet/minecraft/village/VillagerData;getProfession()Lnet/minecraft/village/VillagerProfession;
-
getLevel
public int getLevel()- Mappings:
Namespace Name Mixin selector official cLbya;c()Iintermediary method_16925Lnet/minecraft/class_3850;method_16925()Inamed getLevelLnet/minecraft/village/VillagerData;getLevel()I
-
withType
- Mappings:
Namespace Name Mixin selector official aLbya;a(Lbye;)Lbya;intermediary method_16922Lnet/minecraft/class_3850;method_16922(Lnet/minecraft/class_3854;)Lnet/minecraft/class_3850;named withTypeLnet/minecraft/village/VillagerData;withType(Lnet/minecraft/village/VillagerType;)Lnet/minecraft/village/VillagerData;
-
withProfession
- Mappings:
Namespace Name Mixin selector official aLbya;a(Lbyc;)Lbya;intermediary method_16921Lnet/minecraft/class_3850;method_16921(Lnet/minecraft/class_3852;)Lnet/minecraft/class_3850;named withProfessionLnet/minecraft/village/VillagerData;withProfession(Lnet/minecraft/village/VillagerProfession;)Lnet/minecraft/village/VillagerData;
-
withLevel
- Mappings:
Namespace Name Mixin selector official aLbya;a(I)Lbya;intermediary method_16920Lnet/minecraft/class_3850;method_16920(I)Lnet/minecraft/class_3850;named withLevelLnet/minecraft/village/VillagerData;withLevel(I)Lnet/minecraft/village/VillagerData;
-
getLowerLevelExperience
public static int getLowerLevelExperience(int level) - Mappings:
Namespace Name Mixin selector official bLbya;b(I)Iintermediary method_19194Lnet/minecraft/class_3850;method_19194(I)Inamed getLowerLevelExperienceLnet/minecraft/village/VillagerData;getLowerLevelExperience(I)I
-
getUpperLevelExperience
public static int getUpperLevelExperience(int level) - Mappings:
Namespace Name Mixin selector official cLbya;c(I)Iintermediary method_19195Lnet/minecraft/class_3850;method_19195(I)Inamed getUpperLevelExperienceLnet/minecraft/village/VillagerData;getUpperLevelExperience(I)I
-
canLevelUp
public static boolean canLevelUp(int level) - Mappings:
Namespace Name Mixin selector official dLbya;d(I)Zintermediary method_19196Lnet/minecraft/class_3850;method_19196(I)Znamed canLevelUpLnet/minecraft/village/VillagerData;canLevelUp(I)Z
-