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
official ap$a
intermediary net/minecraft/class_179$class_180
named net/minecraft/advancement/criterion/Criterion$ConditionsContainer
official a
intermediary comp_1925
named conditions
official b
intermediary comp_1926
named advancement
official c
intermediary comp_1927
named id
  • Field Details

  • Constructor Details

    • ConditionsContainer

      public ConditionsContainer(T conditions, AdvancementEntry advancementEntry, String id)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lap$a;<init>(Laq;Laf;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
      named <init> Lnet/minecraft/advancement/criterion/Criterion$ConditionsContainer;<init>(Lnet/minecraft/advancement/criterion/CriterionConditions;Lnet/minecraft/advancement/AdvancementEntry;Ljava/lang/String;)V
  • Method Details

    • grant

      public void grant(PlayerAdvancementTracker tracker)
      Mappings:
      Namespace Name Mixin selector
      official a Lap$a;a(Laho;)V
      intermediary method_796 Lnet/minecraft/class_179$class_180;method_796(Lnet/minecraft/class_2985;)V
      named grant Lnet/minecraft/advancement/criterion/Criterion$ConditionsContainer;grant(Lnet/minecraft/advancement/PlayerAdvancementTracker;)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