/* * Decompiled with CFR 0.152. */ package net.minecraft.network.protocol.handshake; import net.minecraft.network.ConnectionProtocol; import net.minecraft.network.FriendlyByteBuf; import net.minecraft.network.ProtocolInfo; import net.minecraft.network.protocol.ProtocolInfoBuilder; import net.minecraft.network.protocol.SimpleUnboundProtocol; import net.minecraft.network.protocol.handshake.ClientIntentionPacket; import net.minecraft.network.protocol.handshake.HandshakePacketTypes; import net.minecraft.network.protocol.handshake.ServerHandshakePacketListener; public class HandshakeProtocols { public static final SimpleUnboundProtocol SERVERBOUND_TEMPLATE = ProtocolInfoBuilder.serverboundProtocol(ConnectionProtocol.HANDSHAKING, builder -> builder.addPacket(HandshakePacketTypes.CLIENT_INTENTION, ClientIntentionPacket.STREAM_CODEC)); public static final ProtocolInfo SERVERBOUND = SERVERBOUND_TEMPLATE.bind(FriendlyByteBuf::new); }