@Override protected void drawSlotInventory(Slot slot) { if (shouldDrawLid(slot)) { if (lidXSize != 16) { super.drawSlotInventory(slot); } int x = slot.xDisplayPosition; int y = slot.yDisplayPosition; Rendering.drawColoredRect( x, y, lidXSize, 16, 0xff000000, 101); // zlevel 101 to go above the itemstacks } else { super.drawSlotInventory(slot); } }