TechReborn/src/main/java/techreborn/client/container/ContainerVacuumFreezer.java

41 lines
1.1 KiB
Java
Raw Normal View History

package techreborn.client.container;
import net.minecraft.entity.player.EntityPlayer;
2016-11-19 13:50:08 +01:00
import reborncore.client.gui.slots.BaseSlot;
import reborncore.client.gui.slots.SlotOutput;
import techreborn.tiles.multiblock.TileVacuumFreezer;
public class ContainerVacuumFreezer extends ContainerCrafting {
2016-10-08 21:46:16 +02:00
EntityPlayer player;
TileVacuumFreezer tile;
2016-10-08 21:46:16 +02:00
public ContainerVacuumFreezer(TileVacuumFreezer tileAlloysmelter, EntityPlayer player) {
super(tileAlloysmelter.crafter);
tile = tileAlloysmelter;
this.player = player;
2016-10-08 21:46:16 +02:00
// input
this.addSlotToContainer(new BaseSlot(tileAlloysmelter.inventory, 0, 56, 34));
// outputs
this.addSlotToContainer(new SlotOutput(tileAlloysmelter.inventory, 1, 116, 35));
2016-10-08 21:46:16 +02:00
for (int i = 0; i < 3; ++i) {
for (int j = 0; j < 9; ++j) {
this.addSlotToContainer(new BaseSlot(player.inventory, j + i * 9 + 9, 8 + j * 18, 84 + i * 18));
}
}
2016-10-08 21:46:16 +02:00
for (int i = 0; i < 9; ++i) {
this.addSlotToContainer(new BaseSlot(player.inventory, i, 8 + i * 18, 142));
}
2016-10-08 21:46:16 +02:00
}
2016-10-08 21:46:16 +02:00
@Override
public boolean canInteractWith(EntityPlayer player) {
return true;
}
}