move classes to other package

This commit is contained in:
Raoul Van den Berge
2015-12-18 03:56:25 +01:00
parent bc7aca642b
commit 9cd5f2487c
10 changed files with 13 additions and 13 deletions

View File

@@ -1,11 +0,0 @@
package storagecraft.inventory;
import net.minecraft.entity.player.EntityPlayer;
public class ContainerController extends ContainerSC {
public ContainerController(EntityPlayer player) {
super(player);
addPlayerInventory(8, 108);
}
}

View File

@@ -1,28 +0,0 @@
package storagecraft.inventory;
import net.minecraft.entity.player.EntityPlayer;
import storagecraft.SCItems;
import storagecraft.inventory.slot.SlotItemFilter;
import storagecraft.tile.TileDrive;
public class ContainerDrive extends ContainerSC {
public ContainerDrive(EntityPlayer player, TileDrive drive) {
super(player);
addPlayerInventory(8, 108);
int x = 71;
int y = 20;
for (int i = 0; i < 8; ++i) {
addSlotToContainer(new SlotItemFilter(drive, i, x, y, SCItems.STORAGE_CELL));
if ((i + 1) % 2 == 0) {
x = 71;
y += 18;
} else {
x += 18;
}
}
}
}

View File

@@ -1,11 +0,0 @@
package storagecraft.inventory;
import net.minecraft.entity.player.EntityPlayer;
public class ContainerGrid extends ContainerSC {
public ContainerGrid(EntityPlayer player) {
super(player);
addPlayerInventory(8, 108);
}
}

View File

@@ -1,17 +0,0 @@
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);
}
}

View File

@@ -1,46 +0,0 @@
package storagecraft.inventory;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.Container;
import net.minecraft.inventory.Slot;
import net.minecraft.item.ItemStack;
public class ContainerSC extends Container {
private EntityPlayer player;
public ContainerSC(EntityPlayer player) {
this.player = player;
}
public EntityPlayer getPlayer() {
return player;
}
protected void addPlayerInventory(int xInventory, int yInventory) {
int id = 0;
for (int i = 0; i < 9; i++) {
addSlotToContainer(new Slot(player.inventory, id, xInventory + i * 18, yInventory + 4 + (3 * 18)));
id++;
}
for (int y = 0; y < 3; y++) {
for (int x = 0; x < 9; x++) {
addSlotToContainer(new Slot(player.inventory, id, xInventory + x * 18, yInventory + y * 18));
id++;
}
}
}
@Override
public ItemStack transferStackInSlot(EntityPlayer player, int slotIndex) {
return null;
}
@Override
public boolean canInteractWith(EntityPlayer player) {
return true;
}
}