container.addBoundary(Boundaries.CRAFTING);
// crafting grid
for(int row = 0; row < 3; row++) {
for(int col = 0; col < 3; col++) {
container.addSlot(new SlotPhantom(craftingGrid, col + row * 3, x, y));
x += SLOT;
}
y += SLOT;
x = xSpacing;
}
container.addBoundary(Boundaries.CRAFTING_END);
if(backpack.isIntelligent()) {
// recipes
y = 17;
x += 108;
for(int row = 0; row < 3; row++) {
for(int col = 0; col < 3; col++) {
container.addSlot(new SlotPhantom(recipes, col + row * 3, x, y));
x += SLOT;
}
y += SLOT;
x = xSpacing + 108;
}