public PacketClientInfo(String name, String version) { super( new byte[name.length() + 1 + (version.length() + 1)], Packet.getPacketId(PacketClientInfo.class)); setClientName(name); setGameVersion(version); }
public PacketClientInfo(byte[] data) { super(data, Packet.getPacketId(PacketClientInfo.class)); setClientName(readString(0)); setGameVersion(readString(clientName.length() + 1)); }