Record Class PlayerUnlocksPredicate

java.lang.Object
java.lang.Record
net.minecraft.predicate.entity.PlayerUnlocksPredicate
Record Components:
unlocked -
locked -
All Implemented Interfaces:
Predicate<ServerPlayerEntity>

public record PlayerUnlocksPredicate(List<RegistryEntry<PlayerUnlock>> unlocked, List<RegistryEntry<PlayerUnlock>> locked) extends Record implements Predicate<ServerPlayerEntity>
Mappings:
Namespace Name
named net/minecraft/predicate/entity/PlayerUnlocksPredicate
intermediary net/minecraft/class_11068
official dy
named unlocked
intermediary comp_3949
official c
named locked
intermediary comp_3950
official d
  • Field Details

    • unlocked

      private final List<RegistryEntry<PlayerUnlock>> unlocked
      The field for the unlocked record component.
    • locked

      private final List<RegistryEntry<PlayerUnlock>> locked
      The field for the locked record component.
    • CODEC

      public static final com.mojang.serialization.Codec<PlayerUnlocksPredicate> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/predicate/entity/PlayerUnlocksPredicate;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_58940 Lnet/minecraft/class_11068;field_58940:Lcom/mojang/serialization/Codec;
      official a Ldy;a:Lcom/mojang/serialization/Codec;
    • EMPTY

      public static final PlayerUnlocksPredicate EMPTY
      Mappings:
      Namespace Name Mixin selector
      named EMPTY Lnet/minecraft/predicate/entity/PlayerUnlocksPredicate;EMPTY:Lnet/minecraft/predicate/entity/PlayerUnlocksPredicate;
      intermediary field_58941 Lnet/minecraft/class_11068;field_58941:Lnet/minecraft/class_11068;
      official b Ldy;b:Ldy;
  • Constructor Details

  • Method Details

    • test

      public boolean test(ServerPlayerEntity serverPlayerEntity)
      Specified by:
      test in interface Predicate<ServerPlayerEntity>
      Mappings:
      Namespace Name Mixin selector
      named test Lnet/minecraft/predicate/entity/PlayerUnlocksPredicate;test(Lnet/minecraft/server/network/ServerPlayerEntity;)Z
      intermediary method_69721 Lnet/minecraft/class_11068;method_69721(Lnet/minecraft/class_3222;)Z
      official a Ldy;a(Lasu;)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.
    • unlocked

      public List<RegistryEntry<PlayerUnlock>> unlocked()
      Returns the value of the unlocked record component.
      Returns:
      the value of the unlocked record component
    • locked

      public List<RegistryEntry<PlayerUnlock>> locked()
      Returns the value of the locked record component.
      Returns:
      the value of the locked record component