PacketSentEvent.java

net.minecraft.util.profiling.jfr.event.PacketSentEvent

信息

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

    TODO

字段/常量

  • NAME

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

      TODO

  • TYPE

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

      TODO

内部类/嵌套类型

构造器

public PacketSentEvent(String protocolId, String packetDirection, String packetId, SocketAddress remoteAddress, int writtenBytes) @ L14

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

参数:

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

说明:

TODO

方法

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

代码

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

引用的其他类