minecraft-src/net/minecraft/network/protocol/game/ServerboundConfigurationAcknowledgedPacket.java
2025-07-04 01:41:11 +03:00

28 lines
997 B
Java

package net.minecraft.network.protocol.game;
import io.netty.buffer.ByteBuf;
import net.minecraft.network.codec.StreamCodec;
import net.minecraft.network.protocol.Packet;
import net.minecraft.network.protocol.PacketType;
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 serverGamePacketListener) {
serverGamePacketListener.handleConfigurationAcknowledged(this);
}
@Override
public boolean isTerminal() {
return true;
}
}