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(String 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/VillagerProfession
intermediary net/minecraft/class_3852
official cmo
named id
intermediary comp_818
official q
named heldWorkstation
intermediary comp_819
official r
named acquirableWorkstation
intermediary comp_820
official s
named gatherableItems
intermediary comp_821
official t
named secondaryJobSites
intermediary comp_822
official u
named workSound
intermediary comp_823
official v
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Predicate
<RegistryEntry<PointOfInterestType>> The field for theacquirableWorkstation
record component.static final VillagerProfession
static final VillagerProfession
static final VillagerProfession
static final VillagerProfession
static final VillagerProfession
static final VillagerProfession
static final VillagerProfession
private final ImmutableSet
<Item> The field for thegatherableItems
record component.private final Predicate
<RegistryEntry<PointOfInterestType>> The field for theheldWorkstation
record component.private final String
The field for theid
record component.static final Predicate
<RegistryEntry<PointOfInterestType>> static final VillagerProfession
static final VillagerProfession
static final VillagerProfession
static final VillagerProfession
static final VillagerProfession
private final ImmutableSet
<Block> The field for thesecondaryJobSites
record component.static final VillagerProfession
static final VillagerProfession
static final VillagerProfession
private final @Nullable SoundEvent
The field for theworkSound
record component. -
Constructor Summary
ConstructorDescriptionVillagerProfession
(String id, 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 theacquirableWorkstation
record component.final boolean
Indicates whether some other object is "equal to" this one.Returns the value of thegatherableItems
record component.final int
hashCode()
Returns a hash code value for this object.Returns the value of theheldWorkstation
record component.id()
Returns the value of theid
record component.private static VillagerProfession
register
(String id, Predicate<RegistryEntry<PointOfInterestType>> heldWorkstation, Predicate<RegistryEntry<PointOfInterestType>> acquirableWorkstation, ImmutableSet<Item> gatherableItems, ImmutableSet<Block> secondaryJobSites, @Nullable SoundEvent workSound) private static VillagerProfession
register
(String id, Predicate<RegistryEntry<PointOfInterestType>> heldWorkstation, Predicate<RegistryEntry<PointOfInterestType>> acquirableWorkstation, @Nullable SoundEvent workSound) private static VillagerProfession
register
(String id, RegistryKey<PointOfInterestType> heldWorkstation, ImmutableSet<Item> gatherableItems, ImmutableSet<Block> secondaryJobSites, @Nullable SoundEvent workSound) private static VillagerProfession
register
(String id, RegistryKey<PointOfInterestType> heldWorkstation, @Nullable SoundEvent workSound) Returns the value of thesecondaryJobSites
record component.toString()
Returns a string representation of this record class.Returns the value of theworkSound
record component.
-
Field Details
-
id
The field for theid
record component. -
heldWorkstation
The field for theheldWorkstation
record component. -
acquirableWorkstation
The field for theacquirableWorkstation
record component. -
gatherableItems
The field for thegatherableItems
record component. -
secondaryJobSites
The field for thesecondaryJobSites
record component. -
workSound
The field for theworkSound
record component. -
IS_ACQUIRABLE_JOB_SITE
- Mappings:
Namespace Name Mixin selector named IS_ACQUIRABLE_JOB_SITE
Lnet/minecraft/village/VillagerProfession;IS_ACQUIRABLE_JOB_SITE:Ljava/util/function/Predicate;
intermediary field_39308
Lnet/minecraft/class_3852;field_39308:Ljava/util/function/Predicate;
official a
Lcmo;a:Ljava/util/function/Predicate;
-
NONE
- Mappings:
Namespace Name Mixin selector named NONE
Lnet/minecraft/village/VillagerProfession;NONE:Lnet/minecraft/village/VillagerProfession;
intermediary field_17051
Lnet/minecraft/class_3852;field_17051:Lnet/minecraft/class_3852;
official b
Lcmo;b:Lcmo;
-
ARMORER
- Mappings:
Namespace Name Mixin selector named ARMORER
Lnet/minecraft/village/VillagerProfession;ARMORER:Lnet/minecraft/village/VillagerProfession;
intermediary field_17052
Lnet/minecraft/class_3852;field_17052:Lnet/minecraft/class_3852;
official c
Lcmo;c:Lcmo;
-
BUTCHER
- Mappings:
Namespace Name Mixin selector named BUTCHER
Lnet/minecraft/village/VillagerProfession;BUTCHER:Lnet/minecraft/village/VillagerProfession;
intermediary field_17053
Lnet/minecraft/class_3852;field_17053:Lnet/minecraft/class_3852;
official d
Lcmo;d:Lcmo;
-
CARTOGRAPHER
- Mappings:
Namespace Name Mixin selector named CARTOGRAPHER
Lnet/minecraft/village/VillagerProfession;CARTOGRAPHER:Lnet/minecraft/village/VillagerProfession;
intermediary field_17054
Lnet/minecraft/class_3852;field_17054:Lnet/minecraft/class_3852;
official e
Lcmo;e:Lcmo;
-
CLERIC
- Mappings:
Namespace Name Mixin selector named CLERIC
Lnet/minecraft/village/VillagerProfession;CLERIC:Lnet/minecraft/village/VillagerProfession;
intermediary field_17055
Lnet/minecraft/class_3852;field_17055:Lnet/minecraft/class_3852;
official f
Lcmo;f:Lcmo;
-
FARMER
- Mappings:
Namespace Name Mixin selector named FARMER
Lnet/minecraft/village/VillagerProfession;FARMER:Lnet/minecraft/village/VillagerProfession;
intermediary field_17056
Lnet/minecraft/class_3852;field_17056:Lnet/minecraft/class_3852;
official g
Lcmo;g:Lcmo;
-
FISHERMAN
- Mappings:
Namespace Name Mixin selector named FISHERMAN
Lnet/minecraft/village/VillagerProfession;FISHERMAN:Lnet/minecraft/village/VillagerProfession;
intermediary field_17057
Lnet/minecraft/class_3852;field_17057:Lnet/minecraft/class_3852;
official h
Lcmo;h:Lcmo;
-
FLETCHER
- Mappings:
Namespace Name Mixin selector named FLETCHER
Lnet/minecraft/village/VillagerProfession;FLETCHER:Lnet/minecraft/village/VillagerProfession;
intermediary field_17058
Lnet/minecraft/class_3852;field_17058:Lnet/minecraft/class_3852;
official i
Lcmo;i:Lcmo;
-
LEATHERWORKER
- Mappings:
Namespace Name Mixin selector named LEATHERWORKER
Lnet/minecraft/village/VillagerProfession;LEATHERWORKER:Lnet/minecraft/village/VillagerProfession;
intermediary field_17059
Lnet/minecraft/class_3852;field_17059:Lnet/minecraft/class_3852;
official j
Lcmo;j:Lcmo;
-
LIBRARIAN
- Mappings:
Namespace Name Mixin selector named LIBRARIAN
Lnet/minecraft/village/VillagerProfession;LIBRARIAN:Lnet/minecraft/village/VillagerProfession;
intermediary field_17060
Lnet/minecraft/class_3852;field_17060:Lnet/minecraft/class_3852;
official k
Lcmo;k:Lcmo;
-
MASON
- Mappings:
Namespace Name Mixin selector named MASON
Lnet/minecraft/village/VillagerProfession;MASON:Lnet/minecraft/village/VillagerProfession;
intermediary field_17061
Lnet/minecraft/class_3852;field_17061:Lnet/minecraft/class_3852;
official l
Lcmo;l:Lcmo;
-
NITWIT
- Mappings:
Namespace Name Mixin selector named NITWIT
Lnet/minecraft/village/VillagerProfession;NITWIT:Lnet/minecraft/village/VillagerProfession;
intermediary field_17062
Lnet/minecraft/class_3852;field_17062:Lnet/minecraft/class_3852;
official m
Lcmo;m:Lcmo;
-
SHEPHERD
- Mappings:
Namespace Name Mixin selector named SHEPHERD
Lnet/minecraft/village/VillagerProfession;SHEPHERD:Lnet/minecraft/village/VillagerProfession;
intermediary field_17063
Lnet/minecraft/class_3852;field_17063:Lnet/minecraft/class_3852;
official n
Lcmo;n:Lcmo;
-
TOOLSMITH
- Mappings:
Namespace Name Mixin selector named TOOLSMITH
Lnet/minecraft/village/VillagerProfession;TOOLSMITH:Lnet/minecraft/village/VillagerProfession;
intermediary field_17064
Lnet/minecraft/class_3852;field_17064:Lnet/minecraft/class_3852;
official o
Lcmo;o:Lcmo;
-
WEAPONSMITH
- Mappings:
Namespace Name Mixin selector named WEAPONSMITH
Lnet/minecraft/village/VillagerProfession;WEAPONSMITH:Lnet/minecraft/village/VillagerProfession;
intermediary field_17065
Lnet/minecraft/class_3852;field_17065:Lnet/minecraft/class_3852;
official p
Lcmo;p:Lcmo;
-
-
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 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
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
official <init>
Lcmo;<init>(Ljava/lang/String;Ljava/util/function/Predicate;Ljava/util/function/Predicate;Lcom/google/common/collect/ImmutableSet;Lcom/google/common/collect/ImmutableSet;Lavz;)V
-
-
Method Details
-
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. -
register
private static VillagerProfession register(String id, RegistryKey<PointOfInterestType> heldWorkstation, @Nullable @Nullable SoundEvent workSound) - Mappings:
Namespace Name Mixin selector named register
Lnet/minecraft/village/VillagerProfession;register(Ljava/lang/String;Lnet/minecraft/registry/RegistryKey;Lnet/minecraft/sound/SoundEvent;)Lnet/minecraft/village/VillagerProfession;
intermediary method_16926
Lnet/minecraft/class_3852;method_16926(Ljava/lang/String;Lnet/minecraft/class_5321;Lnet/minecraft/class_3414;)Lnet/minecraft/class_3852;
official a
Lcmo;a(Ljava/lang/String;Lale;Lavz;)Lcmo;
-
register
private static VillagerProfession register(String id, Predicate<RegistryEntry<PointOfInterestType>> heldWorkstation, Predicate<RegistryEntry<PointOfInterestType>> acquirableWorkstation, @Nullable @Nullable SoundEvent workSound) - Mappings:
Namespace Name Mixin selector 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;
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;
official a
Lcmo;a(Ljava/lang/String;Ljava/util/function/Predicate;Ljava/util/function/Predicate;Lavz;)Lcmo;
-
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 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;
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;
official a
Lcmo;a(Ljava/lang/String;Lale;Lcom/google/common/collect/ImmutableSet;Lcom/google/common/collect/ImmutableSet;Lavz;)Lcmo;
-
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 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;
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;
official a
Lcmo;a(Ljava/lang/String;Ljava/util/function/Predicate;Ljava/util/function/Predicate;Lcom/google/common/collect/ImmutableSet;Lcom/google/common/collect/ImmutableSet;Lavz;)Lcmo;
-
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 theid
record component.- Returns:
- the value of the
id
record component
-
heldWorkstation
Returns the value of theheldWorkstation
record component.- Returns:
- the value of the
heldWorkstation
record component
-
acquirableWorkstation
Returns the value of theacquirableWorkstation
record component.- Returns:
- the value of the
acquirableWorkstation
record component
-
gatherableItems
Returns the value of thegatherableItems
record component.- Returns:
- the value of the
gatherableItems
record component
-
secondaryJobSites
Returns the value of thesecondaryJobSites
record component.- Returns:
- the value of the
secondaryJobSites
record component
-
workSound
Returns the value of theworkSound
record component.- Returns:
- the value of the
workSound
record component
-