Record Class VillagerProfession

java.lang.Object
java.lang.Record
net.minecraft.village.VillagerProfession
Record Components:
id -
heldWorkstation - A predicate for the workstation currently held by the villager profession.
acquirableWorkstation - A predicate for a workstation that could be acquired by the villager profession.
gatherableItems -
secondaryJobSites -
workSound -

public record VillagerProfession(String id, Predicate<RegistryEntry<PointOfInterestType>> heldWorkstation, Predicate<RegistryEntry<PointOfInterestType>> acquirableWorkstation, ImmutableSet<Item> gatherableItems, ImmutableSet<Block> secondaryJobSites, @Nullable SoundEvent workSound) extends Record
Mappings:
Namespace Name
official cey
intermediary net/minecraft/class_3852
named net/minecraft/village/VillagerProfession
official q
intermediary comp_818
named id
official r
intermediary comp_819
named heldWorkstation
official s
intermediary comp_820
named acquirableWorkstation
official t
intermediary comp_821
named gatherableItems
official u
intermediary comp_822
named secondaryJobSites
official v
intermediary comp_823
named workSound
  • Field Details

    • id

      private final String id
      The field for the id record component.
    • heldWorkstation

      private final Predicate<RegistryEntry<PointOfInterestType>> heldWorkstation
      The field for the heldWorkstation record component.
    • acquirableWorkstation

      private final Predicate<RegistryEntry<PointOfInterestType>> acquirableWorkstation
      The field for the acquirableWorkstation record component.
    • gatherableItems

      private final ImmutableSet<Item> gatherableItems
      The field for the gatherableItems record component.
    • secondaryJobSites

      private final ImmutableSet<Block> secondaryJobSites
      The field for the secondaryJobSites record component.
    • workSound

      @Nullable private final @Nullable SoundEvent workSound
      The field for the workSound record component.
    • IS_ACQUIRABLE_JOB_SITE

      public static final Predicate<RegistryEntry<PointOfInterestType>> IS_ACQUIRABLE_JOB_SITE
      Mappings:
      Namespace Name Mixin selector
      official a Lcey;a:Ljava/util/function/Predicate;
      intermediary field_39308 Lnet/minecraft/class_3852;field_39308:Ljava/util/function/Predicate;
      named IS_ACQUIRABLE_JOB_SITE Lnet/minecraft/village/VillagerProfession;IS_ACQUIRABLE_JOB_SITE:Ljava/util/function/Predicate;
    • NONE

      public static final VillagerProfession NONE
      Mappings:
      Namespace Name Mixin selector
      official b Lcey;b:Lcey;
      intermediary field_17051 Lnet/minecraft/class_3852;field_17051:Lnet/minecraft/class_3852;
      named NONE Lnet/minecraft/village/VillagerProfession;NONE:Lnet/minecraft/village/VillagerProfession;
    • ARMORER

      public static final VillagerProfession ARMORER
      Mappings:
      Namespace Name Mixin selector
      official c Lcey;c:Lcey;
      intermediary field_17052 Lnet/minecraft/class_3852;field_17052:Lnet/minecraft/class_3852;
      named ARMORER Lnet/minecraft/village/VillagerProfession;ARMORER:Lnet/minecraft/village/VillagerProfession;
    • BUTCHER

      public static final VillagerProfession BUTCHER
      Mappings:
      Namespace Name Mixin selector
      official d Lcey;d:Lcey;
      intermediary field_17053 Lnet/minecraft/class_3852;field_17053:Lnet/minecraft/class_3852;
      named BUTCHER Lnet/minecraft/village/VillagerProfession;BUTCHER:Lnet/minecraft/village/VillagerProfession;
    • CARTOGRAPHER

      public static final VillagerProfession CARTOGRAPHER
      Mappings:
      Namespace Name Mixin selector
      official e Lcey;e:Lcey;
      intermediary field_17054 Lnet/minecraft/class_3852;field_17054:Lnet/minecraft/class_3852;
      named CARTOGRAPHER Lnet/minecraft/village/VillagerProfession;CARTOGRAPHER:Lnet/minecraft/village/VillagerProfession;
    • CLERIC

      public static final VillagerProfession CLERIC
      Mappings:
      Namespace Name Mixin selector
      official f Lcey;f:Lcey;
      intermediary field_17055 Lnet/minecraft/class_3852;field_17055:Lnet/minecraft/class_3852;
      named CLERIC Lnet/minecraft/village/VillagerProfession;CLERIC:Lnet/minecraft/village/VillagerProfession;
    • FARMER

      public static final VillagerProfession FARMER
      Mappings:
      Namespace Name Mixin selector
      official g Lcey;g:Lcey;
      intermediary field_17056 Lnet/minecraft/class_3852;field_17056:Lnet/minecraft/class_3852;
      named FARMER Lnet/minecraft/village/VillagerProfession;FARMER:Lnet/minecraft/village/VillagerProfession;
    • FISHERMAN

      public static final VillagerProfession FISHERMAN
      Mappings:
      Namespace Name Mixin selector
      official h Lcey;h:Lcey;
      intermediary field_17057 Lnet/minecraft/class_3852;field_17057:Lnet/minecraft/class_3852;
      named FISHERMAN Lnet/minecraft/village/VillagerProfession;FISHERMAN:Lnet/minecraft/village/VillagerProfession;
    • FLETCHER

      public static final VillagerProfession FLETCHER
      Mappings:
      Namespace Name Mixin selector
      official i Lcey;i:Lcey;
      intermediary field_17058 Lnet/minecraft/class_3852;field_17058:Lnet/minecraft/class_3852;
      named FLETCHER Lnet/minecraft/village/VillagerProfession;FLETCHER:Lnet/minecraft/village/VillagerProfession;
    • LEATHERWORKER

      public static final VillagerProfession LEATHERWORKER
      Mappings:
      Namespace Name Mixin selector
      official j Lcey;j:Lcey;
      intermediary field_17059 Lnet/minecraft/class_3852;field_17059:Lnet/minecraft/class_3852;
      named LEATHERWORKER Lnet/minecraft/village/VillagerProfession;LEATHERWORKER:Lnet/minecraft/village/VillagerProfession;
    • LIBRARIAN

      public static final VillagerProfession LIBRARIAN
      Mappings:
      Namespace Name Mixin selector
      official k Lcey;k:Lcey;
      intermediary field_17060 Lnet/minecraft/class_3852;field_17060:Lnet/minecraft/class_3852;
      named LIBRARIAN Lnet/minecraft/village/VillagerProfession;LIBRARIAN:Lnet/minecraft/village/VillagerProfession;
    • MASON

      public static final VillagerProfession MASON
      Mappings:
      Namespace Name Mixin selector
      official l Lcey;l:Lcey;
      intermediary field_17061 Lnet/minecraft/class_3852;field_17061:Lnet/minecraft/class_3852;
      named MASON Lnet/minecraft/village/VillagerProfession;MASON:Lnet/minecraft/village/VillagerProfession;
    • NITWIT

      public static final VillagerProfession NITWIT
      Mappings:
      Namespace Name Mixin selector
      official m Lcey;m:Lcey;
      intermediary field_17062 Lnet/minecraft/class_3852;field_17062:Lnet/minecraft/class_3852;
      named NITWIT Lnet/minecraft/village/VillagerProfession;NITWIT:Lnet/minecraft/village/VillagerProfession;
    • SHEPHERD

      public static final VillagerProfession SHEPHERD
      Mappings:
      Namespace Name Mixin selector
      official n Lcey;n:Lcey;
      intermediary field_17063 Lnet/minecraft/class_3852;field_17063:Lnet/minecraft/class_3852;
      named SHEPHERD Lnet/minecraft/village/VillagerProfession;SHEPHERD:Lnet/minecraft/village/VillagerProfession;
    • TOOLSMITH

      public static final VillagerProfession TOOLSMITH
      Mappings:
      Namespace Name Mixin selector
      official o Lcey;o:Lcey;
      intermediary field_17064 Lnet/minecraft/class_3852;field_17064:Lnet/minecraft/class_3852;
      named TOOLSMITH Lnet/minecraft/village/VillagerProfession;TOOLSMITH:Lnet/minecraft/village/VillagerProfession;
    • WEAPONSMITH

      public static final VillagerProfession WEAPONSMITH
      Mappings:
      Namespace Name Mixin selector
      official p Lcey;p:Lcey;
      intermediary field_17065 Lnet/minecraft/class_3852;field_17065:Lnet/minecraft/class_3852;
      named WEAPONSMITH Lnet/minecraft/village/VillagerProfession;WEAPONSMITH:Lnet/minecraft/village/VillagerProfession;
  • Constructor Details

    • VillagerProfession

      public VillagerProfession(String id, Predicate<RegistryEntry<PointOfInterestType>> predicate, Predicate<RegistryEntry<PointOfInterestType>> predicate2, ImmutableSet<Item> immutableSet, ImmutableSet<Block> immutableSet2, @Nullable @Nullable SoundEvent soundEvent)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcey;<init>(Ljava/lang/String;Ljava/util/function/Predicate;Ljava/util/function/Predicate;Lcom/google/common/collect/ImmutableSet;Lcom/google/common/collect/ImmutableSet;Larr;)V
      intermediary <init> Lnet/minecraft/class_3852;<init>(Ljava/lang/String;Ljava/util/function/Predicate;Ljava/util/function/Predicate;Lcom/google/common/collect/ImmutableSet;Lcom/google/common/collect/ImmutableSet;Lnet/minecraft/class_3414;)V
      named <init> Lnet/minecraft/village/VillagerProfession;<init>(Ljava/lang/String;Ljava/util/function/Predicate;Ljava/util/function/Predicate;Lcom/google/common/collect/ImmutableSet;Lcom/google/common/collect/ImmutableSet;Lnet/minecraft/sound/SoundEvent;)V
  • Method Details

    • toString

      public String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • register

      private static VillagerProfession register(String id, RegistryKey<PointOfInterestType> heldWorkstation, @Nullable @Nullable SoundEvent workSound)
      Mappings:
      Namespace Name Mixin selector
      official a Lcey;a(Ljava/lang/String;Lahf;Larr;)Lcey;
      intermediary method_16926 Lnet/minecraft/class_3852;method_16926(Ljava/lang/String;Lnet/minecraft/class_5321;Lnet/minecraft/class_3414;)Lnet/minecraft/class_3852;
      named register Lnet/minecraft/village/VillagerProfession;register(Ljava/lang/String;Lnet/minecraft/registry/RegistryKey;Lnet/minecraft/sound/SoundEvent;)Lnet/minecraft/village/VillagerProfession;
    • register

      private static VillagerProfession register(String id, Predicate<RegistryEntry<PointOfInterestType>> heldWorkstation, Predicate<RegistryEntry<PointOfInterestType>> acquirableWorkstation, @Nullable @Nullable SoundEvent workSound)
      Mappings:
      Namespace Name Mixin selector
      official a Lcey;a(Ljava/lang/String;Ljava/util/function/Predicate;Ljava/util/function/Predicate;Larr;)Lcey;
      intermediary method_44007 Lnet/minecraft/class_3852;method_44007(Ljava/lang/String;Ljava/util/function/Predicate;Ljava/util/function/Predicate;Lnet/minecraft/class_3414;)Lnet/minecraft/class_3852;
      named register Lnet/minecraft/village/VillagerProfession;register(Ljava/lang/String;Ljava/util/function/Predicate;Ljava/util/function/Predicate;Lnet/minecraft/sound/SoundEvent;)Lnet/minecraft/village/VillagerProfession;
    • register

      private static VillagerProfession register(String id, RegistryKey<PointOfInterestType> heldWorkstation, ImmutableSet<Item> gatherableItems, ImmutableSet<Block> secondaryJobSites, @Nullable @Nullable SoundEvent workSound)
      Mappings:
      Namespace Name Mixin selector
      official a Lcey;a(Ljava/lang/String;Lahf;Lcom/google/common/collect/ImmutableSet;Lcom/google/common/collect/ImmutableSet;Larr;)Lcey;
      intermediary method_19197 Lnet/minecraft/class_3852;method_19197(Ljava/lang/String;Lnet/minecraft/class_5321;Lcom/google/common/collect/ImmutableSet;Lcom/google/common/collect/ImmutableSet;Lnet/minecraft/class_3414;)Lnet/minecraft/class_3852;
      named register Lnet/minecraft/village/VillagerProfession;register(Ljava/lang/String;Lnet/minecraft/registry/RegistryKey;Lcom/google/common/collect/ImmutableSet;Lcom/google/common/collect/ImmutableSet;Lnet/minecraft/sound/SoundEvent;)Lnet/minecraft/village/VillagerProfession;
    • register

      private static VillagerProfession register(String id, Predicate<RegistryEntry<PointOfInterestType>> heldWorkstation, Predicate<RegistryEntry<PointOfInterestType>> acquirableWorkstation, ImmutableSet<Item> gatherableItems, ImmutableSet<Block> secondaryJobSites, @Nullable @Nullable SoundEvent workSound)
      Mappings:
      Namespace Name Mixin selector
      official a Lcey;a(Ljava/lang/String;Ljava/util/function/Predicate;Ljava/util/function/Predicate;Lcom/google/common/collect/ImmutableSet;Lcom/google/common/collect/ImmutableSet;Larr;)Lcey;
      intermediary method_44008 Lnet/minecraft/class_3852;method_44008(Ljava/lang/String;Ljava/util/function/Predicate;Ljava/util/function/Predicate;Lcom/google/common/collect/ImmutableSet;Lcom/google/common/collect/ImmutableSet;Lnet/minecraft/class_3414;)Lnet/minecraft/class_3852;
      named register Lnet/minecraft/village/VillagerProfession;register(Ljava/lang/String;Ljava/util/function/Predicate;Ljava/util/function/Predicate;Lcom/google/common/collect/ImmutableSet;Lcom/google/common/collect/ImmutableSet;Lnet/minecraft/sound/SoundEvent;)Lnet/minecraft/village/VillagerProfession;
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • id

      public String id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • heldWorkstation

      public Predicate<RegistryEntry<PointOfInterestType>> heldWorkstation()
      Returns the value of the heldWorkstation record component.
      Returns:
      the value of the heldWorkstation record component
    • acquirableWorkstation

      public Predicate<RegistryEntry<PointOfInterestType>> acquirableWorkstation()
      Returns the value of the acquirableWorkstation record component.
      Returns:
      the value of the acquirableWorkstation record component
    • gatherableItems

      public ImmutableSet<Item> gatherableItems()
      Returns the value of the gatherableItems record component.
      Returns:
      the value of the gatherableItems record component
    • secondaryJobSites

      public ImmutableSet<Block> secondaryJobSites()
      Returns the value of the secondaryJobSites record component.
      Returns:
      the value of the secondaryJobSites record component
    • workSound

      @Nullable public @Nullable SoundEvent workSound()
      Returns the value of the workSound record component.
      Returns:
      the value of the workSound record component