@Override
  public void a(PacketDataSerializer packetdataserializer)
      throws IOException { // CraftBukkit - added throws
    a = packetdataserializer.a();
    UUID uuid = UUID.fromString(packetdataserializer.c(36));

    b = new GameProfile(uuid, packetdataserializer.c(16));
    int i = packetdataserializer.a();

    for (int j = 0; j < i; ++j) {
      String s = packetdataserializer.c(32767);
      String s1 = packetdataserializer.c(32767);
      String s2 = packetdataserializer.c(32767);

      b.getProperties().put(s, new Property(s, s1, s2));
    }

    c = packetdataserializer.readInt();
    d = packetdataserializer.readInt();
    e = packetdataserializer.readInt();
    f = packetdataserializer.readByte();
    g = packetdataserializer.readByte();
    h = packetdataserializer.readShort();
    j = DataWatcher.b(packetdataserializer);
  }
  public void decode(PacketDataSerializer var1) throws IOException {
    this.a = var1.readVarInt();
    this.b = var1.readByte();
    this.c = new class_ave[var1.readVarInt()];

    for (int var2 = 0; var2 < this.c.length; ++var2) {
      short var3 = (short) var1.readByte();
      this.c[var2] =
          new class_ave(
              (byte) (var3 >> 4 & 15), var1.readByte(), var1.readByte(), (byte) (var3 & 15));
    }

    this.f = var1.readUnsignedByte();
    if (this.f > 0) {
      this.g = var1.readUnsignedByte();
      this.d = var1.readUnsignedByte();
      this.e = var1.readUnsignedByte();
      this.h = var1.readArray();
    }
  }
Ejemplo n.º 3
0
  @Override
  public void decode(PacketDataSerializer var1) throws IOException {
    a = var1.readFloat();
    b = var1.readFloat();
    c = var1.readFloat();
    d = var1.readFloat();
    int var2 = var1.readInt();
    e = Lists.newArrayListWithCapacity(var2);
    int var3 = (int) a;
    int var4 = (int) b;
    int var5 = (int) c;

    for (int var6 = 0; var6 < var2; ++var6) {
      int var7 = var1.readByte() + var3;
      int var8 = var1.readByte() + var4;
      int var9 = var1.readByte() + var5;
      e.add(new class_cj(var7, var8, var9));
    }

    f = var1.readFloat();
    g = var1.readFloat();
    h = var1.readFloat();
  }
 public void a(PacketDataSerializer packetdataserializer) throws IOException {
   this.a = packetdataserializer.readByte();
 }