package org.allaymc.server.network.protocol.v1001;

import org.allaymc.server.network.protocol.ClientVariant;
import org.allaymc.server.network.protocol.PacketEncoder;
import org.allaymc.server.network.protocol.ProtocolData;
import org.allaymc.server.network.protocol.v975.Protocol_v975;
import org.cloudburstmc.protocol.bedrock.codec.BedrockCodec;
import org.cloudburstmc.protocol.bedrock.codec.v1001.Bedrock_v1001;

public class Protocol_v1001 extends Protocol_v975 {
    public Protocol_v1001() {
        this(Bedrock_v1001.CODEC, ClientVariant.INTERNATIONAL);
    }

    protected Protocol_v1001(BedrockCodec codec, ClientVariant variant) {
        super(codec, variant);
    }

    @Override
    protected PacketEncoder createEncoder(ProtocolData data) {
        return new PacketEncoder_v1001(data);
    }
}
