package net.minecraft.src;
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.

// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) braces deadcode 

import java.io.*;

public class Packet16BlockItemSwitch extends Packet {

	public Packet16BlockItemSwitch() {
	}

	public Packet16BlockItemSwitch(int i) {
		id = i;
	}

	public void readPacketData(DataInputStream datainputstream) throws IOException {
		id = datainputstream.readShort();
	}

	public void writePacketData(DataOutputStream dataoutputstream) throws IOException {
		dataoutputstream.writeShort(id);
	}

	public void processPacket(NetHandler nethandler) {
		nethandler.handleBlockItemSwitch(this);
	}

	public int getPacketSize() {
		return 2;
	}

	public int id;
}
