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 - named - net/minecraft/advancement/AdvancementCriterion- intermediary - net/minecraft/class_175- official - aq- named - trigger- intermediary - comp_1923- official - b- named - conditions- intermediary - comp_1924- official - c
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<AdvancementCriterion<?>> private final TThe field for theconditionsrecord component.private static final com.mojang.serialization.MapCodec<AdvancementCriterion<?>> The field for thetriggerrecord component.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionReturns the value of theconditionsrecord component.final booleanIndicates whether some other object is "equal to" this one.private static <T extends CriterionConditions>
 com.mojang.serialization.Codec<AdvancementCriterion<T>> final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.trigger()Returns the value of thetriggerrecord component.
- 
Field Details- 
triggerThe field for thetriggerrecord component.
- 
conditionsThe field for theconditionsrecord component.
- 
MAP_CODEC- Mappings:
- Namespace - Name - Mixin selector - named - MAP_CODEC- Lnet/minecraft/advancement/AdvancementCriterion;MAP_CODEC:Lcom/mojang/serialization/MapCodec;- intermediary - field_47189- Lnet/minecraft/class_175;field_47189:Lcom/mojang/serialization/MapCodec;- official - d- Laq;d:Lcom/mojang/serialization/MapCodec;
 
- 
CODEC- Mappings:
- Namespace - Name - Mixin selector - named - CODEC- Lnet/minecraft/advancement/AdvancementCriterion;CODEC:Lcom/mojang/serialization/Codec;- intermediary - field_47188- Lnet/minecraft/class_175;field_47188:Lcom/mojang/serialization/Codec;- official - a- Laq;a:Lcom/mojang/serialization/Codec;
 
 
- 
- 
Constructor Details- 
AdvancementCriterion
 
- 
- 
Method Details- 
getCodecprivate static <T extends CriterionConditions> com.mojang.serialization.Codec<AdvancementCriterion<T>> getCodec(Criterion<T> criterion) - Mappings:
- Namespace - Name - Mixin selector - named - getCodec- Lnet/minecraft/advancement/AdvancementCriterion;getCodec(Lnet/minecraft/advancement/criterion/Criterion;)Lcom/mojang/serialization/Codec;- intermediary - method_54935- Lnet/minecraft/class_175;method_54935(Lnet/minecraft/class_179;)Lcom/mojang/serialization/Codec;- official - a- Laq;a(Las;)Lcom/mojang/serialization/Codec;
 
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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).
- 
triggerReturns the value of thetriggerrecord component.- Returns:
- the value of the triggerrecord component
 
- 
conditionsReturns the value of theconditionsrecord component.- Returns:
- the value of the conditionsrecord component
 
 
-