Hi guys!
I’ve tried to register a new recipe in my plugin and i got an UnsupportedOperationException at getting the RecipeRegistery Sponge.getGame().getRegistry().getRecipeRegistry() in my GameStartedServerEvent. And this is the code which I used:
    Sponge.getGame().getRegistry().getRecipeRegistry()
            .register(Sponge.getGame().getRegistry().createBuilder(ShapelessRecipe.Builder.class)
            .addIngredient(ItemStack.builder().itemType(ItemTypes.IRON_INGOT).build())
            .addResult(ItemStack.builder().itemType(ItemTypes.STONE).build()).build());
I think theres no error in this code but maybe the RecipeRegistery is not registered in my spongeversion? (4.1.0-BETA-1312).
Hope you can help me^^
~ DerTechNick