-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Native EMI support with Mekanism (#59)
- Loading branch information
Showing
6 changed files
with
33 additions
and
99 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
15 changes: 5 additions & 10 deletions
15
src/main/java/me/ramidzkh/mekae2/integration/emi/AMEmiPlugin.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 |
---|---|---|
@@ -1,21 +1,16 @@ | ||
package me.ramidzkh.mekae2.integration.emi; | ||
|
||
import net.neoforged.fml.ModList; | ||
|
||
import dev.emi.emi.api.EmiEntrypoint; | ||
import dev.emi.emi.api.EmiPlugin; | ||
import dev.emi.emi.api.EmiRegistry; | ||
|
||
import appeng.api.integrations.emi.EmiStackConverters; | ||
|
||
@EmiEntrypoint | ||
public class AMEmiPlugin implements EmiPlugin { | ||
@Override | ||
public void register(EmiRegistry emiRegistry) { | ||
} | ||
|
||
static { | ||
if (ModList.get().isLoaded("jei")) { | ||
// We need both EMI and JEI to do anything! | ||
MekanismJemiAdapter.init(); | ||
} | ||
@Override | ||
public void register(EmiRegistry registry) { | ||
EmiStackConverters.register(new ChemicalIngredientConverter()); | ||
} | ||
} |
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
12 changes: 0 additions & 12 deletions
12
src/main/java/me/ramidzkh/mekae2/integration/emi/MekanismJemiAdapter.java
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
src/main/java/me/ramidzkh/mekae2/integration/jei/package-info.java
This file was deleted.
Oops, something went wrong.