-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
aaa8a26
commit 25599dc
Showing
2 changed files
with
16 additions
and
5 deletions.
There are no files selected for viewing
5 changes: 0 additions & 5 deletions
5
neoforge/src/main/java/net/blay09/mods/craftingslots/NeoForgeCraftingSlots.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,19 +1,14 @@ | ||
package net.blay09.mods.craftingslots; | ||
|
||
import net.blay09.mods.balm.api.Balm; | ||
import net.blay09.mods.balm.api.client.BalmClient; | ||
import net.blay09.mods.balm.neoforge.NeoForgeLoadContext; | ||
import net.blay09.mods.craftingslots.client.CraftingSlotsClient; | ||
import net.neoforged.api.distmarker.Dist; | ||
import net.neoforged.bus.api.IEventBus; | ||
import net.neoforged.fml.DistExecutor; | ||
import net.neoforged.fml.common.Mod; | ||
|
||
@Mod(CraftingSlots.MOD_ID) | ||
public class NeoForgeCraftingSlots { | ||
public NeoForgeCraftingSlots(IEventBus modEventBus) { | ||
final var context = new NeoForgeLoadContext(modEventBus); | ||
Balm.initialize(CraftingSlots.MOD_ID, context, CraftingSlots::initialize); | ||
DistExecutor.runWhenOn(Dist.CLIENT, () -> () -> BalmClient.initialize(CraftingSlots.MOD_ID, context, CraftingSlotsClient::initialize)); | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
neoforge/src/main/java/net/blay09/mods/craftingslots/client/NeoForgeCraftingSlotsClient.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,16 @@ | ||
package net.blay09.mods.craftingslots.client; | ||
|
||
import net.blay09.mods.balm.api.client.BalmClient; | ||
import net.blay09.mods.balm.neoforge.NeoForgeLoadContext; | ||
import net.blay09.mods.craftingslots.CraftingSlots; | ||
import net.neoforged.api.distmarker.Dist; | ||
import net.neoforged.bus.api.IEventBus; | ||
import net.neoforged.fml.common.Mod; | ||
|
||
@Mod(value = CraftingSlots.MOD_ID, dist = Dist.CLIENT) | ||
public class NeoForgeCraftingSlotsClient { | ||
public NeoForgeCraftingSlotsClient(IEventBus modEventBus) { | ||
final var context = new NeoForgeLoadContext(modEventBus); | ||
BalmClient.initialize(CraftingSlots.MOD_ID, context, CraftingSlotsClient::initialize); | ||
} | ||
} |