Record Class PacketSample
java.lang.Object
java.lang.Record
net.minecraft.util.profiling.jfr.sample.PacketSample
- Record Components:
side
-protocolId
-packetId
-
- Mappings:
Namespace Name named net/minecraft/util/profiling/jfr/sample/PacketSample
intermediary net/minecraft/class_6769
official boj
named side
intermediary comp_259
official a
named protocolId
intermediary comp_260
official b
named packetId
intermediary comp_261
official c
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.static PacketSample
fromEvent
(RecordedEvent event) final int
hashCode()
Returns a hash code value for this object.packetId()
Returns the value of thepacketId
record component.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
The field for theprotocolId
record component. -
packetId
The field for thepacketId
record component.
-
-
Constructor Details
-
PacketSample
-
-
Method Details
-
fromEvent
- Mappings:
Namespace Name Mixin selector named fromEvent
Lnet/minecraft/util/profiling/jfr/sample/PacketSample;fromEvent(Ljdk/jfr/consumer/RecordedEvent;)Lnet/minecraft/util/profiling/jfr/sample/PacketSample;
intermediary method_39447
Lnet/minecraft/class_6769;method_39447(Ljdk/jfr/consumer/RecordedEvent;)Lnet/minecraft/class_6769;
official a
Lboj;a(Ljdk/jfr/consumer/RecordedEvent;)Lboj;
-
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 theside
record component.- Returns:
- the value of the
side
record component
-
protocolId
Returns the value of theprotocolId
record component.- Returns:
- the value of the
protocolId
record component
-
packetId
Returns the value of thepacketId
record component.- Returns:
- the value of the
packetId
record component
-