exporter can take up multiple slots

This commit is contained in:
Raoul Van den Berge
2015-12-19 00:58:47 +01:00
parent 2e9862d339
commit 8fc7eb8563
3 changed files with 4 additions and 2 deletions

View File

@@ -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);
} }

View File

@@ -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