Record Class PlayerPredicate.CompletedAdvancementPredicate

java.lang.Object
java.lang.Record
net.minecraft.predicate.entity.PlayerPredicate.CompletedAdvancementPredicate
Record Components:
done -
All Implemented Interfaces:
Predicate<AdvancementProgress>, PlayerPredicate.AdvancementPredicate
Enclosing class:
PlayerPredicate

private static record PlayerPredicate.CompletedAdvancementPredicate(boolean done) extends Record implements PlayerPredicate.AdvancementPredicate
Mappings:
Namespace Name
named net/minecraft/predicate/entity/PlayerPredicate$CompletedAdvancementPredicate
intermediary net/minecraft/class_4553$class_4555
official dk$b
named done
intermediary comp_1824
official c
  • Field Details

    • done

      private final boolean done
      The field for the done record component.
    • CODEC

      public static final com.mojang.serialization.Codec<PlayerPredicate.CompletedAdvancementPredicate> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/predicate/entity/PlayerPredicate$CompletedAdvancementPredicate;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_45772 Lnet/minecraft/class_4553$class_4555;field_45772:Lcom/mojang/serialization/Codec;
      official a Ldk$b;a:Lcom/mojang/serialization/Codec;
  • Constructor Details

    • CompletedAdvancementPredicate

      CompletedAdvancementPredicate(boolean done)
      Creates an instance of a CompletedAdvancementPredicate record class.
      Parameters:
      done - the value for the done record component
  • Method Details

    • test

      public boolean test(AdvancementProgress advancementProgress)
      Specified by:
      test in interface Predicate<AdvancementProgress>
      Mappings:
      Namespace Name Mixin selector
      named test Lnet/minecraft/predicate/entity/PlayerPredicate$CompletedAdvancementPredicate;test(Lnet/minecraft/advancement/AdvancementProgress;)Z
      intermediary method_22505 Lnet/minecraft/class_4553$class_4555;method_22505(Lnet/minecraft/class_167;)Z
      official a Ldk$b;a(Lah;)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 '=='.
      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.
    • done

      public boolean done()
      Returns the value of the done record component.
      Returns:
      the value of the done record component