コード例 #1
0
 @Override
 public void write(NetOutput out) throws IOException {
   out.writeString(this.serverId);
   byte encoded[] = this.publicKey.getEncoded();
   out.writeVarInt(encoded.length);
   out.writeBytes(encoded);
   out.writeVarInt(this.verifyToken.length);
   out.writeBytes(this.verifyToken);
 }
コード例 #2
0
 @Override
 public void write(NetOutput out) throws IOException {
   out.writeString(this.channel);
   out.writeBytes(this.data);
 }