2013-12-28 22:03:20 +01:00
|
|
|
package appeng.container.implementations;
|
|
|
|
|
|
|
|
import net.minecraft.entity.player.InventoryPlayer;
|
|
|
|
import appeng.container.AEBaseContainer;
|
|
|
|
import appeng.container.slot.SlotFake;
|
|
|
|
import appeng.container.slot.SlotNormal;
|
|
|
|
import appeng.container.slot.SlotRestrictedInput;
|
|
|
|
import appeng.container.slot.SlotRestrictedInput.PlaceableItemType;
|
|
|
|
import appeng.tile.misc.TileInterface;
|
|
|
|
|
|
|
|
public class ContainerInterface extends AEBaseContainer
|
|
|
|
{
|
|
|
|
|
|
|
|
TileInterface myte;
|
|
|
|
|
|
|
|
public ContainerInterface(InventoryPlayer ip, TileInterface te) {
|
2014-01-02 06:51:41 +01:00
|
|
|
super( ip, te, null );
|
2013-12-28 22:03:20 +01:00
|
|
|
myte = te;
|
|
|
|
|
|
|
|
for (int x = 0; x < 8; x++)
|
2014-01-02 06:51:41 +01:00
|
|
|
addSlotToContainer( new SlotFake( myte.getConfig(), x, 17 + 18 * x, 35 ) );
|
2013-12-28 22:03:20 +01:00
|
|
|
|
|
|
|
for (int x = 0; x < 8; x++)
|
2014-01-02 06:51:41 +01:00
|
|
|
addSlotToContainer( new SlotNormal( myte, x, 17 + 18 * x, 35 + 18 ) );
|
2013-12-28 22:03:20 +01:00
|
|
|
|
|
|
|
for (int x = 0; x < 9; x++)
|
|
|
|
addSlotToContainer( new SlotRestrictedInput( PlaceableItemType.ENCODED_PATTERN, myte.getPatterns(), x, 8 + 18 * x, 90 + 7 ) );
|
|
|
|
|
|
|
|
bindPlayerInventory( ip, 0, 211 - /* height of playerinventory */82 );
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|