Search in sources :

Example 1 with SpecialRecipeBuilder

use of net.minecraft.data.recipes.SpecialRecipeBuilder in project Create by Creators-of-Create.

the class StandardRecipeGen method createSpecial.

GeneratedRecipe createSpecial(Supplier<? extends SimpleRecipeSerializer<?>> serializer, String recipeType, String path) {
    ResourceLocation location = Create.asResource(recipeType + "/" + currentFolder + "/" + path);
    return register(consumer -> {
        SpecialRecipeBuilder b = SpecialRecipeBuilder.special(serializer.get());
        b.save(consumer, location.toString());
    });
}
Also used : ResourceLocation(net.minecraft.resources.ResourceLocation) SpecialRecipeBuilder(net.minecraft.data.recipes.SpecialRecipeBuilder)

Aggregations

SpecialRecipeBuilder (net.minecraft.data.recipes.SpecialRecipeBuilder)1 ResourceLocation (net.minecraft.resources.ResourceLocation)1