Package net.minecraft.village
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(Text id, Predicate<RegistryEntry<PointOfInterestType>> heldWorkstation, Predicate<RegistryEntry<PointOfInterestType>> acquirableWorkstation, ImmutableSet<Item> gatherableItems, ImmutableSet<Block> secondaryJobSites, @Nullable SoundEvent workSound)
extends Record
- Mappings:
Namespace Name named net/minecraft/village/VillagerProfessionintermediary net/minecraft/class_3852official crxnamed idintermediary comp_818official qnamed heldWorkstationintermediary comp_819official rnamed acquirableWorkstationintermediary comp_820official snamed gatherableItemsintermediary comp_821official tnamed secondaryJobSitesintermediary comp_822official unamed workSoundintermediary comp_823official v
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Predicate<RegistryEntry<PointOfInterestType>> The field for theacquirableWorkstationrecord component.static final RegistryKey<VillagerProfession> static final RegistryKey<VillagerProfession> static final RegistryKey<VillagerProfession> static final RegistryKey<VillagerProfession> static final RegistryKey<VillagerProfession> static final RegistryKey<VillagerProfession> static final RegistryKey<VillagerProfession> private final ImmutableSet<Item> The field for thegatherableItemsrecord component.private final Predicate<RegistryEntry<PointOfInterestType>> The field for theheldWorkstationrecord component.private final TextThe field for theidrecord component.static final Predicate<RegistryEntry<PointOfInterestType>> static final RegistryKey<VillagerProfession> static final RegistryKey<VillagerProfession> static final RegistryKey<VillagerProfession> static final RegistryKey<VillagerProfession> static final RegistryKey<VillagerProfession> private final ImmutableSet<Block> The field for thesecondaryJobSitesrecord component.static final RegistryKey<VillagerProfession> static final RegistryKey<VillagerProfession> static final RegistryKey<VillagerProfession> private final @Nullable SoundEventThe field for theworkSoundrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionVillagerProfession(Text text, Predicate<RegistryEntry<PointOfInterestType>> predicate, Predicate<RegistryEntry<PointOfInterestType>> predicate2, ImmutableSet<Item> immutableSet, ImmutableSet<Block> immutableSet2, @Nullable SoundEvent soundEvent) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theacquirableWorkstationrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thegatherableItemsrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theheldWorkstationrecord component.id()Returns the value of theidrecord component.private static RegistryKey<VillagerProfession> private static VillagerProfessionregister(Registry<VillagerProfession> registry, RegistryKey<VillagerProfession> key, Predicate<RegistryEntry<PointOfInterestType>> heldWorkstation, Predicate<RegistryEntry<PointOfInterestType>> acquirableWorkstation, ImmutableSet<Item> gatherableItems, ImmutableSet<Block> secondaryJobSites, @Nullable SoundEvent workSound) private static VillagerProfessionregister(Registry<VillagerProfession> registry, RegistryKey<VillagerProfession> key, Predicate<RegistryEntry<PointOfInterestType>> heldWorkstation, Predicate<RegistryEntry<PointOfInterestType>> acquirableWorkstation, @Nullable SoundEvent workSound) private static VillagerProfessionregister(Registry<VillagerProfession> registry, RegistryKey<VillagerProfession> key, RegistryKey<PointOfInterestType> heldWorkstation, ImmutableSet<Item> gatherableItems, ImmutableSet<Block> secondaryJobSites, @Nullable SoundEvent workSound) private static VillagerProfessionregister(Registry<VillagerProfession> registry, RegistryKey<VillagerProfession> key, RegistryKey<PointOfInterestType> heldWorkstation, @Nullable SoundEvent workSound) static VillagerProfessionregisterAndGetDefault(Registry<VillagerProfession> registry) Returns the value of thesecondaryJobSitesrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theworkSoundrecord component.
-
Field Details
-
id
The field for theidrecord component. -
heldWorkstation
The field for theheldWorkstationrecord component. -
acquirableWorkstation
The field for theacquirableWorkstationrecord component. -
gatherableItems
The field for thegatherableItemsrecord component. -
secondaryJobSites
The field for thesecondaryJobSitesrecord component. -
workSound
The field for theworkSoundrecord component. -
IS_ACQUIRABLE_JOB_SITE
- Mappings:
Namespace Name Mixin selector named IS_ACQUIRABLE_JOB_SITELnet/minecraft/village/VillagerProfession;IS_ACQUIRABLE_JOB_SITE:Ljava/util/function/Predicate;intermediary field_39308Lnet/minecraft/class_3852;field_39308:Ljava/util/function/Predicate;official aLcrx;a:Ljava/util/function/Predicate;
-
NONE
- Mappings:
Namespace Name Mixin selector named NONELnet/minecraft/village/VillagerProfession;NONE:Lnet/minecraft/registry/RegistryKey;intermediary field_17051Lnet/minecraft/class_3852;field_17051:Lnet/minecraft/class_5321;official bLcrx;b:Lalq;
-
ARMORER
- Mappings:
Namespace Name Mixin selector named ARMORERLnet/minecraft/village/VillagerProfession;ARMORER:Lnet/minecraft/registry/RegistryKey;intermediary field_17052Lnet/minecraft/class_3852;field_17052:Lnet/minecraft/class_5321;official cLcrx;c:Lalq;
-
BUTCHER
- Mappings:
Namespace Name Mixin selector named BUTCHERLnet/minecraft/village/VillagerProfession;BUTCHER:Lnet/minecraft/registry/RegistryKey;intermediary field_17053Lnet/minecraft/class_3852;field_17053:Lnet/minecraft/class_5321;official dLcrx;d:Lalq;
-
CARTOGRAPHER
- Mappings:
Namespace Name Mixin selector named CARTOGRAPHERLnet/minecraft/village/VillagerProfession;CARTOGRAPHER:Lnet/minecraft/registry/RegistryKey;intermediary field_17054Lnet/minecraft/class_3852;field_17054:Lnet/minecraft/class_5321;official eLcrx;e:Lalq;
-
CLERIC
- Mappings:
Namespace Name Mixin selector named CLERICLnet/minecraft/village/VillagerProfession;CLERIC:Lnet/minecraft/registry/RegistryKey;intermediary field_17055Lnet/minecraft/class_3852;field_17055:Lnet/minecraft/class_5321;official fLcrx;f:Lalq;
-
FARMER
- Mappings:
Namespace Name Mixin selector named FARMERLnet/minecraft/village/VillagerProfession;FARMER:Lnet/minecraft/registry/RegistryKey;intermediary field_17056Lnet/minecraft/class_3852;field_17056:Lnet/minecraft/class_5321;official gLcrx;g:Lalq;
-
FISHERMAN
- Mappings:
Namespace Name Mixin selector named FISHERMANLnet/minecraft/village/VillagerProfession;FISHERMAN:Lnet/minecraft/registry/RegistryKey;intermediary field_17057Lnet/minecraft/class_3852;field_17057:Lnet/minecraft/class_5321;official hLcrx;h:Lalq;
-
FLETCHER
- Mappings:
Namespace Name Mixin selector named FLETCHERLnet/minecraft/village/VillagerProfession;FLETCHER:Lnet/minecraft/registry/RegistryKey;intermediary field_17058Lnet/minecraft/class_3852;field_17058:Lnet/minecraft/class_5321;official iLcrx;i:Lalq;
-
LEATHERWORKER
- Mappings:
Namespace Name Mixin selector named LEATHERWORKERLnet/minecraft/village/VillagerProfession;LEATHERWORKER:Lnet/minecraft/registry/RegistryKey;intermediary field_17059Lnet/minecraft/class_3852;field_17059:Lnet/minecraft/class_5321;official jLcrx;j:Lalq;
-
LIBRARIAN
- Mappings:
Namespace Name Mixin selector named LIBRARIANLnet/minecraft/village/VillagerProfession;LIBRARIAN:Lnet/minecraft/registry/RegistryKey;intermediary field_17060Lnet/minecraft/class_3852;field_17060:Lnet/minecraft/class_5321;official kLcrx;k:Lalq;
-
MASON
- Mappings:
Namespace Name Mixin selector named MASONLnet/minecraft/village/VillagerProfession;MASON:Lnet/minecraft/registry/RegistryKey;intermediary field_17061Lnet/minecraft/class_3852;field_17061:Lnet/minecraft/class_5321;official lLcrx;l:Lalq;
-
NITWIT
- Mappings:
Namespace Name Mixin selector named NITWITLnet/minecraft/village/VillagerProfession;NITWIT:Lnet/minecraft/registry/RegistryKey;intermediary field_17062Lnet/minecraft/class_3852;field_17062:Lnet/minecraft/class_5321;official mLcrx;m:Lalq;
-
SHEPHERD
- Mappings:
Namespace Name Mixin selector named SHEPHERDLnet/minecraft/village/VillagerProfession;SHEPHERD:Lnet/minecraft/registry/RegistryKey;intermediary field_17063Lnet/minecraft/class_3852;field_17063:Lnet/minecraft/class_5321;official nLcrx;n:Lalq;
-
TOOLSMITH
- Mappings:
Namespace Name Mixin selector named TOOLSMITHLnet/minecraft/village/VillagerProfession;TOOLSMITH:Lnet/minecraft/registry/RegistryKey;intermediary field_17064Lnet/minecraft/class_3852;field_17064:Lnet/minecraft/class_5321;official oLcrx;o:Lalq;
-
WEAPONSMITH
- Mappings:
Namespace Name Mixin selector named WEAPONSMITHLnet/minecraft/village/VillagerProfession;WEAPONSMITH:Lnet/minecraft/registry/RegistryKey;intermediary field_17065Lnet/minecraft/class_3852;field_17065:Lnet/minecraft/class_5321;official pLcrx;p:Lalq;
-
-
Constructor Details
-
VillagerProfession
public VillagerProfession(Text text, Predicate<RegistryEntry<PointOfInterestType>> predicate, Predicate<RegistryEntry<PointOfInterestType>> predicate2, ImmutableSet<Item> immutableSet, ImmutableSet<Block> immutableSet2, @Nullable @Nullable SoundEvent soundEvent)
-
-
Method Details
-
of
- Mappings:
Namespace Name Mixin selector named ofLnet/minecraft/village/VillagerProfession;of(Ljava/lang/String;)Lnet/minecraft/registry/RegistryKey;intermediary method_66691Lnet/minecraft/class_3852;method_66691(Ljava/lang/String;)Lnet/minecraft/class_5321;official aLcrx;a(Ljava/lang/String;)Lalq;
-
register
private static VillagerProfession register(Registry<VillagerProfession> registry, RegistryKey<VillagerProfession> key, RegistryKey<PointOfInterestType> heldWorkstation, @Nullable @Nullable SoundEvent workSound) - Mappings:
Namespace Name Mixin selector named registerLnet/minecraft/village/VillagerProfession;register(Lnet/minecraft/registry/Registry;Lnet/minecraft/registry/RegistryKey;Lnet/minecraft/registry/RegistryKey;Lnet/minecraft/sound/SoundEvent;)Lnet/minecraft/village/VillagerProfession;intermediary method_16926Lnet/minecraft/class_3852;method_16926(Lnet/minecraft/class_2378;Lnet/minecraft/class_5321;Lnet/minecraft/class_5321;Lnet/minecraft/class_3414;)Lnet/minecraft/class_3852;official aLcrx;a(Ljt;Lalq;Lalq;Lawx;)Lcrx;
-
register
private static VillagerProfession register(Registry<VillagerProfession> registry, RegistryKey<VillagerProfession> key, Predicate<RegistryEntry<PointOfInterestType>> heldWorkstation, Predicate<RegistryEntry<PointOfInterestType>> acquirableWorkstation, @Nullable @Nullable SoundEvent workSound) - Mappings:
Namespace Name Mixin selector named registerLnet/minecraft/village/VillagerProfession;register(Lnet/minecraft/registry/Registry;Lnet/minecraft/registry/RegistryKey;Ljava/util/function/Predicate;Ljava/util/function/Predicate;Lnet/minecraft/sound/SoundEvent;)Lnet/minecraft/village/VillagerProfession;intermediary method_44007Lnet/minecraft/class_3852;method_44007(Lnet/minecraft/class_2378;Lnet/minecraft/class_5321;Ljava/util/function/Predicate;Ljava/util/function/Predicate;Lnet/minecraft/class_3414;)Lnet/minecraft/class_3852;official aLcrx;a(Ljt;Lalq;Ljava/util/function/Predicate;Ljava/util/function/Predicate;Lawx;)Lcrx;
-
register
private static VillagerProfession register(Registry<VillagerProfession> registry, RegistryKey<VillagerProfession> key, RegistryKey<PointOfInterestType> heldWorkstation, ImmutableSet<Item> gatherableItems, ImmutableSet<Block> secondaryJobSites, @Nullable @Nullable SoundEvent workSound) - Mappings:
Namespace Name Mixin selector named registerLnet/minecraft/village/VillagerProfession;register(Lnet/minecraft/registry/Registry;Lnet/minecraft/registry/RegistryKey;Lnet/minecraft/registry/RegistryKey;Lcom/google/common/collect/ImmutableSet;Lcom/google/common/collect/ImmutableSet;Lnet/minecraft/sound/SoundEvent;)Lnet/minecraft/village/VillagerProfession;intermediary method_19197Lnet/minecraft/class_3852;method_19197(Lnet/minecraft/class_2378;Lnet/minecraft/class_5321;Lnet/minecraft/class_5321;Lcom/google/common/collect/ImmutableSet;Lcom/google/common/collect/ImmutableSet;Lnet/minecraft/class_3414;)Lnet/minecraft/class_3852;official aLcrx;a(Ljt;Lalq;Lalq;Lcom/google/common/collect/ImmutableSet;Lcom/google/common/collect/ImmutableSet;Lawx;)Lcrx;
-
register
private static VillagerProfession register(Registry<VillagerProfession> registry, RegistryKey<VillagerProfession> key, Predicate<RegistryEntry<PointOfInterestType>> heldWorkstation, Predicate<RegistryEntry<PointOfInterestType>> acquirableWorkstation, ImmutableSet<Item> gatherableItems, ImmutableSet<Block> secondaryJobSites, @Nullable @Nullable SoundEvent workSound) - Mappings:
Namespace Name Mixin selector named registerLnet/minecraft/village/VillagerProfession;register(Lnet/minecraft/registry/Registry;Lnet/minecraft/registry/RegistryKey;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;intermediary method_44008Lnet/minecraft/class_3852;method_44008(Lnet/minecraft/class_2378;Lnet/minecraft/class_5321;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;official aLcrx;a(Ljt;Lalq;Ljava/util/function/Predicate;Ljava/util/function/Predicate;Lcom/google/common/collect/ImmutableSet;Lcom/google/common/collect/ImmutableSet;Lawx;)Lcrx;
-
registerAndGetDefault
- Mappings:
Namespace Name Mixin selector named registerAndGetDefaultLnet/minecraft/village/VillagerProfession;registerAndGetDefault(Lnet/minecraft/registry/Registry;)Lnet/minecraft/village/VillagerProfession;intermediary method_66692Lnet/minecraft/class_3852;method_66692(Lnet/minecraft/class_2378;)Lnet/minecraft/class_3852;official aLcrx;a(Ljt;)Lcrx;
-
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. -
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. -
equals
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 withObjects::equals(Object,Object). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
heldWorkstation
Returns the value of theheldWorkstationrecord component.- Returns:
- the value of the
heldWorkstationrecord component
-
acquirableWorkstation
Returns the value of theacquirableWorkstationrecord component.- Returns:
- the value of the
acquirableWorkstationrecord component
-
gatherableItems
Returns the value of thegatherableItemsrecord component.- Returns:
- the value of the
gatherableItemsrecord component
-
secondaryJobSites
Returns the value of thesecondaryJobSitesrecord component.- Returns:
- the value of the
secondaryJobSitesrecord component
-
workSound
Returns the value of theworkSoundrecord component.- Returns:
- the value of the
workSoundrecord component
-