@@ -0,0 +1,1235 @@
+package codechicken.lib.util;%0A%0Aimport net.minecraft.entity.player.InventoryPlayer;%0Aimport net.minecraft.inventory.Container;%0Aimport net.minecraft.inventory.Slot;%0A%0A/**%0A * Created by covers1624 on 30/08/2016.%0A */%0Apublic class ContainerUtils %7B%0A%0A    public static void bindPlayerInventory(Container container, InventoryPlayer inventoryPlayer, int xStart, int yStart) %7B%0A        // Main inventory%0A        for (int i = 0; i %3C 3; i++) %7B// Rows, 3 Rows%0A            for (int j = 0; j %3C 9; j++) %7B// Columns, 9 Slots per row%0A                int slot = j + i * 9 + 9;%0A                int x = xStart + j * 18;%0A                int y = yStart + i * 18;%0A                addSlotToContainer(container, new Slot(inventoryPlayer, slot, x, y));%0A            %7D%0A        %7D%0A%0A        // Hotbar%0A        for (int i = 0; i %3C 9; i++) %7B%0A            addSlotToContainer(container, new Slot(inventoryPlayer, i, xStart + i * 18, yStart + 58));%0A        %7D%0A    %7D%0A%0A    public static Slot addSlotToContainer(Container container, Slot slot) %7B%0A        slot.slotNumber = container.inventorySlots.size();%0A        //Covers1624Lib.logger.info(slot.slotNumber);%0A        container.inventorySlots.add(slot);%0A        container.inventoryItemStacks.add(null);%0A        return slot;%0A    %7D%0A%7D%0A

Add some container utils for adding inventory and hotbar automatically.