importer block
This commit is contained in:
17
src/main/java/storagecraft/inventory/ContainerImporter.java
Normal file
17
src/main/java/storagecraft/inventory/ContainerImporter.java
Normal file
@@ -0,0 +1,17 @@
|
||||
package storagecraft.inventory;
|
||||
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import storagecraft.inventory.slot.SlotSpecimen;
|
||||
import storagecraft.tile.TileImporter;
|
||||
|
||||
public class ContainerImporter extends ContainerSC {
|
||||
public ContainerImporter(EntityPlayer player, TileImporter importer) {
|
||||
super(player);
|
||||
|
||||
for (int i = 0; i < 9; ++i) {
|
||||
addSlotToContainer(new SlotSpecimen(importer, i, 8 + (18 * i), 20));
|
||||
}
|
||||
|
||||
addPlayerInventory(8, 100);
|
||||
}
|
||||
}
|
||||
11
src/main/java/storagecraft/inventory/slot/SlotSpecimen.java
Normal file
11
src/main/java/storagecraft/inventory/slot/SlotSpecimen.java
Normal file
@@ -0,0 +1,11 @@
|
||||
package storagecraft.inventory.slot;
|
||||
|
||||
import net.minecraft.inventory.IInventory;
|
||||
import net.minecraft.inventory.Slot;
|
||||
|
||||
// @TODO: Correct behaviour
|
||||
public class SlotSpecimen extends Slot {
|
||||
public SlotSpecimen(IInventory inventory, int id, int x, int y) {
|
||||
super(inventory, id, x, y);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user