Package net.minecraft.advancement
Record Class AdvancementRequirements
java.lang.Object
java.lang.Record
net.minecraft.advancement.AdvancementRequirements
- Record Components:
requirements
-
- Mappings:
Namespace Name official ai
intermediary net/minecraft/class_8782
named net/minecraft/advancement/AdvancementRequirements
official b
intermediary comp_1922
named requirements
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final AdvancementRequirements
private final String[][]
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.static AdvancementRequirements
int
getNames()
final int
hashCode()
Returns a hash code value for this object.boolean
isEmpty()
boolean
private static String[][]
String[][]
Returns the value of therequirements
record component.com.google.gson.JsonArray
toJson()
toString()
Returns a string representation of this record class.void
-
Field Details
-
requirements
The field for therequirements
record component. -
EMPTY
- Mappings:
Namespace Name Mixin selector official a
Lai;a:Lai;
intermediary field_46084
Lnet/minecraft/class_8782;field_46084:Lnet/minecraft/class_8782;
named EMPTY
Lnet/minecraft/advancement/AdvancementRequirements;EMPTY:Lnet/minecraft/advancement/AdvancementRequirements;
-
-
Constructor Details
-
AdvancementRequirements
- Mappings:
Namespace Name Mixin selector official <init>
Lai;<init>(Lso;)V
intermediary <init>
Lnet/minecraft/class_8782;<init>(Lnet/minecraft/class_2540;)V
named <init>
Lnet/minecraft/advancement/AdvancementRequirements;<init>(Lnet/minecraft/network/PacketByteBuf;)V
-
AdvancementRequirements
-
-
Method Details
-
readRequirements
- Mappings:
Namespace Name Mixin selector official b
Lai;b(Lso;)[[Ljava/lang/String;
intermediary method_53676
Lnet/minecraft/class_8782;method_53676(Lnet/minecraft/class_2540;)[[Ljava/lang/String;
named readRequirements
Lnet/minecraft/advancement/AdvancementRequirements;readRequirements(Lnet/minecraft/network/PacketByteBuf;)[[Ljava/lang/String;
-
writeRequirements
- Mappings:
Namespace Name Mixin selector official a
Lai;a(Lso;)V
intermediary method_53670
Lnet/minecraft/class_8782;method_53670(Lnet/minecraft/class_2540;)V
named writeRequirements
Lnet/minecraft/advancement/AdvancementRequirements;writeRequirements(Lnet/minecraft/network/PacketByteBuf;)V
-
allOf
- Mappings:
Namespace Name Mixin selector official a
Lai;a(Ljava/util/Collection;)Lai;
intermediary method_53668
Lnet/minecraft/class_8782;method_53668(Ljava/util/Collection;)Lnet/minecraft/class_8782;
named allOf
Lnet/minecraft/advancement/AdvancementRequirements;allOf(Ljava/util/Collection;)Lnet/minecraft/advancement/AdvancementRequirements;
-
anyOf
- Mappings:
Namespace Name Mixin selector official b
Lai;b(Ljava/util/Collection;)Lai;
intermediary method_53674
Lnet/minecraft/class_8782;method_53674(Ljava/util/Collection;)Lnet/minecraft/class_8782;
named anyOf
Lnet/minecraft/advancement/AdvancementRequirements;anyOf(Ljava/util/Collection;)Lnet/minecraft/advancement/AdvancementRequirements;
-
getLength
public int getLength()- Mappings:
Namespace Name Mixin selector official a
Lai;a()I
intermediary method_53664
Lnet/minecraft/class_8782;method_53664()I
named getLength
Lnet/minecraft/advancement/AdvancementRequirements;getLength()I
-
matches
- Mappings:
Namespace Name Mixin selector official a
Lai;a(Ljava/util/function/Predicate;)Z
intermediary method_53669
Lnet/minecraft/class_8782;method_53669(Ljava/util/function/Predicate;)Z
named matches
Lnet/minecraft/advancement/AdvancementRequirements;matches(Ljava/util/function/Predicate;)Z
-
countMatches
- Mappings:
Namespace Name Mixin selector official b
Lai;b(Ljava/util/function/Predicate;)I
intermediary method_53675
Lnet/minecraft/class_8782;method_53675(Ljava/util/function/Predicate;)I
named countMatches
Lnet/minecraft/advancement/AdvancementRequirements;countMatches(Ljava/util/function/Predicate;)I
-
anyMatch
- Mappings:
Namespace Name Mixin selector official a
Lai;a([Ljava/lang/String;Ljava/util/function/Predicate;)Z
intermediary method_53671
Lnet/minecraft/class_8782;method_53671([Ljava/lang/String;Ljava/util/function/Predicate;)Z
named anyMatch
Lnet/minecraft/advancement/AdvancementRequirements;anyMatch([Ljava/lang/String;Ljava/util/function/Predicate;)Z
-
fromJson
public static AdvancementRequirements fromJson(com.google.gson.JsonArray json, Set<String> criteria) - Mappings:
Namespace Name Mixin selector official a
Lai;a(Lcom/google/gson/JsonArray;Ljava/util/Set;)Lai;
intermediary method_53666
Lnet/minecraft/class_8782;method_53666(Lcom/google/gson/JsonArray;Ljava/util/Set;)Lnet/minecraft/class_8782;
named fromJson
Lnet/minecraft/advancement/AdvancementRequirements;fromJson(Lcom/google/gson/JsonArray;Ljava/util/Set;)Lnet/minecraft/advancement/AdvancementRequirements;
-
toJson
public com.google.gson.JsonArray toJson()- Mappings:
Namespace Name Mixin selector official b
Lai;b()Lcom/google/gson/JsonArray;
intermediary method_53672
Lnet/minecraft/class_8782;method_53672()Lcom/google/gson/JsonArray;
named toJson
Lnet/minecraft/advancement/AdvancementRequirements;toJson()Lcom/google/gson/JsonArray;
-
isEmpty
public boolean isEmpty()- Mappings:
Namespace Name Mixin selector official c
Lai;c()Z
intermediary method_53677
Lnet/minecraft/class_8782;method_53677()Z
named isEmpty
Lnet/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 d
Lai;d()Ljava/util/Set;
intermediary method_53678
Lnet/minecraft/class_8782;method_53678()Ljava/util/Set;
named getNames
Lnet/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 therequirements
record component.- Returns:
- the value of the
requirements
record component
-