PacketReceivedEvent.java

net.minecraft.util.profiling.jfr.event.PacketReceivedEvent

信息

  • 全限定名:net.minecraft.util.profiling.jfr.event.PacketReceivedEvent
  • 类型:public class
  • 包:net.minecraft.util.profiling.jfr.event
  • 源码路径:src/main/java/net/minecraft/util/profiling/jfr/event/PacketReceivedEvent.java
  • 起始行号:L10
  • 继承:PacketEvent
  • 职责:

    TODO

字段/常量

  • NAME

    • 类型: String
    • 修饰符: public static final
    • 源码定位: L11
    • 说明:

      TODO

  • TYPE

    • 类型: EventType
    • 修饰符: public static final
    • 源码定位: L12
    • 说明:

      TODO

内部类/嵌套类型

构造器

public PacketReceivedEvent(String protocolId, String packetDirection, String packetId, SocketAddress remoteAddress, int readableBytes) @ L14

  • 构造器名:PacketReceivedEvent
  • 源码定位:L14
  • 修饰符:public

参数:

  • protocolId: String
  • packetDirection: String
  • packetId: String
  • remoteAddress: SocketAddress
  • readableBytes: int

说明:

TODO

方法

下面的方法块按源码顺序生成。

代码

@Name("minecraft.PacketReceived")
@Label("Network Packet Received")
public class PacketReceivedEvent extends PacketEvent {
    public static final String NAME = "minecraft.PacketReceived";
    public static final EventType TYPE = EventType.getEventType(PacketReceivedEvent.class);
 
    public PacketReceivedEvent(String protocolId, String packetDirection, String packetId, SocketAddress remoteAddress, int readableBytes) {
        super(protocolId, packetDirection, packetId, remoteAddress, readableBytes);
    }
}

引用的其他类