ServerboundConfigurationAcknowledgedPacket.java

net.minecraft.network.protocol.game.ServerboundConfigurationAcknowledgedPacket

信息

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

    TODO

字段/常量

  • INSTANCE

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

      TODO

  • STREAM_CODEC

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

      TODO

内部类/嵌套类型

构造器

private ServerboundConfigurationAcknowledgedPacket() @ L12

  • 构造器名:ServerboundConfigurationAcknowledgedPacket
  • 源码定位:L12
  • 修饰符:private

参数:

说明:

TODO

方法

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

public PacketType<ServerboundConfigurationAcknowledgedPacket> type() @ L15

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

参数:

说明:

TODO

public void handle(ServerGamePacketListener listener) @ L20

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

参数:

  • listener: ServerGamePacketListener

说明:

TODO

public boolean isTerminal() @ L24

  • 方法名:isTerminal
  • 源码定位:L24
  • 返回类型:boolean
  • 修饰符:public

参数:

说明:

TODO

代码

public class ServerboundConfigurationAcknowledgedPacket implements Packet<ServerGamePacketListener> {
    public static final ServerboundConfigurationAcknowledgedPacket INSTANCE = new ServerboundConfigurationAcknowledgedPacket();
    public static final StreamCodec<ByteBuf, ServerboundConfigurationAcknowledgedPacket> STREAM_CODEC = StreamCodec.unit(INSTANCE);
 
    private ServerboundConfigurationAcknowledgedPacket() {
    }
 
    @Override
    public PacketType<ServerboundConfigurationAcknowledgedPacket> type() {
        return GamePacketTypes.SERVERBOUND_CONFIGURATION_ACKNOWLEDGED;
    }
 
    public void handle(ServerGamePacketListener listener) {
        listener.handleConfigurationAcknowledged(this);
    }
 
    @Override
    public boolean isTerminal() {
        return true;
    }
}

引用的其他类