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