Package net.minecraft.advancement
Record Class AdvancementRequirements
java.lang.Object
java.lang.Record
net.minecraft.advancement.AdvancementRequirements
- Record Components:
requirements-
- Mappings:
Namespace Name official aiintermediary net/minecraft/class_8782named net/minecraft/advancement/AdvancementRequirementsofficial cintermediary comp_1922named requirements
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<AdvancementRequirements>static final AdvancementRequirementsThe field for therequirementsrecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AdvancementRequirementsallOf(Collection<String> requirements) private static booleanstatic AdvancementRequirementsanyOf(Collection<String> requirements) intcountMatches(Predicate<String> predicate) final booleanIndicates whether some other object is "equal to" this one.intgetNames()final inthashCode()Returns a hash code value for this object.booleanisEmpty()booleanReturns the value of therequirementsrecord component.toString()Returns a string representation of this record class.com.mojang.serialization.DataResult<AdvancementRequirements>void
-
Field Details
-
requirements
The field for therequirementsrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector official aLai;a:Lcom/mojang/serialization/Codec;intermediary field_47184Lnet/minecraft/class_8782;field_47184:Lcom/mojang/serialization/Codec;named CODECLnet/minecraft/advancement/AdvancementRequirements;CODEC:Lcom/mojang/serialization/Codec;
-
EMPTY
- Mappings:
Namespace Name Mixin selector official bLai;b:Lai;intermediary field_46084Lnet/minecraft/class_8782;field_46084:Lnet/minecraft/class_8782;named EMPTYLnet/minecraft/advancement/AdvancementRequirements;EMPTY:Lnet/minecraft/advancement/AdvancementRequirements;
-
-
Constructor Details
-
AdvancementRequirements
- Mappings:
Namespace Name Mixin selector official <init>Lai;<init>(Lui;)Vintermediary <init>Lnet/minecraft/class_8782;<init>(Lnet/minecraft/class_2540;)Vnamed <init>Lnet/minecraft/advancement/AdvancementRequirements;<init>(Lnet/minecraft/network/PacketByteBuf;)V
-
AdvancementRequirements
-
-
Method Details
-
writeRequirements
- Mappings:
Namespace Name Mixin selector official aLai;a(Lui;)Vintermediary method_53670Lnet/minecraft/class_8782;method_53670(Lnet/minecraft/class_2540;)Vnamed writeRequirementsLnet/minecraft/advancement/AdvancementRequirements;writeRequirements(Lnet/minecraft/network/PacketByteBuf;)V
-
allOf
- Mappings:
Namespace Name Mixin selector official aLai;a(Ljava/util/Collection;)Lai;intermediary method_53668Lnet/minecraft/class_8782;method_53668(Ljava/util/Collection;)Lnet/minecraft/class_8782;named allOfLnet/minecraft/advancement/AdvancementRequirements;allOf(Ljava/util/Collection;)Lnet/minecraft/advancement/AdvancementRequirements;
-
anyOf
- Mappings:
Namespace Name Mixin selector official bLai;b(Ljava/util/Collection;)Lai;intermediary method_53674Lnet/minecraft/class_8782;method_53674(Ljava/util/Collection;)Lnet/minecraft/class_8782;named anyOfLnet/minecraft/advancement/AdvancementRequirements;anyOf(Ljava/util/Collection;)Lnet/minecraft/advancement/AdvancementRequirements;
-
getLength
public int getLength()- Mappings:
Namespace Name Mixin selector official aLai;a()Iintermediary method_53664Lnet/minecraft/class_8782;method_53664()Inamed getLengthLnet/minecraft/advancement/AdvancementRequirements;getLength()I
-
matches
- Mappings:
Namespace Name Mixin selector official aLai;a(Ljava/util/function/Predicate;)Zintermediary method_53669Lnet/minecraft/class_8782;method_53669(Ljava/util/function/Predicate;)Znamed matchesLnet/minecraft/advancement/AdvancementRequirements;matches(Ljava/util/function/Predicate;)Z
-
countMatches
- Mappings:
Namespace Name Mixin selector official bLai;b(Ljava/util/function/Predicate;)Iintermediary method_53675Lnet/minecraft/class_8782;method_53675(Ljava/util/function/Predicate;)Inamed countMatchesLnet/minecraft/advancement/AdvancementRequirements;countMatches(Ljava/util/function/Predicate;)I
-
anyMatch
- Mappings:
Namespace Name Mixin selector official aLai;a(Ljava/util/List;Ljava/util/function/Predicate;)Zintermediary method_53671Lnet/minecraft/class_8782;method_53671(Ljava/util/List;Ljava/util/function/Predicate;)Znamed anyMatchLnet/minecraft/advancement/AdvancementRequirements;anyMatch(Ljava/util/List;Ljava/util/function/Predicate;)Z
-
validate
public com.mojang.serialization.DataResult<AdvancementRequirements> validate(Set<String> requirements) - Mappings:
Namespace Name Mixin selector official aLai;a(Ljava/util/Set;)Lcom/mojang/serialization/DataResult;intermediary method_54925Lnet/minecraft/class_8782;method_54925(Ljava/util/Set;)Lcom/mojang/serialization/DataResult;named validateLnet/minecraft/advancement/AdvancementRequirements;validate(Ljava/util/Set;)Lcom/mojang/serialization/DataResult;
-
isEmpty
public boolean isEmpty()- Mappings:
Namespace Name Mixin selector official bLai;b()Zintermediary method_53677Lnet/minecraft/class_8782;method_53677()Znamed isEmptyLnet/minecraft/advancement/AdvancementRequirements;isEmpty()Z
-
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. -
getNames
- Mappings:
Namespace Name Mixin selector official cLai;c()Ljava/util/Set;intermediary method_53678Lnet/minecraft/class_8782;method_53678()Ljava/util/Set;named getNamesLnet/minecraft/advancement/AdvancementRequirements;getNames()Ljava/util/Set;
-
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). -
requirements
Returns the value of therequirementsrecord component.- Returns:
- the value of the
requirementsrecord component
-