public void write(PacketByteBuf out) throws IOException {
   out.writeInt(this.a);
   out.writeInt(this.b);
   out.writeBoolean(this.d);
   out.writeShort((short) (this.c.b & '\uffff'));
   out.writeByteArray(this.c.a);
 }
 public void read(PacketByteBuf in) throws IOException {
   this.a = in.readInt();
   this.b = in.readInt();
   this.d = in.readBoolean();
   this.c = new go$a();
   this.c.b = in.readShort();
   this.c.a = in.readByteArray();
 }
Example #3
0
  public void read(PacketByteBuf in) throws IOException {
    this.a = in.readString(16);
    this.h = in.readByte();
    if (this.h == 0 || this.h == 2) {
      this.b = in.readString(32);
      this.c = in.readString(16);
      this.d = in.readString(16);
      this.i = in.readByte();
      this.e = in.readString(32);
      this.f = in.readByte();
    }

    if (this.h == 0 || this.h == 3 || this.h == 4) {
      int var2 = in.readVarInt();

      for (int var3 = 0; var3 < var2; ++var3) {
        this.g.add(in.readString(40));
      }
    }
  }
Example #4
0
  public void write(PacketByteBuf out) throws IOException {
    out.writeString(this.a);
    out.writeByte(this.h);
    if (this.h == 0 || this.h == 2) {
      out.writeString(this.b);
      out.writeString(this.c);
      out.writeString(this.d);
      out.writeByte(this.i);
      out.writeString(this.e);
      out.writeByte(this.f);
    }

    if (this.h == 0 || this.h == 3 || this.h == 4) {
      out.writeVarInt(this.g.size());
      Iterator var2 = this.g.iterator();

      while (var2.hasNext()) {
        String var3 = (String) var2.next();
        out.writeString(var3);
      }
    }
  }
 public void write(PacketByteBuf out) throws IOException {
   out.writeByte(this.f ? 1 : 0);
 }
 public void read(PacketByteBuf in) throws IOException {
   this.f = in.readUnsignedByte() != 0;
 }