Record Class PacketSample
java.lang.Object
java.lang.Record
net.minecraft.util.profiling.jfr.sample.PacketSample
- Record Components:
side-protocolId-packetId-
- Mappings:
Namespace Name official bkrintermediary net/minecraft/class_6769named net/minecraft/util/profiling/jfr/sample/PacketSampleofficial aintermediary comp_259named sideofficial bintermediary comp_260named protocolIdofficial cintermediary comp_261named packetId
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.static PacketSamplefromEvent(RecordedEvent event) final inthashCode()Returns a hash code value for this object.packetId()Returns the value of thepacketIdrecord component.Returns 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
The field for theprotocolIdrecord component. -
packetId
The field for thepacketIdrecord component.
-
-
Constructor Details
-
PacketSample
-
-
Method Details
-
fromEvent
- Mappings:
Namespace Name Mixin selector official aLbkr;a(Ljdk/jfr/consumer/RecordedEvent;)Lbkr;intermediary method_39447Lnet/minecraft/class_6769;method_39447(Ljdk/jfr/consumer/RecordedEvent;)Lnet/minecraft/class_6769;named fromEventLnet/minecraft/util/profiling/jfr/sample/PacketSample;fromEvent(Ljdk/jfr/consumer/RecordedEvent;)Lnet/minecraft/util/profiling/jfr/sample/PacketSample;
-
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). -
side
Returns the value of thesiderecord component.- Returns:
- the value of the
siderecord component
-
protocolId
Returns the value of theprotocolIdrecord component.- Returns:
- the value of the
protocolIdrecord component
-
packetId
Returns the value of thepacketIdrecord component.- Returns:
- the value of the
packetIdrecord component
-