exporter can take up multiple slots
This commit is contained in:
@@ -8,7 +8,9 @@ public class ContainerExporter extends ContainerBase {
|
|||||||
public ContainerExporter(EntityPlayer player, TileExporter exporter) {
|
public ContainerExporter(EntityPlayer player, TileExporter exporter) {
|
||||||
super(player);
|
super(player);
|
||||||
|
|
||||||
addSlotToContainer(new SlotSpecimen(exporter, 0, 80, 20));
|
for (int i = 0; i < 9; ++i) {
|
||||||
|
addSlotToContainer(new SlotSpecimen(exporter, i, 8 + (18 * i), 20));
|
||||||
|
}
|
||||||
|
|
||||||
addPlayerInventory(8, 104);
|
addPlayerInventory(8, 104);
|
||||||
}
|
}
|
||||||
|
@@ -12,7 +12,7 @@ import storagecraft.util.InventoryUtils;
|
|||||||
public class TileExporter extends TileMachine implements IInventory {
|
public class TileExporter extends TileMachine implements IInventory {
|
||||||
public static final String NBT_COMPARE_FLAGS = "CompareFlags";
|
public static final String NBT_COMPARE_FLAGS = "CompareFlags";
|
||||||
|
|
||||||
private InventorySimple inventory = new InventorySimple("exporter", 1);
|
private InventorySimple inventory = new InventorySimple("exporter", 9);
|
||||||
|
|
||||||
private int compareFlags = 0;
|
private int compareFlags = 0;
|
||||||
|
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.8 KiB |
Reference in New Issue
Block a user