Record Class DebugSubscriptionType.Value<T>

java.lang.Object
java.lang.Record
net.minecraft.world.debug.DebugSubscriptionType.Value<T>
Record Components:
subscription -
value -
Enclosing class:
DebugSubscriptionType<T>

public static record DebugSubscriptionType.Value<T>(DebugSubscriptionType<T> subscription, T value) extends Record
Mappings:
Namespace Name
named net/minecraft/world/debug/DebugSubscriptionType$Value
intermediary net/minecraft/class_12017$class_12018
official bwy$a
named subscription
intermediary comp_4871
official b
named value
intermediary comp_4872
official c
  • Field Details

    • subscription

      private final DebugSubscriptionType<T> subscription
      The field for the subscription record component.
    • value

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

      public static final PacketCodec<RegistryByteBuf,DebugSubscriptionType.Value<?>> PACKET_CODEC
      Mappings:
      Namespace Name Mixin selector
      named PACKET_CODEC Lnet/minecraft/world/debug/DebugSubscriptionType$Value;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_62867 Lnet/minecraft/class_12017$class_12018;field_62867:Lnet/minecraft/class_9139;
      official a Lbwy$a;a:Laat;
  • Constructor Details

    • Value

      public Value(DebugSubscriptionType<T> subscription, T value)
      Creates an instance of a Value record class.
      Parameters:
      subscription - the value for the subscription record component
      value - the value for the value record component
  • Method Details

    • createPacketCodec

      private static <T> PacketCodec<? super RegistryByteBuf,DebugSubscriptionType.Value<T>> createPacketCodec(DebugSubscriptionType<T> type)
      Mappings:
      Namespace Name Mixin selector
      named createPacketCodec Lnet/minecraft/world/debug/DebugSubscriptionType$Value;createPacketCodec(Lnet/minecraft/world/debug/DebugSubscriptionType;)Lnet/minecraft/network/codec/PacketCodec;
      intermediary method_74574 Lnet/minecraft/class_12017$class_12018;method_74574(Lnet/minecraft/class_12017;)Lnet/minecraft/class_9139;
      official a Lbwy$a;a(Lbwy;)Laat;
    • 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.
    • subscription

      public DebugSubscriptionType<T> subscription()
      Returns the value of the subscription record component.
      Returns:
      the value of the subscription record component
    • value

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