/** Reads the raw packet data from the data stream. */
  public void readPacketData(PacketBuffer data) throws IOException {
    this.field_179751_a = EnumParticleTypes.func_179342_a(data.readInt());

    if (this.field_179751_a == null) {
      this.field_179751_a = EnumParticleTypes.BARRIER;
    }

    this.field_179752_j = data.readBoolean();
    this.field_149234_b = data.readFloat();
    this.field_149235_c = data.readFloat();
    this.field_149232_d = data.readFloat();
    this.field_149233_e = data.readFloat();
    this.field_149230_f = data.readFloat();
    this.field_149231_g = data.readFloat();
    this.field_149237_h = data.readFloat();
    this.field_149238_i = data.readInt();
    int var2 = this.field_179751_a.func_179345_d();
    this.field_179753_k = new int[var2];

    for (int var3 = 0; var3 < var2; ++var3) {
      this.field_179753_k[var3] = data.readVarIntFromBuffer();
    }
  }
Пример #2
0
 static {
   for (EnumParticleTypes enumparticletypes : values()) {
     PARTICLES.put(Integer.valueOf(enumparticletypes.getParticleID()), enumparticletypes);
     BY_NAME.put(enumparticletypes.getParticleName(), enumparticletypes);
   }
 }