Package net.minecraft

Record Class class_12322.class_12323

java.lang.Object
java.lang.Record
net.minecraft.class_12322.class_12323
Record Components:
player -
count -
All Implemented Interfaces:
AbstractCriterion.Conditions, CriterionConditions
Enclosing class:
class_12322

public static record class_12322.class_12323(Optional<LootContextPredicate> player, Optional<Integer> count) extends Record implements AbstractCriterion.Conditions
Mappings:
Namespace Name
named net/minecraft/class_12322$class_12323
intermediary net/minecraft/class_12322$class_12323
official dj$a
named player
intermediary comp_2029
official b
named count
intermediary comp_5218
official c
  • Field Details

    • player

      private final Optional<LootContextPredicate> player
      The field for the player record component.
    • count

      private final Optional<Integer> count
      The field for the count record component.
    • CODEC

      public static final com.mojang.serialization.Codec<class_12322.class_12323> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/class_12322$class_12323;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_64376 Lnet/minecraft/class_12322$class_12323;field_64376:Lcom/mojang/serialization/Codec;
      official a Ldj$a;a:Lcom/mojang/serialization/Codec;
  • Constructor Details

  • Method Details

    • method_76462

      public static AdvancementCriterion<class_12322.class_12323> method_76462(int int2)
      Mappings:
      Namespace Name Mixin selector
      named method_76462 Lnet/minecraft/class_12322$class_12323;method_76462(I)Lnet/minecraft/advancement/AdvancementCriterion;
      intermediary method_76462 Lnet/minecraft/class_12322$class_12323;method_76462(I)Lnet/minecraft/class_175;
      official a Ldj$a;a(I)Lak;
    • method_76464

      public boolean method_76464(int int2)
      Mappings:
      Namespace Name Mixin selector
      named method_76464 Lnet/minecraft/class_12322$class_12323;method_76464(I)Z
      intermediary method_76464 Lnet/minecraft/class_12322$class_12323;method_76464(I)Z
      official b Ldj$a;b(I)Z
    • 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 object)
      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:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • player

      public Optional<LootContextPredicate> player()
      Returns the value of the player record component.
      Specified by:
      player in interface AbstractCriterion.Conditions
      Returns:
      the value of the player record component
    • count

      public Optional<Integer> count()
      Returns the value of the count record component.
      Returns:
      the value of the count record component