diff --git a/src/datagen/groovy/techreborn/datagen/TechRebornDataGen.groovy b/src/datagen/groovy/techreborn/datagen/TechRebornDataGen.groovy index 4177cb283..d6c462d77 100644 --- a/src/datagen/groovy/techreborn/datagen/TechRebornDataGen.groovy +++ b/src/datagen/groovy/techreborn/datagen/TechRebornDataGen.groovy @@ -41,6 +41,7 @@ import techreborn.datagen.recipes.machine.chemical_reactor.ChemicalReactorRecipe import techreborn.datagen.recipes.machine.compressor.CompressorRecipesProvider import techreborn.datagen.recipes.machine.extractor.ExtractorRecipesProvider import techreborn.datagen.recipes.machine.grinder.GrinderRecipesProvider +import techreborn.datagen.recipes.machine.implosion_compressor.ImplosionCompressorRecipesProvider import techreborn.datagen.recipes.machine.industrial_grinder.IndustrialGrinderRecipesProvider import techreborn.datagen.recipes.machine.industrial_sawmill.IndustrialSawmillRecipesProvider import techreborn.datagen.recipes.smelting.SmeltingRecipesProvider @@ -82,6 +83,7 @@ class TechRebornDataGen implements DataGeneratorEntrypoint { add CentrifugeRecipesProvider::new add IndustrialGrinderRecipesProvider::new add IndustrialSawmillRecipesProvider::new + add ImplosionCompressorRecipesProvider::new add AlloySmelterRecipesProvider::new add ModelProvider::new diff --git a/src/datagen/groovy/techreborn/datagen/recipes/TechRebornRecipesProvider.groovy b/src/datagen/groovy/techreborn/datagen/recipes/TechRebornRecipesProvider.groovy index 685405c75..b8a9e088f 100644 --- a/src/datagen/groovy/techreborn/datagen/recipes/TechRebornRecipesProvider.groovy +++ b/src/datagen/groovy/techreborn/datagen/recipes/TechRebornRecipesProvider.groovy @@ -192,6 +192,10 @@ abstract class TechRebornRecipesProvider extends FabricRecipeProvider { IndustrialSawmillRecipeJsonFactory.createIndustrialSawmill(this, closure).offerTo(exporter) } + def offerImplosionCompressorRecipe(@DelegatesTo(value = MachineRecipeJsonFactory.class, strategy = Closure.DELEGATE_FIRST) Closure closure) { + MachineRecipeJsonFactory.create(ModRecipes.IMPLOSION_COMPRESSOR, this, closure).offerTo(exporter) + } + @Override protected Identifier getRecipeIdentifier(Identifier identifier) { return new Identifier("techreborn", super.getRecipeIdentifier(identifier).path) diff --git a/src/datagen/groovy/techreborn/datagen/recipes/machine/implosion_compressor/ImplosionCompressorRecipesProvider.groovy b/src/datagen/groovy/techreborn/datagen/recipes/machine/implosion_compressor/ImplosionCompressorRecipesProvider.groovy new file mode 100644 index 000000000..d8ffd0438 --- /dev/null +++ b/src/datagen/groovy/techreborn/datagen/recipes/machine/implosion_compressor/ImplosionCompressorRecipesProvider.groovy @@ -0,0 +1,45 @@ +/* + * This file is part of TechReborn, licensed under the MIT License (MIT). + * + * Copyright (c) 2020 TechReborn + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ + +package techreborn.datagen.recipes.machine.implosion_compressor + +import net.fabricmc.fabric.api.datagen.v1.FabricDataOutput +import net.minecraft.item.Items +import net.minecraft.registry.RegistryWrapper +import net.minecraft.registry.tag.ItemTags +import techreborn.datagen.TRConventionalTags +import techreborn.datagen.recipes.TechRebornRecipesProvider +import techreborn.init.TRContent + +import java.util.concurrent.CompletableFuture + +class ImplosionCompressorRecipesProvider extends TechRebornRecipesProvider { + ImplosionCompressorRecipesProvider(FabricDataOutput output, CompletableFuture registriesFuture) { + super(output, registriesFuture) + } + + @Override + void generateRecipes() { + } +}