Package net.minecraft

Record Class class_9336<T>

java.lang.Object
java.lang.Record
net.minecraft.class_9336<T>
Record Components:
type -
value -

public record class_9336<T>(class_9331<T> type, T value) extends Record
Mappings:
Namespace Name
official jr
intermediary net/minecraft/class_9336
named net/minecraft/class_9336
official b
intermediary comp_2443
named type
official c
intermediary comp_2444
named value
  • Field Details

    • type

      private final class_9331<T> type
      The field for the type record component.
    • value

      private final T value
      The field for the value record component.
    • field_49657

      public static final PacketCodec<RegistryByteBuf,class_9336<?>> field_49657
      Mappings:
      Namespace Name Mixin selector
      official a Ljr;a:Lye;
      intermediary field_49657 Lnet/minecraft/class_9336;field_49657:Lnet/minecraft/class_9139;
      named field_49657 Lnet/minecraft/class_9336;field_49657:Lnet/minecraft/network/codec/PacketCodec;
  • Constructor Details

    • class_9336

      public class_9336(class_9331<T> class_9331, T t)
  • Method Details

    • method_57944

      static class_9336<?> method_57944(Map.Entry<class_9331<?>,Object> entry)
      Mappings:
      Namespace Name Mixin selector
      official a Ljr;a(Ljava/util/Map$Entry;)Ljr;
      intermediary method_57944 Lnet/minecraft/class_9336;method_57944(Ljava/util/Map$Entry;)Lnet/minecraft/class_9336;
      named method_57944 Lnet/minecraft/class_9336;method_57944(Ljava/util/Map$Entry;)Lnet/minecraft/class_9336;
    • method_57945

      static <T> class_9336<T> method_57945(class_9331<T> class_9331, Object object)
      Mappings:
      Namespace Name Mixin selector
      official a Ljr;a(Ljo;Ljava/lang/Object;)Ljr;
      intermediary method_57945 Lnet/minecraft/class_9336;method_57945(Lnet/minecraft/class_9331;Ljava/lang/Object;)Lnet/minecraft/class_9336;
      named method_57945 Lnet/minecraft/class_9336;method_57945(Lnet/minecraft/class_9331;Ljava/lang/Object;)Lnet/minecraft/class_9336;
    • method_57946

      public void method_57946(class_9335 class_9335)
      Mappings:
      Namespace Name Mixin selector
      official a Ljr;a(Ljq;)V
      intermediary method_57946 Lnet/minecraft/class_9336;method_57946(Lnet/minecraft/class_9335;)V
      named method_57946 Lnet/minecraft/class_9336;method_57946(Lnet/minecraft/class_9335;)V
    • method_57943

      public <D> com.mojang.serialization.DataResult<D> method_57943(com.mojang.serialization.DynamicOps<D> dynamicOps)
      Mappings:
      Namespace Name Mixin selector
      official a Ljr;a(Lcom/mojang/serialization/DynamicOps;)Lcom/mojang/serialization/DataResult;
      intermediary method_57943 Lnet/minecraft/class_9336;method_57943(Lcom/mojang/serialization/DynamicOps;)Lcom/mojang/serialization/DataResult;
      named method_57943 Lnet/minecraft/class_9336;method_57943(Lcom/mojang/serialization/DynamicOps;)Lcom/mojang/serialization/DataResult;
    • toString

      public 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.
    • type

      public class_9331<T> type()
      Returns the value of the type record component.
      Returns:
      the value of the type record component
    • value

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