-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add mod loaded condition to all AppBot recipes
- Loading branch information
Showing
13 changed files
with
241 additions
and
146 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
common/src/data/java/gripe/_90/megacells/datagen/AppBotHousingRecipeProvider.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
package gripe._90.megacells.datagen; | ||
|
||
import java.util.function.Consumer; | ||
|
||
import net.minecraft.core.registries.BuiltInRegistries; | ||
import net.minecraft.data.PackOutput; | ||
import net.minecraft.world.item.crafting.Ingredient; | ||
|
||
import appeng.core.definitions.AEBlocks; | ||
import appeng.core.definitions.AEItems; | ||
|
||
import appbot.AppliedBotanics; | ||
|
||
import gripe._90.megacells.MEGACells; | ||
import gripe._90.megacells.core.Addons; | ||
import gripe._90.megacells.integration.appbot.AppBotItems; | ||
|
||
import vazkii.botania.common.block.block_entity.mana.ManaPoolBlockEntity; | ||
import vazkii.botania.common.item.BotaniaItems; | ||
import vazkii.botania.data.recipes.TerrestrialAgglomerationProvider; | ||
|
||
public class AppBotHousingRecipeProvider extends TerrestrialAgglomerationProvider { | ||
public AppBotHousingRecipeProvider(PackOutput packOutput) { | ||
super(packOutput); | ||
} | ||
|
||
@Override | ||
public void buildRecipes(Consumer<net.minecraft.data.recipes.FinishedRecipe> writer) { | ||
var housing = AppBotItems.MEGA_MANA_CELL_HOUSING; | ||
var id = MEGACells.makeId("cells/" + housing.id().getPath()); | ||
MEGACells.PLATFORM.addIntegrationRecipe( | ||
writer, | ||
new FinishedRecipe( | ||
id, | ||
ManaPoolBlockEntity.MAX_MANA * 2, | ||
housing.stack(), | ||
Ingredient.of(BuiltInRegistries.ITEM.get(AppliedBotanics.id("mana_cell_housing"))), | ||
Ingredient.of(BotaniaItems.manaPearl), | ||
Ingredient.of(BotaniaItems.manaDiamond), | ||
Ingredient.of(AEItems.SKY_DUST), | ||
Ingredient.of(AEBlocks.QUARTZ_VIBRANT_GLASS)), | ||
Addons.APPBOT, | ||
id); | ||
} | ||
} |
197 changes: 100 additions & 97 deletions
197
common/src/data/java/gripe/_90/megacells/datagen/CommonRecipeProvider.java
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 0 additions & 24 deletions
24
common/src/main/resources/data/megacells/recipes/cells/mega_mana_cell_housing.json
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
fabric/src/data/java/gripe/_90/megacells/datagen/FabricRecipeProvider.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package gripe._90.megacells.datagen; | ||
|
||
import java.util.function.Consumer; | ||
|
||
import net.fabricmc.fabric.api.datagen.v1.FabricDataOutput; | ||
import net.minecraft.data.recipes.FinishedRecipe; | ||
|
||
public class FabricRecipeProvider extends net.fabricmc.fabric.api.datagen.v1.provider.FabricRecipeProvider { | ||
public FabricRecipeProvider(FabricDataOutput output) { | ||
super(output); | ||
} | ||
|
||
@Override | ||
public void buildRecipes(Consumer<FinishedRecipe> exporter) { | ||
new CommonRecipeProvider(output).buildRecipes(exporter); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters