package mcjty.deepresonance.blocks.pedestal;
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 PedestalContainer extends GenericContainer {
public static final String CONTAINER_INVENTORY = "container";
public static final int SLOT_CRYSTAL = 0;
public static final ContainerFactory factory = new ContainerFactory() {
@Override
protected void setup() {
addSlotBox(new SlotDefinition(SlotType.SLOT_SPECIFICITEM, new ItemStack(ModBlocks.resonatingCrystalBlock)), CONTAINER_INVENTORY, SLOT_CRYSTAL, 64, 24, 1, 18, 1, 18);
layoutPlayerInventorySlots(10, 70);
}
};
public PedestalContainer(EntityPlayer player, IInventory containerInventory) {
super(factory);
addInventory(CONTAINER_INVENTORY, containerInventory);
addInventory(ContainerFactory.CONTAINER_PLAYER, player.inventory);
generateSlots();
}
}