1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
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 {
public GT_Container_4by4(InventoryPlayer aInventoryPlayer, IGregTechTileEntity aTileEntity) {
super(aInventoryPlayer, aTileEntity);
}
@Override
public void addSlots(InventoryPlayer aInventoryPlayer) {
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));
}
@Override
public int getSlotCount() {
return 16;
}
@Override
public int getShiftClickSlotCount() {
return 16;
}
}
|