2013-12-27 23:59:59 +01:00
|
|
|
package appeng.container.implementations;
|
|
|
|
|
|
|
|
import net.minecraft.entity.player.InventoryPlayer;
|
|
|
|
import appeng.container.AEBaseContainer;
|
|
|
|
import appeng.container.slot.SlotInaccessable;
|
|
|
|
import appeng.container.slot.SlotOutput;
|
|
|
|
import appeng.container.slot.SlotRestrictedInput;
|
|
|
|
import appeng.container.slot.SlotRestrictedInput.PlaceableItemType;
|
|
|
|
import appeng.tile.grindstone.TileGrinder;
|
|
|
|
|
|
|
|
public class ContainerGrinder extends AEBaseContainer
|
|
|
|
{
|
|
|
|
|
|
|
|
TileGrinder myte;
|
|
|
|
|
|
|
|
public ContainerGrinder(InventoryPlayer ip, TileGrinder te) {
|
2014-01-02 06:51:41 +01:00
|
|
|
super( ip, te, null );
|
2013-12-27 23:59:59 +01:00
|
|
|
myte = te;
|
|
|
|
|
2014-07-13 03:03:17 +02:00
|
|
|
addSlotToContainer( new SlotRestrictedInput( PlaceableItemType.ORE, te, 0, 12, 17, invPlayer ) );
|
|
|
|
addSlotToContainer( new SlotRestrictedInput( PlaceableItemType.ORE, te, 1, 12 + 18, 17, invPlayer ) );
|
|
|
|
addSlotToContainer( new SlotRestrictedInput( PlaceableItemType.ORE, te, 2, 12 + 36, 17, invPlayer ) );
|
2013-12-27 23:59:59 +01:00
|
|
|
|
|
|
|
addSlotToContainer( new SlotInaccessable( te, 6, 80, 40 ) );
|
|
|
|
|
|
|
|
addSlotToContainer( new SlotOutput( te, 3, 112, 63, 2 * 16 + 15 ) );
|
|
|
|
addSlotToContainer( new SlotOutput( te, 4, 112 + 18, 63, 2 * 16 + 15 ) );
|
|
|
|
addSlotToContainer( new SlotOutput( te, 5, 112 + 36, 63, 2 * 16 + 15 ) );
|
|
|
|
|
|
|
|
bindPlayerInventory( ip, 0, 176 - /* height of playerinventory */82 );
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|