Could just change this into: if (shapedRecipe.getResult().toString().endsWith("_BLOCK"))?