package net.minecraft.src;

import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;

public class Packet106 extends Packet {
	public int windowId;
	public short field_20028_b;
	public boolean field_20030_c;

	public Packet106() {
	}

	public Packet106(int var1, short var2, boolean var3) {
		this.windowId = var1;
		this.field_20028_b = var2;
		this.field_20030_c = var3;
	}

	public void processPacket(NetHandler var1) {
		var1.func_20089_a(this);
	}

	public void readPacketData(DataInputStream var1) throws IOException {
		this.windowId = var1.readByte();
		this.field_20028_b = var1.readShort();
		this.field_20030_c = var1.readByte() != 0;
	}

	public void writePacketData(DataOutputStream var1) throws IOException {
		var1.writeByte(this.windowId);
		var1.writeShort(this.field_20028_b);
		var1.writeByte(this.field_20030_c ? 1 : 0);
	}

	public int getPacketSize() {
		return 4;
	}
}
