Skip to content

Commit 4b969b8

Browse files
authored
Add method for registering REI tiers in the single block special machines hook context (#111)
1 parent 11e7219 commit 4b969b8

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

src/main/java/net/swedz/tesseract/neoforge/compat/mi/hack/HackedMachineRegistrationHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ public static void registerMachineTiers(MIHook hook,
312312
/**
313313
* @see SingleBlockCraftingMachines#registerReiTiers(String, String, MachineRecipeType, MachineCategoryParams, int)
314314
*/
315-
private static void registerReiTiers(MIHook hook, String englishName, String machine, MachineRecipeType recipeType, MachineCategoryParams categoryParams, int tiers)
315+
public static void registerReiTiers(MIHook hook, String englishName, String machine, MachineRecipeType recipeType, MachineCategoryParams categoryParams, int tiers)
316316
{
317317
List<MachineCategoryParams> previousCategories = new ArrayList<>();
318318
int previousMaxEu = 0;

src/main/java/net/swedz/tesseract/neoforge/compat/mi/hook/context/listener/SingleBlockSpecialMachinesMIHookContext.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
package net.swedz.tesseract.neoforge.compat.mi.hook.context.listener;
22

3+
import aztech.modern_industrialization.compat.rei.machines.MachineCategoryParams;
34
import aztech.modern_industrialization.machines.BEP;
45
import aztech.modern_industrialization.machines.MachineBlockEntity;
56
import aztech.modern_industrialization.machines.models.MachineCasing;
7+
import aztech.modern_industrialization.machines.recipe.MachineRecipeType;
68
import net.minecraft.world.level.block.entity.BlockEntityType;
79
import net.minecraft.world.level.block.state.BlockBehaviour;
810
import net.swedz.tesseract.neoforge.compat.mi.hack.HackedMachineRegistrationHelper;
@@ -114,4 +116,9 @@ public final void register(String englishName, String name, String overlayFolder
114116
{
115117
this.register(englishName, name, overlayFolder, defaultCasing, frontOverlay, topOverlay, sideOverlay, null, null, factory, extraRegistrators);
116118
}
119+
120+
public void registerReiTiers(String englishName, String machine, MachineRecipeType recipeType, MachineCategoryParams categoryParams, int tiers)
121+
{
122+
HackedMachineRegistrationHelper.registerReiTiers(hook, englishName, machine, recipeType, categoryParams, tiers);
123+
}
117124
}

0 commit comments

Comments
 (0)