package net.minecraft.network.packet;

import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;

public class Packet27PlayerInput extends Packet
{
    private float field_111017_a;
    private float field_111015_b;
    private boolean field_111016_c;
    private boolean field_111014_d;

    public Packet27PlayerInput() {}

    @SideOnly(Side.CLIENT)
    public Packet27PlayerInput(float par1, float par2, boolean par3, boolean par4)
    {
        this.field_111017_a = par1;
        this.field_111015_b = par2;
        this.field_111016_c = par3;
        this.field_111014_d = par4;
    }

    /**
     * Abstract. Reads the raw packet data from the data stream.
     */
    public void readPacketData(DataInput par1DataInput) throws IOException
    {
        this.field_111017_a = par1DataInput.readFloat();
        this.field_111015_b = par1DataInput.readFloat();
        this.field_111016_c = par1DataInput.readBoolean();
        this.field_111014_d = par1DataInput.readBoolean();
    }

    /**
     * Abstract. Writes the raw packet data to the data stream.
     */
    public void writePacketData(DataOutput par1DataOutput) throws IOException
    {
        par1DataOutput.writeFloat(this.field_111017_a);
        par1DataOutput.writeFloat(this.field_111015_b);
        par1DataOutput.writeBoolean(this.field_111016_c);
        par1DataOutput.writeBoolean(this.field_111014_d);
    }

    /**
     * Passes this Packet on to the NetHandler for processing.
     */
    public void processPacket(NetHandler par1NetHandler)
    {
        par1NetHandler.func_110774_a(this);
    }

    /**
     * Abstract. Return the size of the packet (not counting the header).
     */
    public int getPacketSize()
    {
        return 10;
    }

    public float func_111010_d()
    {
        return this.field_111017_a;
    }

    public float func_111012_f()
    {
        return this.field_111015_b;
    }

    public boolean func_111013_g()
    {
        return this.field_111016_c;
    }

    public boolean func_111011_h()
    {
        return this.field_111014_d;
    }
}
