More on REI
This commit is contained in:
parent
29aeb50d85
commit
3b63383012
5 changed files with 53 additions and 5 deletions
|
@ -319,9 +319,7 @@ public class ModRecipes {
|
||||||
}
|
}
|
||||||
|
|
||||||
static void addBlastFurnaceRecipes() {
|
static void addBlastFurnaceRecipes() {
|
||||||
// RecipeHandler.addRecipe(Reference.BLAST_FURNACE_RECIPE,
|
|
||||||
// new BlastFurnaceRecipe(ItemDusts.getDustByName("titanium"), null, ItemIngots.getIngotByName("titanium"),
|
|
||||||
// null, 3600, 120, 1500));
|
|
||||||
// RecipeHandler.addRecipe(Reference.BLAST_FURNACE_RECIPE,
|
// RecipeHandler.addRecipe(Reference.BLAST_FURNACE_RECIPE,
|
||||||
// new BlastFurnaceRecipe(ItemDustsSmall.getSmallDustByName("titanium", 4), null,
|
// new BlastFurnaceRecipe(ItemDustsSmall.getSmallDustByName("titanium", 4), null,
|
||||||
// ItemIngots.getIngotByName("titanium"), null, 3600, 120, 1500));
|
// ItemIngots.getIngotByName("titanium"), null, 3600, 120, 1500));
|
||||||
|
|
|
@ -3,6 +3,7 @@ package techreborn.rei;
|
||||||
import me.shedaniel.rei.api.REIPluginEntry;
|
import me.shedaniel.rei.api.REIPluginEntry;
|
||||||
import me.shedaniel.rei.api.RecipeHelper;
|
import me.shedaniel.rei.api.RecipeHelper;
|
||||||
import net.minecraft.item.ItemConvertible;
|
import net.minecraft.item.ItemConvertible;
|
||||||
|
import net.minecraft.item.ItemStack;
|
||||||
import net.minecraft.recipe.Recipe;
|
import net.minecraft.recipe.Recipe;
|
||||||
import net.minecraft.util.Identifier;
|
import net.minecraft.util.Identifier;
|
||||||
import reborncore.common.crafting.RebornRecipe;
|
import reborncore.common.crafting.RebornRecipe;
|
||||||
|
@ -24,6 +25,8 @@ public class ReiPlugin implements REIPluginEntry {
|
||||||
public ReiPlugin() {
|
public ReiPlugin() {
|
||||||
iconMap.put(ModRecipes.ALLOY_SMELTER, TRContent.Machine.ALLOY_SMELTER);
|
iconMap.put(ModRecipes.ALLOY_SMELTER, TRContent.Machine.ALLOY_SMELTER);
|
||||||
iconMap.put(ModRecipes.GRINDER, TRContent.Machine.GRINDER);
|
iconMap.put(ModRecipes.GRINDER, TRContent.Machine.GRINDER);
|
||||||
|
iconMap.put(ModRecipes.BLAST_FURNACE, TRContent.Machine.INDUSTRIAL_BLAST_FURNACE);
|
||||||
|
iconMap.put(ModRecipes.CENTRIFUGE, TRContent.Machine.INDUSTRIAL_CENTRIFUGE);
|
||||||
//TODO add the others here
|
//TODO add the others here
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -41,6 +44,11 @@ public class ReiPlugin implements REIPluginEntry {
|
||||||
public void registerRecipeDisplays(RecipeHelper recipeHelper) {
|
public void registerRecipeDisplays(RecipeHelper recipeHelper) {
|
||||||
RecipeManager.getRecipeTypes("techreborn").forEach(rebornRecipeType -> registerMachineRecipe(recipeHelper, rebornRecipeType));
|
RecipeManager.getRecipeTypes("techreborn").forEach(rebornRecipeType -> registerMachineRecipe(recipeHelper, rebornRecipeType));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void registerOthers(RecipeHelper recipeHelper) {
|
||||||
|
recipeHelper.registerWorkingStations(ModRecipes.ALLOY_SMELTER.getName(), new ItemStack[]{new ItemStack(TRContent.Machine.ALLOY_SMELTER.asItem())});
|
||||||
|
}
|
||||||
|
|
||||||
private <R extends RebornRecipe> void registerMachineRecipe(RecipeHelper recipeHelper, RebornRecipeType<R> recipeType){
|
private <R extends RebornRecipe> void registerMachineRecipe(RecipeHelper recipeHelper, RebornRecipeType<R> recipeType){
|
||||||
recipeHelper.registerRecipes(recipeType.getName(), (Predicate<Recipe>) recipe -> {
|
recipeHelper.registerRecipes(recipeType.getName(), (Predicate<Recipe>) recipe -> {
|
||||||
|
@ -48,6 +56,6 @@ public class ReiPlugin implements REIPluginEntry {
|
||||||
return ((RebornRecipe) recipe).getRebornRecipeType() == recipeType;
|
return ((RebornRecipe) recipe).getRebornRecipeType() == recipeType;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}, recipe -> new MachineRecipeDisplay((RebornRecipe) recipe));
|
}, recipe -> new MachineRecipeDisplay<RebornRecipe>((RebornRecipe) recipe));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -642,5 +642,13 @@
|
||||||
"techreborn:compressor": "Compressor",
|
"techreborn:compressor": "Compressor",
|
||||||
"techreborn:distillation_tower": "Distillation Tower",
|
"techreborn:distillation_tower": "Distillation Tower",
|
||||||
"techreborn:extractor": "Extrator",
|
"techreborn:extractor": "Extrator",
|
||||||
"techreborn:grinder": "Grinder"
|
"techreborn:grinder": "Grinder",
|
||||||
|
"techreborn:implosion_compressor": "Implosion Compressor",
|
||||||
|
"techreborn:industrial_electrolyzer": "Industrial Electrolyzer",
|
||||||
|
"techreborn:industrial_grinder": "Industrial Grinder",
|
||||||
|
"techreborn:industrial_sawmill": "Industrial Sawmill",
|
||||||
|
"techreborn:recycler": "Recycler",
|
||||||
|
"techreborn:scrapbox": "Scrapbox",
|
||||||
|
"techreborn:vacuum_freezer": "Vacuum Freezer",
|
||||||
|
"techreborn:fluid_replicator": "Fluid Replicator"
|
||||||
}
|
}
|
|
@ -0,0 +1,16 @@
|
||||||
|
{
|
||||||
|
"type": "techreborn:blast_furnace",
|
||||||
|
"power": 128,
|
||||||
|
"time": 3600,
|
||||||
|
"heat": 1500,
|
||||||
|
"ingredients" : [
|
||||||
|
{
|
||||||
|
"item": "techreborn:titanium_dust"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"results" : [
|
||||||
|
{
|
||||||
|
"item": "techreborn:titanium_ingot"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
|
@ -0,0 +1,18 @@
|
||||||
|
{
|
||||||
|
"type": "techreborn:centrifuge",
|
||||||
|
"power": 5,
|
||||||
|
"time": 500,
|
||||||
|
"ingredients": [
|
||||||
|
{
|
||||||
|
"item": "minecraft:magma_cream"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"results": [
|
||||||
|
{
|
||||||
|
"item": "minecraft:blaze_powder"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"item": "minecraft:slime_ball"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue