package net.minecraft.src;

public class CraftingInventoryDispenserCB extends CraftingInventoryCB {
	private TileEntityDispenser field_21149_a;

	public CraftingInventoryDispenserCB(IInventory var1, TileEntityDispenser var2) {
		this.field_21149_a = var2;

		int var3;
		int var4;
		for(var3 = 0; var3 < 3; ++var3) {
			for(var4 = 0; var4 < 3; ++var4) {
				this.addSlot(new Slot(var2, var4 + var3 * 3, 61 + var4 * 18, 17 + var3 * 18));
			}
		}

		for(var3 = 0; var3 < 3; ++var3) {
			for(var4 = 0; var4 < 9; ++var4) {
				this.addSlot(new Slot(var1, var4 + var3 * 9 + 9, 8 + var4 * 18, 84 + var3 * 18));
			}
		}

		for(var3 = 0; var3 < 9; ++var3) {
			this.addSlot(new Slot(var1, var3, 8 + var3 * 18, 142));
		}

	}

	public boolean isUsableByPlayer(EntityPlayer var1) {
		return this.field_21149_a.canInteractWith(var1);
	}
}
