Class VillagerData

java.lang.Object
net.minecraft.village.VillagerData

public class VillagerData extends Object
Mappings:
Namespace Name
official bst
intermediary net/minecraft/class_3850
named net/minecraft/village/VillagerData
  • Field Details

    • field_30613

      public static final int field_30613
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lbst;a:I
      intermediary field_30613 Lnet/minecraft/class_3850;field_30613:I
      named field_30613 Lnet/minecraft/village/VillagerData;field_30613:I
    • field_30614

      public static final int field_30614
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Lbst;b:I
      intermediary field_30614 Lnet/minecraft/class_3850;field_30614:I
      named field_30614 Lnet/minecraft/village/VillagerData;field_30614:I
    • LEVEL_BASE_EXPERIENCE

      private static final int[] LEVEL_BASE_EXPERIENCE
      Mappings:
      Namespace Name Mixin selector
      official d Lbst;d:[I
      intermediary field_18540 Lnet/minecraft/class_3850;field_18540:[I
      named LEVEL_BASE_EXPERIENCE Lnet/minecraft/village/VillagerData;LEVEL_BASE_EXPERIENCE:[I
    • CODEC

      public static final com.mojang.serialization.Codec<VillagerData> CODEC
      Mappings:
      Namespace Name Mixin selector
      official c Lbst;c:Lcom/mojang/serialization/Codec;
      intermediary field_24669 Lnet/minecraft/class_3850;field_24669:Lcom/mojang/serialization/Codec;
      named CODEC Lnet/minecraft/village/VillagerData;CODEC:Lcom/mojang/serialization/Codec;
    • type

      private final VillagerType type
      Mappings:
      Namespace Name Mixin selector
      official e Lbst;e:Lbsx;
      intermediary field_17048 Lnet/minecraft/class_3850;field_17048:Lnet/minecraft/class_3854;
      named type Lnet/minecraft/village/VillagerData;type:Lnet/minecraft/village/VillagerType;
    • profession

      private final VillagerProfession profession
      Mappings:
      Namespace Name Mixin selector
      official f Lbst;f:Lbsv;
      intermediary field_17049 Lnet/minecraft/class_3850;field_17049:Lnet/minecraft/class_3852;
      named profession Lnet/minecraft/village/VillagerData;profession:Lnet/minecraft/village/VillagerProfession;
    • level

      private final int level
      Mappings:
      Namespace Name Mixin selector
      official g Lbst;g:I
      intermediary field_17050 Lnet/minecraft/class_3850;field_17050:I
      named level Lnet/minecraft/village/VillagerData;level:I
  • Constructor Details

    • VillagerData

      public VillagerData(VillagerType type, VillagerProfession profession, int level)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbst;<init>(Lbsx;Lbsv;I)V
      intermediary <init> Lnet/minecraft/class_3850;<init>(Lnet/minecraft/class_3854;Lnet/minecraft/class_3852;I)V
      named <init> Lnet/minecraft/village/VillagerData;<init>(Lnet/minecraft/village/VillagerType;Lnet/minecraft/village/VillagerProfession;I)V
  • Method Details

    • getType

      public VillagerType getType()
      Mappings:
      Namespace Name Mixin selector
      official a Lbst;a()Lbsx;
      intermediary method_16919 Lnet/minecraft/class_3850;method_16919()Lnet/minecraft/class_3854;
      named getType Lnet/minecraft/village/VillagerData;getType()Lnet/minecraft/village/VillagerType;
    • getProfession

      public VillagerProfession getProfession()
      Mappings:
      Namespace Name Mixin selector
      official b Lbst;b()Lbsv;
      intermediary method_16924 Lnet/minecraft/class_3850;method_16924()Lnet/minecraft/class_3852;
      named getProfession Lnet/minecraft/village/VillagerData;getProfession()Lnet/minecraft/village/VillagerProfession;
    • getLevel

      public int getLevel()
      Mappings:
      Namespace Name Mixin selector
      official c Lbst;c()I
      intermediary method_16925 Lnet/minecraft/class_3850;method_16925()I
      named getLevel Lnet/minecraft/village/VillagerData;getLevel()I
    • withType

      public VillagerData withType(VillagerType type)
      Mappings:
      Namespace Name Mixin selector
      official a Lbst;a(Lbsx;)Lbst;
      intermediary method_16922 Lnet/minecraft/class_3850;method_16922(Lnet/minecraft/class_3854;)Lnet/minecraft/class_3850;
      named withType Lnet/minecraft/village/VillagerData;withType(Lnet/minecraft/village/VillagerType;)Lnet/minecraft/village/VillagerData;
    • withProfession

      public VillagerData withProfession(VillagerProfession profession)
      Mappings:
      Namespace Name Mixin selector
      official a Lbst;a(Lbsv;)Lbst;
      intermediary method_16921 Lnet/minecraft/class_3850;method_16921(Lnet/minecraft/class_3852;)Lnet/minecraft/class_3850;
      named withProfession Lnet/minecraft/village/VillagerData;withProfession(Lnet/minecraft/village/VillagerProfession;)Lnet/minecraft/village/VillagerData;
    • withLevel

      public VillagerData withLevel(int level)
      Mappings:
      Namespace Name Mixin selector
      official a Lbst;a(I)Lbst;
      intermediary method_16920 Lnet/minecraft/class_3850;method_16920(I)Lnet/minecraft/class_3850;
      named withLevel Lnet/minecraft/village/VillagerData;withLevel(I)Lnet/minecraft/village/VillagerData;
    • getLowerLevelExperience

      public static int getLowerLevelExperience(int level)
      Mappings:
      Namespace Name Mixin selector
      official b Lbst;b(I)I
      intermediary method_19194 Lnet/minecraft/class_3850;method_19194(I)I
      named getLowerLevelExperience Lnet/minecraft/village/VillagerData;getLowerLevelExperience(I)I
    • getUpperLevelExperience

      public static int getUpperLevelExperience(int level)
      Mappings:
      Namespace Name Mixin selector
      official c Lbst;c(I)I
      intermediary method_19195 Lnet/minecraft/class_3850;method_19195(I)I
      named getUpperLevelExperience Lnet/minecraft/village/VillagerData;getUpperLevelExperience(I)I
    • canLevelUp

      public static boolean canLevelUp(int level)
      Mappings:
      Namespace Name Mixin selector
      official d Lbst;d(I)Z
      intermediary method_19196 Lnet/minecraft/class_3850;method_19196(I)Z
      named canLevelUp Lnet/minecraft/village/VillagerData;canLevelUp(I)Z