Class PacketEvent

java.lang.Object
jdk.internal.event.Event
jdk.jfr.Event
net.minecraft.util.profiling.jfr.event.PacketEvent
Direct Known Subclasses:
PacketReceivedEvent, PacketSentEvent

public abstract class PacketEvent extends Event
Mappings:
Namespace Name
official awn
intermediary net/minecraft/class_6509
named net/minecraft/util/profiling/jfr/event/PacketEvent
  • Field Details

    • protocolId

      public final int protocolId
    • packetId

      public final int packetId
    • remoteAddress

      public final String remoteAddress
    • bytes

      public final int bytes
  • Constructor Details

    • PacketEvent

      public PacketEvent(int protocolId, int packetId, SocketAddress remoteAddress, int bytes)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lawn;<init>(IILjava/net/SocketAddress;I)V
      intermediary <init> Lnet/minecraft/class_6509;<init>(IILjava/net/SocketAddress;I)V
      named <init> Lnet/minecraft/util/profiling/jfr/event/PacketEvent;<init>(IILjava/net/SocketAddress;I)V