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 an
intermediary net/minecraft/class_175
named net/minecraft/advancement/AdvancementCriterion
official b
intermediary comp_1923
named trigger
official c
intermediary comp_1924
named conditions
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final T
The field for theconditions
record component.static final com.mojang.serialization.Codec<AdvancementCriterion<?>>
private static final com.mojang.serialization.MapCodec<AdvancementCriterion<?>>
The field for thetrigger
record component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconditions
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.private static <T extends CriterionConditions>
com.mojang.serialization.Codec<AdvancementCriterion<T>>method_54935
(Criterion<T> criterion) 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. -
field_47189
- Mappings:
Namespace Name Mixin selector official d
Lan;d:Lcom/mojang/serialization/MapCodec;
intermediary field_47189
Lnet/minecraft/class_175;field_47189:Lcom/mojang/serialization/MapCodec;
named field_47189
Lnet/minecraft/advancement/AdvancementCriterion;field_47189:Lcom/mojang/serialization/MapCodec;
-
field_47188
- Mappings:
Namespace Name Mixin selector official a
Lan;a:Lcom/mojang/serialization/Codec;
intermediary field_47188
Lnet/minecraft/class_175;field_47188:Lcom/mojang/serialization/Codec;
named field_47188
Lnet/minecraft/advancement/AdvancementCriterion;field_47188:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
AdvancementCriterion
-
-
Method Details
-
method_54935
private static <T extends CriterionConditions> com.mojang.serialization.Codec<AdvancementCriterion<T>> method_54935(Criterion<T> criterion) - Mappings:
Namespace Name Mixin selector official a
Lan;a(Lap;)Lcom/mojang/serialization/Codec;
intermediary method_54935
Lnet/minecraft/class_175;method_54935(Lnet/minecraft/class_179;)Lcom/mojang/serialization/Codec;
named method_54935
Lnet/minecraft/advancement/AdvancementCriterion;method_54935(Lnet/minecraft/advancement/criterion/Criterion;)Lcom/mojang/serialization/Codec;
-
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
-