-
-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Move ForgeVanillinConfig -> NeoForgeVanillinConfig - Fix references to old forge config builder - Move mixin declaration to mods.toml - Remove jij'd mixinextras
- Loading branch information
Showing
6 changed files
with
36 additions
and
25 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
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
21 changes: 17 additions & 4 deletions
21
vanillinNeoForge/src/main/java/dev/engine_room/vanillin/VanillinNeoForgeClient.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,15 +1,28 @@ | ||
package dev.engine_room.vanillin; | ||
|
||
import dev.engine_room.vanillin.visuals.VanillaVisuals; | ||
import net.neoforged.api.distmarker.Dist; | ||
import net.neoforged.bus.api.IEventBus; | ||
import net.neoforged.fml.ModLoadingContext; | ||
import net.neoforged.fml.common.Mod; | ||
import net.neoforged.neoforge.common.NeoForge; | ||
import net.neoforged.fml.event.config.ModConfigEvent; | ||
|
||
@Mod(value = Vanillin.ID, dist = Dist.CLIENT) | ||
public class VanillinNeoForgeClient { | ||
public VanillinNeoForgeClient(IEventBus modEventBus) { | ||
IEventBus neoEventBus = NeoForge.EVENT_BUS; | ||
public VanillinNeoForgeClient() { | ||
var modLoadingContext = ModLoadingContext.get(); | ||
|
||
IEventBus modEventBus = modLoadingContext.getActiveContainer() | ||
.getEventBus(); | ||
|
||
VanillaVisuals.init(); | ||
NeoForgeVanillinConfig.INSTANCE.registerSpecs(modLoadingContext); | ||
|
||
modEventBus.<ModConfigEvent>addListener(event -> { | ||
if (event.getConfig() | ||
.getModId() | ||
.equals(Vanillin.ID)) { | ||
NeoForgeVanillinConfig.INSTANCE.apply(); | ||
} | ||
}); | ||
} | ||
} |
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