Package net.minecraft.world.debug
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$Valueintermediary net/minecraft/class_12017$class_12018official bvs$anamed subscriptionintermediary comp_4871official bnamed valueintermediary comp_4872official c
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PacketCodec<RegistryByteBuf, DebugSubscriptionType.Value<?>> private final DebugSubscriptionType<T> The field for thesubscriptionrecord component.private final TThe field for thevaluerecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static <T> PacketCodec<? super RegistryByteBuf, DebugSubscriptionType.Value<T>> createPacketCodec(DebugSubscriptionType<T> type) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thesubscriptionrecord component.final StringtoString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.
-
Field Details
-
subscription
The field for thesubscriptionrecord component. -
value
The field for thevaluerecord component. -
PACKET_CODEC
- Mappings:
Namespace Name Mixin selector named PACKET_CODECLnet/minecraft/world/debug/DebugSubscriptionType$Value;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;intermediary field_62867Lnet/minecraft/class_12017$class_12018;field_62867:Lnet/minecraft/class_9139;official aLbvs$a;a:Laae;
-
-
Constructor Details
-
Value
-
-
Method Details
-
createPacketCodec
private static <T> PacketCodec<? super RegistryByteBuf,DebugSubscriptionType.Value<T>> createPacketCodec(DebugSubscriptionType<T> type) - Mappings:
Namespace Name Mixin selector named createPacketCodecLnet/minecraft/world/debug/DebugSubscriptionType$Value;createPacketCodec(Lnet/minecraft/world/debug/DebugSubscriptionType;)Lnet/minecraft/network/codec/PacketCodec;intermediary method_74574Lnet/minecraft/class_12017$class_12018;method_74574(Lnet/minecraft/class_12017;)Lnet/minecraft/class_9139;official aLbvs$a;a(Lbvs;)Laae;
-
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. -
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. -
equals
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 withObjects::equals(Object,Object). -
subscription
Returns the value of thesubscriptionrecord component.- Returns:
- the value of the
subscriptionrecord component
-
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-