Record Class PacketSample

java.lang.Object
java.lang.Record
net.minecraft.util.profiling.jfr.sample.PacketSample
Record Components:
side -
protocolId -
packetId -

public record PacketSample(String side, String protocolId, String packetId) extends Record
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 Details

    • side

      private final String side
      The field for the side record component.
    • protocolId

      private final String protocolId
      The field for the protocolId record component.
    • packetId

      private final String packetId
      The field for the packetId record component.
  • Constructor Details

  • Method Details

    • fromEvent

      public static PacketSample fromEvent(RecordedEvent event)
      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

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • side

      public String side()
      Returns the value of the side record component.
      Returns:
      the value of the side record component
    • protocolId

      public String protocolId()
      Returns the value of the protocolId record component.
      Returns:
      the value of the protocolId record component
    • packetId

      public String packetId()
      Returns the value of the packetId record component.
      Returns:
      the value of the packetId record component