ServerboundClientTickEndPacket.java

net.minecraft.network.protocol.game.ServerboundClientTickEndPacket

信息

  • 全限定名:net.minecraft.network.protocol.game.ServerboundClientTickEndPacket
  • 类型:public record
  • 包:net.minecraft.network.protocol.game
  • 源码路径:src/main/java/net/minecraft/network/protocol/game/ServerboundClientTickEndPacket.java
  • 起始行号:L8
  • 实现:Packet
  • 职责:

    TODO

字段/常量

  • INSTANCE

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

      TODO

  • STREAM_CODEC

    • 类型: StreamCodec<ByteBuf,ServerboundClientTickEndPacket>
    • 修饰符: public static final
    • 源码定位: L10
    • 说明:

      TODO

内部类/嵌套类型

构造器

方法

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

public PacketType<ServerboundClientTickEndPacket> type() @ L12

  • 方法名:type
  • 源码定位:L12
  • 返回类型:PacketType
  • 修饰符:public

参数:

说明:

TODO

public void handle(ServerGamePacketListener listener) @ L17

  • 方法名:handle
  • 源码定位:L17
  • 返回类型:void
  • 修饰符:public

参数:

  • listener: ServerGamePacketListener

说明:

TODO

代码

public record ServerboundClientTickEndPacket() implements Packet<ServerGamePacketListener> {
    public static final ServerboundClientTickEndPacket INSTANCE = new ServerboundClientTickEndPacket();
    public static final StreamCodec<ByteBuf, ServerboundClientTickEndPacket> STREAM_CODEC = StreamCodec.unit(INSTANCE);
 
    @Override
    public PacketType<ServerboundClientTickEndPacket> type() {
        return GamePacketTypes.SERVERBOUND_CLIENT_TICK_END;
    }
 
    public void handle(ServerGamePacketListener listener) {
        listener.handleClientTickEnd(this);
    }
}

引用的其他类