package mcjty.deepresonance.blocks.smelter;
import mcjty.deepresonance.blocks.ModBlocks;
import mcjty.lib.container.ContainerFactory;
import mcjty.lib.container.GenericContainer;
import mcjty.lib.container.SlotDefinition;
import mcjty.lib.container.SlotType;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.IInventory;
import net.minecraft.item.ItemStack;
public class SmelterContainer extends GenericContainer {
public static final String CONTAINER_INVENTORY = "container";
public static final int SLOT_OREINPUT = 0;
public static final ContainerFactory factory = new ContainerFactory() {
@Override
protected void setup() {
addSlotBox(new SlotDefinition(SlotType.SLOT_SPECIFICITEM, new ItemStack(ModBlocks.resonatingOreBlock)), CONTAINER_INVENTORY, SLOT_OREINPUT, 64, 24, 1, 18, 1, 18);
layoutPlayerInventorySlots(10, 70);
}
};
public SmelterContainer(EntityPlayer player, IInventory containerInventory) {
super(factory);
addInventory(CONTAINER_INVENTORY, containerInventory);
addInventory(ContainerFactory.CONTAINER_PLAYER, player.inventory);
generateSlots();
}
}