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
  • 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 p_185419_, int p_185420_, SocketAddress p_185421_, int p_185422_)