Package net.minecraft.advancement
Record Class AdvancementRequirements
java.lang.Object
java.lang.Record
net.minecraft.advancement.AdvancementRequirements
- Record Components:
requirements
-
- Mappings:
Namespace Name named net/minecraft/advancement/AdvancementRequirements
intermediary net/minecraft/class_8782
official aj
named requirements
intermediary comp_1922
official c
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<AdvancementRequirements> static final AdvancementRequirements
The field for therequirements
record component. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic AdvancementRequirements
allOf
(Collection<String> requirements) private static boolean
static AdvancementRequirements
anyOf
(Collection<String> requirements) int
countMatches
(Predicate<String> predicate) final boolean
Indicates whether some other object is "equal to" this one.int
getNames()
final int
hashCode()
Returns a hash code value for this object.boolean
isEmpty()
boolean
Returns the value of therequirements
record component.toString()
Returns a string representation of this record class.com.mojang.serialization.DataResult
<AdvancementRequirements> void
-
Field Details
-
requirements
The field for therequirements
record component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/advancement/AdvancementRequirements;CODEC:Lcom/mojang/serialization/Codec;
intermediary field_47184
Lnet/minecraft/class_8782;field_47184:Lcom/mojang/serialization/Codec;
official a
Laj;a:Lcom/mojang/serialization/Codec;
-
EMPTY
- Mappings:
Namespace Name Mixin selector named EMPTY
Lnet/minecraft/advancement/AdvancementRequirements;EMPTY:Lnet/minecraft/advancement/AdvancementRequirements;
intermediary field_46084
Lnet/minecraft/class_8782;field_46084:Lnet/minecraft/class_8782;
official b
Laj;b:Laj;
-
-
Constructor Details
-
AdvancementRequirements
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/advancement/AdvancementRequirements;<init>(Lnet/minecraft/network/PacketByteBuf;)V
intermediary <init>
Lnet/minecraft/class_8782;<init>(Lnet/minecraft/class_2540;)V
official <init>
Laj;<init>(Lvv;)V
-
AdvancementRequirements
-
-
Method Details
-
writeRequirements
- Mappings:
Namespace Name Mixin selector named writeRequirements
Lnet/minecraft/advancement/AdvancementRequirements;writeRequirements(Lnet/minecraft/network/PacketByteBuf;)V
intermediary method_53670
Lnet/minecraft/class_8782;method_53670(Lnet/minecraft/class_2540;)V
official a
Laj;a(Lvv;)V
-
allOf
- Mappings:
Namespace Name Mixin selector named allOf
Lnet/minecraft/advancement/AdvancementRequirements;allOf(Ljava/util/Collection;)Lnet/minecraft/advancement/AdvancementRequirements;
intermediary method_53668
Lnet/minecraft/class_8782;method_53668(Ljava/util/Collection;)Lnet/minecraft/class_8782;
official a
Laj;a(Ljava/util/Collection;)Laj;
-
anyOf
- Mappings:
Namespace Name Mixin selector named anyOf
Lnet/minecraft/advancement/AdvancementRequirements;anyOf(Ljava/util/Collection;)Lnet/minecraft/advancement/AdvancementRequirements;
intermediary method_53674
Lnet/minecraft/class_8782;method_53674(Ljava/util/Collection;)Lnet/minecraft/class_8782;
official b
Laj;b(Ljava/util/Collection;)Laj;
-
getLength
public int getLength()- Mappings:
Namespace Name Mixin selector named getLength
Lnet/minecraft/advancement/AdvancementRequirements;getLength()I
intermediary method_53664
Lnet/minecraft/class_8782;method_53664()I
official a
Laj;a()I
-
matches
- Mappings:
Namespace Name Mixin selector named matches
Lnet/minecraft/advancement/AdvancementRequirements;matches(Ljava/util/function/Predicate;)Z
intermediary method_53669
Lnet/minecraft/class_8782;method_53669(Ljava/util/function/Predicate;)Z
official a
Laj;a(Ljava/util/function/Predicate;)Z
-
countMatches
- Mappings:
Namespace Name Mixin selector named countMatches
Lnet/minecraft/advancement/AdvancementRequirements;countMatches(Ljava/util/function/Predicate;)I
intermediary method_53675
Lnet/minecraft/class_8782;method_53675(Ljava/util/function/Predicate;)I
official b
Laj;b(Ljava/util/function/Predicate;)I
-
anyMatch
- Mappings:
Namespace Name Mixin selector named anyMatch
Lnet/minecraft/advancement/AdvancementRequirements;anyMatch(Ljava/util/List;Ljava/util/function/Predicate;)Z
intermediary method_53671
Lnet/minecraft/class_8782;method_53671(Ljava/util/List;Ljava/util/function/Predicate;)Z
official a
Laj;a(Ljava/util/List;Ljava/util/function/Predicate;)Z
-
validate
public com.mojang.serialization.DataResult<AdvancementRequirements> validate(Set<String> requirements) - Mappings:
Namespace Name Mixin selector named validate
Lnet/minecraft/advancement/AdvancementRequirements;validate(Ljava/util/Set;)Lcom/mojang/serialization/DataResult;
intermediary method_54925
Lnet/minecraft/class_8782;method_54925(Ljava/util/Set;)Lcom/mojang/serialization/DataResult;
official a
Laj;a(Ljava/util/Set;)Lcom/mojang/serialization/DataResult;
-
isEmpty
public boolean isEmpty()- Mappings:
Namespace Name Mixin selector named isEmpty
Lnet/minecraft/advancement/AdvancementRequirements;isEmpty()Z
intermediary method_53677
Lnet/minecraft/class_8782;method_53677()Z
official b
Laj;b()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 named getNames
Lnet/minecraft/advancement/AdvancementRequirements;getNames()Ljava/util/Set;
intermediary method_53678
Lnet/minecraft/class_8782;method_53678()Ljava/util/Set;
official c
Laj;c()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 therequirements
record component.- Returns:
- the value of the
requirements
record component
-