Record Class ListOperation.Values<T>

java.lang.Object
java.lang.Record
net.minecraft.util.collection.ListOperation.Values<T>
Record Components:
value -
operation -
Enclosing interface:
ListOperation

public static record ListOperation.Values<T>(List<T> value, ListOperation operation) extends Record
Mappings:
Namespace Name
named net/minecraft/util/collection/ListOperation$Values
intermediary net/minecraft/class_9368$class_9677
official eya$e
named value
intermediary comp_2651
official a
named operation
intermediary comp_2652
official b
  • Field Details

    • value

      private final List<T> value
      The field for the value record component.
    • operation

      private final ListOperation operation
      The field for the operation record component.
  • Constructor Details

  • Method Details

    • createCodec

      public static <T> com.mojang.serialization.Codec<ListOperation.Values<T>> createCodec(com.mojang.serialization.Codec<T> codec, int maxSize)
      Mappings:
      Namespace Name Mixin selector
      named createCodec Lnet/minecraft/util/collection/ListOperation$Values;createCodec(Lcom/mojang/serialization/Codec;I)Lcom/mojang/serialization/Codec;
      intermediary method_59828 Lnet/minecraft/class_9368$class_9677;method_59828(Lcom/mojang/serialization/Codec;I)Lcom/mojang/serialization/Codec;
      official a Leya$e;a(Lcom/mojang/serialization/Codec;I)Lcom/mojang/serialization/Codec;
    • apply

      public List<T> apply(List<T> current)
      Mappings:
      Namespace Name Mixin selector
      named apply Lnet/minecraft/util/collection/ListOperation$Values;apply(Ljava/util/List;)Ljava/util/List;
      intermediary method_59831 Lnet/minecraft/class_9368$class_9677;method_59831(Ljava/util/List;)Ljava/util/List;
      official a Leya$e;a(Ljava/util/List;)Ljava/util/List;
    • 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.
    • value

      public List<T> value()
      Returns the value of the value record component.
      Returns:
      the value of the value record component
    • operation

      public ListOperation operation()
      Returns the value of the operation record component.
      Returns:
      the value of the operation record component