/** Writes the raw packet data to the data stream. */
  public void writePacketData(PacketBuffer data) throws IOException {
    data.writeEnumValue(this.field_179795_a);

    switch (S44PacketWorldBorder.SwitchAction.field_179947_a[this.field_179795_a.ordinal()]) {
      case 1:
        data.writeDouble(this.field_179792_e);
        break;

      case 2:
        data.writeDouble(this.field_179789_f);
        data.writeDouble(this.field_179792_e);
        data.writeVarLong(this.field_179790_g);
        break;

      case 3:
        data.writeDouble(this.field_179794_c);
        data.writeDouble(this.field_179791_d);
        break;

      case 4:
        data.writeVarIntToBuffer(this.field_179797_i);
        break;

      case 5:
        data.writeVarIntToBuffer(this.field_179796_h);
        break;

      case 6:
        data.writeDouble(this.field_179794_c);
        data.writeDouble(this.field_179791_d);
        data.writeDouble(this.field_179789_f);
        data.writeDouble(this.field_179792_e);
        data.writeVarLong(this.field_179790_g);
        data.writeVarIntToBuffer(this.field_179793_b);
        data.writeVarIntToBuffer(this.field_179797_i);
        data.writeVarIntToBuffer(this.field_179796_h);
    }
  }
  /** Reads the raw packet data from the data stream. */
  public void readPacketData(PacketBuffer data) throws IOException {
    this.field_179795_a =
        (S44PacketWorldBorder.Action) data.readEnumValue(S44PacketWorldBorder.Action.class);

    switch (S44PacketWorldBorder.SwitchAction.field_179947_a[this.field_179795_a.ordinal()]) {
      case 1:
        this.field_179792_e = data.readDouble();
        break;

      case 2:
        this.field_179789_f = data.readDouble();
        this.field_179792_e = data.readDouble();
        this.field_179790_g = data.readVarLong();
        break;

      case 3:
        this.field_179794_c = data.readDouble();
        this.field_179791_d = data.readDouble();
        break;

      case 4:
        this.field_179797_i = data.readVarIntFromBuffer();
        break;

      case 5:
        this.field_179796_h = data.readVarIntFromBuffer();
        break;

      case 6:
        this.field_179794_c = data.readDouble();
        this.field_179791_d = data.readDouble();
        this.field_179789_f = data.readDouble();
        this.field_179792_e = data.readDouble();
        this.field_179790_g = data.readVarLong();
        this.field_179793_b = data.readVarIntFromBuffer();
        this.field_179797_i = data.readVarIntFromBuffer();
        this.field_179796_h = data.readVarIntFromBuffer();
    }
  }