-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
turned platform classes in integration into java services
- Loading branch information
Showing
20 changed files
with
98 additions
and
94 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
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: 24 additions & 0 deletions
24
common/src/main/java/muramasa/antimatter/integration/jei/JEIPlatformHelper.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,24 @@ | ||
package muramasa.antimatter.integration.jei; | ||
|
||
import dev.architectury.injectables.annotations.ExpectPlatform; | ||
import earth.terrarium.botarium.common.fluid.base.FluidHolder; | ||
import mezz.jei.api.gui.builder.IRecipeSlotBuilder; | ||
import mezz.jei.api.ingredients.IIngredientType; | ||
import mezz.jei.api.ingredients.ITypedIngredient; | ||
import muramasa.antimatter.util.ImplLoader; | ||
|
||
import java.util.List; | ||
|
||
public interface JEIPlatformHelper { | ||
JEIPlatformHelper INSTANCE = ImplLoader.load(JEIPlatformHelper.class); | ||
|
||
void uses(FluidHolder val, boolean USE); | ||
|
||
void addFluidIngredients(IRecipeSlotBuilder builder, List<FluidHolder> stacks); | ||
|
||
Object getFluidObject(FluidHolder fluidHolder); | ||
|
||
IIngredientType<?> getFluidIngredientObjectType(); | ||
|
||
FluidHolder getIngredient(ITypedIngredient<?> ingredient); | ||
} |
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
8 changes: 8 additions & 0 deletions
8
common/src/main/java/muramasa/antimatter/integration/kubejs/KubeJSPlatform.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,8 @@ | ||
package muramasa.antimatter.integration.kubejs; | ||
|
||
import muramasa.antimatter.util.ImplLoader; | ||
|
||
public interface KubeJSPlatform { | ||
KubeJSPlatform INSTANCE = ImplLoader.load(KubeJSPlatform.class); | ||
void onRegister(); | ||
} |
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
9 changes: 0 additions & 9 deletions
9
fabric/src/main/java/muramasa/antimatter/integration/kubejs/fabric/AntimatterKubeJSImpl.java
This file was deleted.
Oops, something went wrong.
11 changes: 11 additions & 0 deletions
11
fabric/src/main/java/muramasa/antimatter/integration/kubejs/fabric/KubeJSPlatformImpl.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,11 @@ | ||
package muramasa.antimatter.integration.kubejs.fabric; | ||
|
||
import muramasa.antimatter.fabric.AntimatterImpl; | ||
import muramasa.antimatter.integration.kubejs.KubeJSPlatform; | ||
|
||
public class KubeJSPlatformImpl implements KubeJSPlatform { | ||
@Override | ||
public void onRegister(){ | ||
new AntimatterImpl().initialize(true); | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
...src/main/resources/META-INF/services/muramasa.antimatter.integration.ct.CrafttweakerUtils
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 @@ | ||
muramasa.antimatter.integration.ct.fabric.CrafttweakerUtilsImpl |
1 change: 1 addition & 0 deletions
1
...rc/main/resources/META-INF/services/muramasa.antimatter.integration.jei.JEIPlatformHelper
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 @@ | ||
muramasa.antimatter.integration.jei.fabric.JEIPlatformHelperImpl |
1 change: 1 addition & 0 deletions
1
...rc/main/resources/META-INF/services/muramasa.antimatter.integration.kubejs.KubeJSPlatform
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 @@ | ||
muramasa.antimatter.integration.kubejs.fabric.KubeJSPlatformImpl |
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
Oops, something went wrong.