Added foundation for implosion compressor datagen.
This commit is contained in:
parent
2331b95abc
commit
172ce26179
3 changed files with 51 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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<RegistryWrapper.WrapperLookup> registriesFuture) {
|
||||
super(output, registriesFuture)
|
||||
}
|
||||
|
||||
@Override
|
||||
void generateRecipes() {
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue