Record Class Criterion.ConditionsContainer<T extends CriterionConditions>
java.lang.Object
java.lang.Record
net.minecraft.advancement.criterion.Criterion.ConditionsContainer<T>
- Record Components:
conditions-advancement-id-
- Enclosing interface:
Criterion<T extends CriterionConditions>
public static record Criterion.ConditionsContainer<T extends CriterionConditions>(T extends CriterionConditions conditions, AdvancementEntry advancement, String id)
extends Record
- Mappings:
Namespace Name named net/minecraft/advancement/criterion/Criterion$ConditionsContainerintermediary net/minecraft/class_179$class_180official aq$anamed conditionsintermediary comp_1925official anamed advancementintermediary comp_1926official bnamed idintermediary comp_1927official c
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final AdvancementEntryThe field for theadvancementrecord component.private final TThe field for theconditionsrecord component.private final StringThe field for theidrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionConditionsContainer(T conditions, AdvancementEntry advancementEntry, String id) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theadvancementrecord component.Returns the value of theconditionsrecord component.final booleanIndicates whether some other object is "equal to" this one.voidgrant(PlayerAdvancementTracker tracker) final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
conditions
The field for theconditionsrecord component. -
advancement
The field for theadvancementrecord component. -
id
The field for theidrecord component.
-
-
Constructor Details
-
ConditionsContainer
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/advancement/criterion/Criterion$ConditionsContainer;<init>(Lnet/minecraft/advancement/criterion/CriterionConditions;Lnet/minecraft/advancement/AdvancementEntry;Ljava/lang/String;)Vintermediary <init>Lnet/minecraft/class_179$class_180;<init>(Lnet/minecraft/class_184;Lnet/minecraft/class_8779;Ljava/lang/String;)Vofficial <init>Laq$a;<init>(Lar;Lag;Ljava/lang/String;)V
-
-
Method Details
-
grant
- Mappings:
Namespace Name Mixin selector named grantLnet/minecraft/advancement/criterion/Criterion$ConditionsContainer;grant(Lnet/minecraft/advancement/PlayerAdvancementTracker;)Vintermediary method_796Lnet/minecraft/class_179$class_180;method_796(Lnet/minecraft/class_2985;)Vofficial aLaq$a;a(Lakz;)V
-
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). -
conditions
Returns the value of theconditionsrecord component.- Returns:
- the value of the
conditionsrecord component
-
advancement
Returns the value of theadvancementrecord component.- Returns:
- the value of the
advancementrecord component
-
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-