Record Class NetworkIoStatistics.Packet
java.lang.Object
java.lang.Record
net.minecraft.util.profiling.jfr.sample.NetworkIoStatistics.Packet
- Record Components:
side
-protocolId
-packetId
-
- Enclosing class:
NetworkIoStatistics
public static record NetworkIoStatistics.Packet(NetworkSide side, int protocolId, int packetId)
extends Record
- Mappings:
Namespace Name official bbh$b
intermediary net/minecraft/class_6767$class_6769
named net/minecraft/util/profiling/jfr/sample/NetworkIoStatistics$Packet
official a
intermediary comp_259
named side
official b
intermediary comp_260
named protocolId
official c
intermediary comp_261
named packetId
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final Map<NetworkIoStatistics.Packet,
String> private final int
The field for thepacketId
record component.private final int
The field for theprotocolId
record component.private final NetworkSide
The field for theside
record component. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.static NetworkIoStatistics.Packet
fromEvent
(RecordedEvent event) getName()
final int
hashCode()
Returns a hash code value for this object.int
packetId()
Returns the value of thepacketId
record component.int
Returns the value of theprotocolId
record component.side()
Returns the value of theside
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
side
The field for theside
record component. -
protocolId
private final int protocolIdThe field for theprotocolId
record component. -
packetId
private final int packetIdThe field for thepacketId
record component. -
PACKET_TO_NAME
- Mappings:
Namespace Name Mixin selector official d
Lbbh$b;d:Ljava/util/Map;
intermediary field_35587
Lnet/minecraft/class_6767$class_6769;field_35587:Ljava/util/Map;
named PACKET_TO_NAME
Lnet/minecraft/util/profiling/jfr/sample/NetworkIoStatistics$Packet;PACKET_TO_NAME:Ljava/util/Map;
-
-
Constructor Details
-
Packet
-
-
Method Details
-
getName
- Mappings:
Namespace Name Mixin selector official a
Lbbh$b;a()Ljava/lang/String;
intermediary method_39445
Lnet/minecraft/class_6767$class_6769;method_39445()Ljava/lang/String;
named getName
Lnet/minecraft/util/profiling/jfr/sample/NetworkIoStatistics$Packet;getName()Ljava/lang/String;
-
fromEvent
- Mappings:
Namespace Name Mixin selector official a
Lbbh$b;a(Ljdk/jfr/consumer/RecordedEvent;)Lbbh$b;
intermediary method_39447
Lnet/minecraft/class_6767$class_6769;method_39447(Ljdk/jfr/consumer/RecordedEvent;)Lnet/minecraft/class_6767$class_6769;
named fromEvent
Lnet/minecraft/util/profiling/jfr/sample/NetworkIoStatistics$Packet;fromEvent(Ljdk/jfr/consumer/RecordedEvent;)Lnet/minecraft/util/profiling/jfr/sample/NetworkIoStatistics$Packet;
-
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
side
Returns the value of theside
record component.- Returns:
- the value of the
side
record component
-
protocolId
public int protocolId()Returns the value of theprotocolId
record component.- Returns:
- the value of the
protocolId
record component
-
packetId
public int packetId()Returns the value of thepacketId
record component.- Returns:
- the value of the
packetId
record component
-