--- a/net/minecraft/network/protocol/handshake/ClientIntentionPacket.java
+++ b/net/minecraft/network/protocol/handshake/ClientIntentionPacket.java
@@ -1,3 +1,4 @@
+// mc-dev import
 package net.minecraft.network.protocol.handshake;
 
 import net.minecraft.network.FriendlyByteBuf;
@@ -6,21 +7,13 @@
 import net.minecraft.network.protocol.PacketType;
 
 public record ClientIntentionPacket(int protocolVersion, String hostName, int port, ClientIntent intention) implements Packet<ServerHandshakePacketListener> {
-    public static final StreamCodec<FriendlyByteBuf, ClientIntentionPacket> STREAM_CODEC = Packet.codec(
-        ClientIntentionPacket::write, ClientIntentionPacket::new
-    );
-    private static final int MAX_HOST_LENGTH = 255;
 
-    @Deprecated
-    public ClientIntentionPacket(int protocolVersion, String hostName, int port, ClientIntent intention) {
-        this.protocolVersion = protocolVersion;
-        this.hostName = hostName;
-        this.port = port;
-        this.intention = intention;
-    }
+    public static final StreamCodec<FriendlyByteBuf, ClientIntentionPacket> STREAM_CODEC = Packet.codec(ClientIntentionPacket::write, ClientIntentionPacket::new);
+    private static final int MAX_HOST_LENGTH = 255;
 
     private ClientIntentionPacket(FriendlyByteBuf buf) {
-        this(buf.readVarInt(), buf.readUtf(255), buf.readUnsignedShort(), ClientIntent.byId(buf.readVarInt()));
+        // Spigot - increase max hostName length
+        this(buf.readVarInt(), buf.readUtf(Short.MAX_VALUE), buf.readUnsignedShort(), ClientIntent.byId(buf.readVarInt()));
     }
 
     private void write(FriendlyByteBuf buf) {
@@ -35,7 +28,6 @@
         return HandshakePacketTypes.CLIENT_INTENTION;
     }
 
-    @Override
     public void handle(ServerHandshakePacketListener listener) {
         listener.handleIntention(this);
     }
