    001package net.minecraft.network.packet;
    002
    003import cpw.mods.fml.relauncher.Side;
    004import cpw.mods.fml.relauncher.SideOnly;
    005import java.io.DataInputStream;
    006import java.io.DataOutputStream;
    007import java.io.IOException;
    008
    009public class Packet63WorldParticles extends Packet
    010{
    011    private String field_98209_a;
    012    private float field_98207_b;
    013    private float field_98208_c;
    014    private float field_98205_d;
    015    private float field_98206_e;
    016    private float field_98203_f;
    017    private float field_98204_g;
    018    private float field_98210_h;
    019    private int field_98211_i;
    020
    021    /**
    022     * Abstract. Reads the raw packet data from the data stream.
    023     */
    024    public void readPacketData(DataInputStream par1DataInputStream) throws IOException
    025    {
    026        this.field_98209_a = readString(par1DataInputStream, 64);
    027        this.field_98207_b = par1DataInputStream.readFloat();
    028        this.field_98208_c = par1DataInputStream.readFloat();
    029        this.field_98205_d = par1DataInputStream.readFloat();
    030        this.field_98206_e = par1DataInputStream.readFloat();
    031        this.field_98203_f = par1DataInputStream.readFloat();
    032        this.field_98204_g = par1DataInputStream.readFloat();
    033        this.field_98210_h = par1DataInputStream.readFloat();
    034        this.field_98211_i = par1DataInputStream.readInt();
    035    }
    036
    037    /**
    038     * Abstract. Writes the raw packet data to the data stream.
    039     */
    040    public void writePacketData(DataOutputStream par1DataOutputStream) throws IOException
    041    {
    042        writeString(this.field_98209_a, par1DataOutputStream);
    043        par1DataOutputStream.writeFloat(this.field_98207_b);
    044        par1DataOutputStream.writeFloat(this.field_98208_c);
    045        par1DataOutputStream.writeFloat(this.field_98205_d);
    046        par1DataOutputStream.writeFloat(this.field_98206_e);
    047        par1DataOutputStream.writeFloat(this.field_98203_f);
    048        par1DataOutputStream.writeFloat(this.field_98204_g);
    049        par1DataOutputStream.writeFloat(this.field_98210_h);
    050        par1DataOutputStream.writeInt(this.field_98211_i);
    051    }
    052
    053    /**
    054     * Passes this Packet on to the NetHandler for processing.
    055     */
    056    public void processPacket(NetHandler par1NetHandler)
    057    {
    058        par1NetHandler.func_98182_a(this);
    059    }
    060
    061    /**
    062     * Abstract. Return the size of the packet (not counting the header).
    063     */
    064    public int getPacketSize()
    065    {
    066        return 64;
    067    }
    068
    069    @SideOnly(Side.CLIENT)
    070    public String func_98195_d()
    071    {
    072        return this.field_98209_a;
    073    }
    074
    075    @SideOnly(Side.CLIENT)
    076    public double func_98200_f()
    077    {
    078        return (double)this.field_98207_b;
    079    }
    080
    081    @SideOnly(Side.CLIENT)
    082    public double func_98194_g()
    083    {
    084        return (double)this.field_98208_c;
    085    }
    086
    087    @SideOnly(Side.CLIENT)
    088    public double func_98198_h()
    089    {
    090        return (double)this.field_98205_d;
    091    }
    092
    093    @SideOnly(Side.CLIENT)
    094    public float func_98196_i()
    095    {
    096        return this.field_98206_e;
    097    }
    098
    099    @SideOnly(Side.CLIENT)
    100    public float func_98201_j()
    101    {
    102        return this.field_98203_f;
    103    }
    104
    105    @SideOnly(Side.CLIENT)
    106    public float func_98199_k()
    107    {
    108        return this.field_98204_g;
    109    }
    110
    111    @SideOnly(Side.CLIENT)
    112    public float func_98197_l()
    113    {
    114        return this.field_98210_h;
    115    }
    116
    117    @SideOnly(Side.CLIENT)
    118    public int func_98202_m()
    119    {
    120        return this.field_98211_i;
    121    }
    122}