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$ConditionsContainer
intermediary net/minecraft/class_179$class_180
official ar$a
named conditions
intermediary comp_1925
official a
named advancement
intermediary comp_1926
official b
named id
intermediary comp_1927
official c
-
Field Summary
Modifier and TypeFieldDescriptionprivate final AdvancementEntry
The field for theadvancement
record component.private final T
The field for theconditions
record component.private final String
The field for theid
record component. -
Constructor Summary
ConstructorDescriptionConditionsContainer
(T conditions, AdvancementEntry advancementEntry, String id) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theadvancement
record component.Returns the value of theconditions
record component.final boolean
Indicates whether some other object is "equal to" this one.void
grant
(PlayerAdvancementTracker tracker) final int
hashCode()
Returns a hash code value for this object.id()
Returns the value of theid
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
conditions
The field for theconditions
record component. -
advancement
The field for theadvancement
record component. -
id
The field for theid
record 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;)V
intermediary <init>
Lnet/minecraft/class_179$class_180;<init>(Lnet/minecraft/class_184;Lnet/minecraft/class_8779;Ljava/lang/String;)V
official <init>
Lar$a;<init>(Las;Lah;Ljava/lang/String;)V
-
-
Method Details
-
grant
- Mappings:
Namespace Name Mixin selector named grant
Lnet/minecraft/advancement/criterion/Criterion$ConditionsContainer;grant(Lnet/minecraft/advancement/PlayerAdvancementTracker;)V
intermediary method_796
Lnet/minecraft/class_179$class_180;method_796(Lnet/minecraft/class_2985;)V
official a
Lar$a;a(Lamh;)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 theconditions
record component.- Returns:
- the value of the
conditions
record component
-
advancement
Returns the value of theadvancement
record component.- Returns:
- the value of the
advancement
record component
-
id
Returns the value of theid
record component.- Returns:
- the value of the
id
record component
-