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 Details

  • Constructor Details

    • ConditionsContainer

      public ConditionsContainer(T conditions, AdvancementEntry advancementEntry, String id)
      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

      public void grant(PlayerAdvancementTracker tracker)
      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

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • conditions

      public T conditions()
      Returns the value of the conditions record component.
      Returns:
      the value of the conditions record component
    • advancement

      public AdvancementEntry advancement()
      Returns the value of the advancement record component.
      Returns:
      the value of the advancement record component
    • id

      public String id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component