move classes to other package
This commit is contained in:
28
src/main/java/storagecraft/container/ContainerDrive.java
Normal file
28
src/main/java/storagecraft/container/ContainerDrive.java
Normal file
@@ -0,0 +1,28 @@
|
||||
package storagecraft.container;
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user