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 bbj$bintermediary net/minecraft/class_6767$class_6769named net/minecraft/util/profiling/jfr/sample/NetworkIoStatistics$Packetofficial aintermediary comp_259named sideofficial bintermediary comp_260named protocolIdofficial cintermediary comp_261named packetId
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Map<NetworkIoStatistics.Packet,String> private final intThe field for thepacketIdrecord component.private final intThe field for theprotocolIdrecord component.private final NetworkSideThe field for thesiderecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.static NetworkIoStatistics.PacketfromEvent(RecordedEvent event) getName()final inthashCode()Returns a hash code value for this object.intpacketId()Returns the value of thepacketIdrecord component.intReturns the value of theprotocolIdrecord component.side()Returns the value of thesiderecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
side
The field for thesiderecord component. -
protocolId
private final int protocolIdThe field for theprotocolIdrecord component. -
packetId
private final int packetIdThe field for thepacketIdrecord component. -
PACKET_TO_NAME
- Mappings:
Namespace Name Mixin selector official dLbbj$b;d:Ljava/util/Map;intermediary field_35587Lnet/minecraft/class_6767$class_6769;field_35587:Ljava/util/Map;named PACKET_TO_NAMELnet/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 aLbbj$b;a()Ljava/lang/String;intermediary method_39445Lnet/minecraft/class_6767$class_6769;method_39445()Ljava/lang/String;named getNameLnet/minecraft/util/profiling/jfr/sample/NetworkIoStatistics$Packet;getName()Ljava/lang/String;
-
fromEvent
- Mappings:
Namespace Name Mixin selector official aLbbj$b;a(Ljdk/jfr/consumer/RecordedEvent;)Lbbj$b;intermediary method_39447Lnet/minecraft/class_6767$class_6769;method_39447(Ljdk/jfr/consumer/RecordedEvent;)Lnet/minecraft/class_6767$class_6769;named fromEventLnet/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 thesiderecord component.- Returns:
- the value of the
siderecord component
-
protocolId
public int protocolId()Returns the value of theprotocolIdrecord component.- Returns:
- the value of the
protocolIdrecord component
-
packetId
public int packetId()Returns the value of thepacketIdrecord component.- Returns:
- the value of the
packetIdrecord component
-