Package net.minecraft

Record Class class_9262<T>

java.lang.Object
java.lang.Record
net.minecraft.class_9262<T>
Record Components:
raw -
filtered -

public record class_9262<T>(T raw, Optional<T> filtered) extends Record
Mappings:
Namespace Name
official aqj
intermediary net/minecraft/class_9262
named net/minecraft/class_9262
official a
intermediary comp_2369
named raw
official b
intermediary comp_2370
named filtered
  • Field Details

    • raw

      private final T raw
      The field for the raw record component.
    • filtered

      private final Optional<T> filtered
      The field for the filtered record component.
  • Constructor Details

    • class_9262

      public class_9262(T t, Optional<T> optional)
  • Method Details

    • method_57135

      public static <T> com.mojang.serialization.Codec<class_9262<T>> method_57135(com.mojang.serialization.Codec<T> codec)
      Mappings:
      Namespace Name Mixin selector
      official a Laqj;a(Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;
      intermediary method_57135 Lnet/minecraft/class_9262;method_57135(Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;
      named method_57135 Lnet/minecraft/class_9262;method_57135(Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;
    • method_57139

      public static <B extends ByteBuf, T> PacketCodec<B,class_9262<T>> method_57139(PacketCodec<B,T> packetCodec)
      Mappings:
      Namespace Name Mixin selector
      official a Laqj;a(Lye;)Lye;
      intermediary method_57139 Lnet/minecraft/class_9262;method_57139(Lnet/minecraft/class_9139;)Lnet/minecraft/class_9139;
      named method_57139 Lnet/minecraft/class_9262;method_57139(Lnet/minecraft/network/codec/PacketCodec;)Lnet/minecraft/network/codec/PacketCodec;
    • method_57137

      public static <T> class_9262<T> method_57137(T t)
      Mappings:
      Namespace Name Mixin selector
      official a Laqj;a(Ljava/lang/Object;)Laqj;
      intermediary method_57137 Lnet/minecraft/class_9262;method_57137(Ljava/lang/Object;)Lnet/minecraft/class_9262;
      named method_57137 Lnet/minecraft/class_9262;method_57137(Ljava/lang/Object;)Lnet/minecraft/class_9262;
    • method_57134

      public static class_9262<String> method_57134(FilteredMessage filteredMessage)
      Mappings:
      Namespace Name Mixin selector
      official a Laqj;a(Laqk;)Laqj;
      intermediary method_57134 Lnet/minecraft/class_9262;method_57134(Lnet/minecraft/class_5837;)Lnet/minecraft/class_9262;
      named method_57134 Lnet/minecraft/class_9262;method_57134(Lnet/minecraft/server/filter/FilteredMessage;)Lnet/minecraft/class_9262;
    • method_57140

      public T method_57140(boolean bool)
      Mappings:
      Namespace Name Mixin selector
      official a Laqj;a(Z)Ljava/lang/Object;
      intermediary method_57140 Lnet/minecraft/class_9262;method_57140(Z)Ljava/lang/Object;
      named method_57140 Lnet/minecraft/class_9262;method_57140(Z)Ljava/lang/Object;
    • method_57138

      public <U> class_9262<U> method_57138(Function<T,U> function)
      Mappings:
      Namespace Name Mixin selector
      official a Laqj;a(Ljava/util/function/Function;)Laqj;
      intermediary method_57138 Lnet/minecraft/class_9262;method_57138(Ljava/util/function/Function;)Lnet/minecraft/class_9262;
      named method_57138 Lnet/minecraft/class_9262;method_57138(Ljava/util/function/Function;)Lnet/minecraft/class_9262;
    • method_57141

      public <U> Optional<class_9262<U>> method_57141(Function<T,Optional<U>> function)
      Mappings:
      Namespace Name Mixin selector
      official b Laqj;b(Ljava/util/function/Function;)Ljava/util/Optional;
      intermediary method_57141 Lnet/minecraft/class_9262;method_57141(Ljava/util/function/Function;)Ljava/util/Optional;
      named method_57141 Lnet/minecraft/class_9262;method_57141(Ljava/util/function/Function;)Ljava/util/Optional;
    • 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.
    • raw

      public T raw()
      Returns the value of the raw record component.
      Returns:
      the value of the raw record component
    • filtered

      public Optional<T> filtered()
      Returns the value of the filtered record component.
      Returns:
      the value of the filtered record component