package net.minecraft.network.play.client;

import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import java.io.IOException;
import net.minecraft.network.INetHandler;
import net.minecraft.network.Packet;
import net.minecraft.network.PacketBuffer;
import net.minecraft.network.play.INetHandlerPlayServer;

public class C07PacketPlayerDigging extends Packet
{
	private int field_149511_a;
	private int field_149509_b;
	private int field_149510_c;
	private int field_149507_d;
	private int field_149508_e;
	private static final String __OBFID = "CL_00001365";

	public C07PacketPlayerDigging() {}

	@SideOnly(Side.CLIENT)
	public C07PacketPlayerDigging(int p_i45258_1_, int p_i45258_2_, int p_i45258_3_, int p_i45258_4_, int p_i45258_5_)
	{
		this.field_149508_e = p_i45258_1_;
		this.field_149511_a = p_i45258_2_;
		this.field_149509_b = p_i45258_3_;
		this.field_149510_c = p_i45258_4_;
		this.field_149507_d = p_i45258_5_;
	}

	public void readPacketData(PacketBuffer p_148837_1_) throws IOException
	{
		this.field_149508_e = p_148837_1_.readUnsignedByte();
		this.field_149511_a = p_148837_1_.readInt();
		this.field_149509_b = p_148837_1_.readUnsignedByte();
		this.field_149510_c = p_148837_1_.readInt();
		this.field_149507_d = p_148837_1_.readUnsignedByte();
	}

	public void writePacketData(PacketBuffer p_148840_1_) throws IOException
	{
		p_148840_1_.writeByte(this.field_149508_e);
		p_148840_1_.writeInt(this.field_149511_a);
		p_148840_1_.writeByte(this.field_149509_b);
		p_148840_1_.writeInt(this.field_149510_c);
		p_148840_1_.writeByte(this.field_149507_d);
	}

	public void processPacket(INetHandlerPlayServer p_149504_1_)
	{
		p_149504_1_.processPlayerDigging(this);
	}

	public int func_149505_c()
	{
		return this.field_149511_a;
	}

	public int func_149503_d()
	{
		return this.field_149509_b;
	}

	public int func_149502_e()
	{
		return this.field_149510_c;
	}

	public int func_149501_f()
	{
		return this.field_149507_d;
	}

	public int func_149506_g()
	{
		return this.field_149508_e;
	}

	public void processPacket(INetHandler p_148833_1_)
	{
		this.processPacket((INetHandlerPlayServer)p_148833_1_);
	}
}