| 14 | import java.util.function.Consumer; |
| 15 | |
| 16 | public class TutRecipes extends RecipeProvider { |
| 17 | |
| 18 | public TutRecipes(DataGenerator generatorIn) { |
| 19 | super(generatorIn); |
| 20 | } |
| 21 | |
| 22 | @Override |
| 23 | protected void buildCraftingRecipes(Consumer<FinishedRecipe> consumer) { |
| 24 | |
| 25 | ShapedRecipeBuilder.shaped(Registration.GENERATOR.get()) |
| 26 | .pattern("mxm") |
| 27 | .pattern("x#x") |
| 28 | .pattern("#x#") |
| 29 | .define('x', Tags.Items.GEMS_DIAMOND) |
| 30 | .define('#', Tags.Items.INGOTS_IRON) |
| 31 | .define('m', Registration.MYSTERIOUS_INGOT.get()) |
| 32 | .group("tutorialv3") |
| 33 | .unlockedBy("mysterious", InventoryChangeTrigger.TriggerInstance.hasItems(Registration.MYSTERIOUS_INGOT.get())) |
| 34 | .save(consumer); |
| 35 | ShapedRecipeBuilder.shaped(Registration.POWERGEN.get()) |
| 36 | .pattern("mmm") |
| 37 | .pattern("x#x") |
| 38 | .pattern("#x#") |
| 39 | .define('x', Tags.Items.DUSTS_REDSTONE) |
| 40 | .define('#', Tags.Items.INGOTS_IRON) |
| 41 | .define('m', Registration.MYSTERIOUS_INGOT.get()) |
| 42 | .group("tutorialv3") |
| 43 | .unlockedBy("mysterious", InventoryChangeTrigger.TriggerInstance.hasItems(Registration.MYSTERIOUS_INGOT.get())) |
| 44 | .save(consumer); |
| 45 | |
| 46 | SimpleCookingRecipeBuilder.smelting(Ingredient.of(Registration.MYSTERIOUS_ORE_ITEM), |
| 47 | Registration.MYSTERIOUS_INGOT.get(), 1.0f, 100) |
| 48 | .unlockedBy("has_ore", inventoryTrigger(ItemPredicate.Builder.item().of(Registration.MYSTERIOUS_ORE_ITEM).build())) |
| 49 | .save(consumer, "mysterious_ingot1"); |
| 50 | |
| 51 | SimpleCookingRecipeBuilder.smelting(Ingredient.of(Registration.RAW_MYSTERIOUS_CHUNK.get()), |
| 52 | Registration.MYSTERIOUS_INGOT.get(), 0.0f, 100) |
| 53 | .unlockedBy("has_chunk", has(Registration.RAW_MYSTERIOUS_CHUNK.get())) |
| 54 | .save(consumer, "mysterious_ingot2"); |
| 55 | } |
| 56 | } |
nothing calls this directly
no outgoing calls
no test coverage detected