Error spout material

Discussion in 'Plugin Development' started by okami35, Oct 16, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    okami35

    Hello,
    I would like to use spout to add a new block on my server, but when I want to add a recipe but i have an error in eclipse:

    The method setIngredient(char, Material) in the type SpoutShapedRecipe is not applicable for the arguments (char, Material)

    this is my code:

    Code:
    block = new testblock(this);
    
            ItemStack spec = SpoutManager.getMaterialManager().getCustomItemStack(block, 10);
            SpoutShapedRecipe x = new SpoutShapedRecipe(spec);
            x.shape("ABC", "CBC", "BCB");
            x.setIngredient('A', Material.GOLDEN_APPLE);
            x.setIngredient('B', Material.BEDROCK);
            x.setIngregient('C', Material.GRASS);
            SpoutManager.getMaterialManager().registerSpoutRecipe(x);
    thank you very much for your help
     
Thread Status:
Not open for further replies.

Share This Page