Package net.minecraft.advancement
Record Class AdvancementCriterion<T extends CriterionConditions>
java.lang.Object
java.lang.Record
net.minecraft.advancement.AdvancementCriterion<T>
- Record Components:
trigger
-conditions
-
public record AdvancementCriterion<T extends CriterionConditions>(Criterion<T extends CriterionConditions> trigger, T extends CriterionConditions conditions)
extends Record
- Mappings:
Namespace Name official am
intermediary net/minecraft/class_175
named net/minecraft/advancement/AdvancementCriterion
official a
intermediary comp_1923
named trigger
official b
intermediary comp_1924
named conditions
-
Field Summary
Modifier and TypeFieldDescriptionprivate final T
The field for theconditions
record component.The field for thetrigger
record component. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconditions
record component.static Map<String,
AdvancementCriterion<?>> criteriaFromJson
(com.google.gson.JsonObject obj, AdvancementEntityPredicateDeserializer predicateDeserializer) final boolean
Indicates whether some other object is "equal to" this one.static AdvancementCriterion<?>
fromJson
(com.google.gson.JsonObject obj, AdvancementEntityPredicateDeserializer predicateDeserializer) private static <T extends CriterionConditions>
AdvancementCriterion<T>fromJson
(com.google.gson.JsonObject json, AdvancementEntityPredicateDeserializer predicateDeserializer, Criterion<T> trigger) final int
hashCode()
Returns a hash code value for this object.com.google.gson.JsonElement
toJson()
final String
toString()
Returns a string representation of this record class.trigger()
Returns the value of thetrigger
record component.
-
Field Details
-
trigger
The field for thetrigger
record component. -
conditions
The field for theconditions
record component.
-
-
Constructor Details
-
AdvancementCriterion
-
-
Method Details
-
fromJson
public static AdvancementCriterion<?> fromJson(com.google.gson.JsonObject obj, AdvancementEntityPredicateDeserializer predicateDeserializer) - Mappings:
Namespace Name Mixin selector official a
Lam;a(Lcom/google/gson/JsonObject;Lbg;)Lam;
intermediary method_770
Lnet/minecraft/class_175;method_770(Lcom/google/gson/JsonObject;Lnet/minecraft/class_5257;)Lnet/minecraft/class_175;
named fromJson
Lnet/minecraft/advancement/AdvancementCriterion;fromJson(Lcom/google/gson/JsonObject;Lnet/minecraft/predicate/entity/AdvancementEntityPredicateDeserializer;)Lnet/minecraft/advancement/AdvancementCriterion;
-
fromJson
private static <T extends CriterionConditions> AdvancementCriterion<T> fromJson(com.google.gson.JsonObject json, AdvancementEntityPredicateDeserializer predicateDeserializer, Criterion<T> trigger) - Mappings:
Namespace Name Mixin selector official a
Lam;a(Lcom/google/gson/JsonObject;Lbg;Lao;)Lam;
intermediary method_53698
Lnet/minecraft/class_175;method_53698(Lcom/google/gson/JsonObject;Lnet/minecraft/class_5257;Lnet/minecraft/class_179;)Lnet/minecraft/class_175;
named fromJson
Lnet/minecraft/advancement/AdvancementCriterion;fromJson(Lcom/google/gson/JsonObject;Lnet/minecraft/predicate/entity/AdvancementEntityPredicateDeserializer;Lnet/minecraft/advancement/criterion/Criterion;)Lnet/minecraft/advancement/AdvancementCriterion;
-
criteriaFromJson
public static Map<String,AdvancementCriterion<?>> criteriaFromJson(com.google.gson.JsonObject obj, AdvancementEntityPredicateDeserializer predicateDeserializer) - Mappings:
Namespace Name Mixin selector official b
Lam;b(Lcom/google/gson/JsonObject;Lbg;)Ljava/util/Map;
intermediary method_772
Lnet/minecraft/class_175;method_772(Lcom/google/gson/JsonObject;Lnet/minecraft/class_5257;)Ljava/util/Map;
named criteriaFromJson
Lnet/minecraft/advancement/AdvancementCriterion;criteriaFromJson(Lcom/google/gson/JsonObject;Lnet/minecraft/predicate/entity/AdvancementEntityPredicateDeserializer;)Ljava/util/Map;
-
toJson
public com.google.gson.JsonElement toJson()- Mappings:
Namespace Name Mixin selector official a
Lam;a()Lcom/google/gson/JsonElement;
intermediary method_773
Lnet/minecraft/class_175;method_773()Lcom/google/gson/JsonElement;
named toJson
Lnet/minecraft/advancement/AdvancementCriterion;toJson()Lcom/google/gson/JsonElement;
-
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)
. -
trigger
Returns the value of thetrigger
record component.- Returns:
- the value of the
trigger
record component
-
conditions
Returns the value of theconditions
record component.- Returns:
- the value of the
conditions
record component
-