renderItemAtGridPos(gui, 1 + x, 1 + y, input instanceof ItemStack ? (ItemStack) input : ((ArrayList<ItemStack>) input).get(0), true);
}
oreDictRecipe = true;
} else if(recipe instanceof ShapelessRecipes) {
ShapelessRecipes shapeless = (ShapelessRecipes) recipe;
drawGrid : {
for(int y = 0; y < 3; y++)
for(int x = 0; x < 3; x++) {
int index = y * 3 + x;
if(index >= shapeless.recipeItems.size())
break drawGrid;
renderItemAtGridPos(gui, 1 + x, 1 + y, (ItemStack) shapeless.recipeItems.get(index), true);
}
}
shapelessRecipe = true;
} else if(recipe instanceof ShapelessOreRecipe) {
ShapelessOreRecipe shapeless = (ShapelessOreRecipe) recipe;
drawGrid : {
for(int y = 0; y < 3; y++)
for(int x = 0; x < 3; x++) {
int index = y * 3 + x;
if(index >= shapeless.getRecipeSize())
break drawGrid;
Object input = shapeless.getInput().get(index);
if(input != null)
renderItemAtGridPos(gui, 1 + x, 1 + y, input instanceof ItemStack ? (ItemStack) input : ((ArrayList<ItemStack>) input).get(0), true);
}
}