GT5-Unofficial/src/main/java/gregtech/api/gui/GT_Container_4by4.java

43 lines
1.6 KiB
Java
Raw Normal View History

2015-04-23 18:14:22 +02:00
package gregtech.api.gui;
import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
import net.minecraft.entity.player.InventoryPlayer;
import net.minecraft.inventory.Slot;
public class GT_Container_4by4 extends GT_ContainerMetaTile_Machine {
2015-10-21 22:06:25 -04:00
public GT_Container_4by4(InventoryPlayer aInventoryPlayer, IGregTechTileEntity aTileEntity) {
super(aInventoryPlayer, aTileEntity);
}
@Override
2015-04-23 18:14:22 +02:00
public void addSlots(InventoryPlayer aInventoryPlayer) {
2015-10-21 22:06:25 -04:00
addSlotToContainer(new Slot(mTileEntity, 0, 53, 8));
addSlotToContainer(new Slot(mTileEntity, 1, 71, 8));
addSlotToContainer(new Slot(mTileEntity, 2, 89, 8));
addSlotToContainer(new Slot(mTileEntity, 3, 107, 8));
addSlotToContainer(new Slot(mTileEntity, 4, 53, 26));
addSlotToContainer(new Slot(mTileEntity, 5, 71, 26));
addSlotToContainer(new Slot(mTileEntity, 6, 89, 26));
addSlotToContainer(new Slot(mTileEntity, 7, 107, 26));
addSlotToContainer(new Slot(mTileEntity, 8, 53, 44));
addSlotToContainer(new Slot(mTileEntity, 9, 71, 44));
addSlotToContainer(new Slot(mTileEntity, 10, 89, 44));
addSlotToContainer(new Slot(mTileEntity, 11, 107, 44));
addSlotToContainer(new Slot(mTileEntity, 12, 53, 62));
addSlotToContainer(new Slot(mTileEntity, 13, 71, 62));
addSlotToContainer(new Slot(mTileEntity, 14, 89, 62));
addSlotToContainer(new Slot(mTileEntity, 15, 107, 62));
2015-04-23 18:14:22 +02:00
}
2015-10-21 22:06:25 -04:00
@Override
2015-04-23 18:14:22 +02:00
public int getSlotCount() {
2015-10-21 22:06:25 -04:00
return 16;
2015-04-23 18:14:22 +02:00
}
2015-10-21 22:06:25 -04:00
@Override
2015-04-23 18:14:22 +02:00
public int getShiftClickSlotCount() {
2015-10-21 22:06:25 -04:00
return 16;
2015-04-23 18:14:22 +02:00
}
}