-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
3 modules now and almost all working
- Loading branch information
Showing
28 changed files
with
182 additions
and
219 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
18 changes: 18 additions & 0 deletions
18
common-testmod/src/main/java/com/oroarmor/config/testmod/TestMod.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,18 @@ | ||
package com.oroarmor.config.testmod; | ||
|
||
import com.oroarmor.config.Config; | ||
import com.oroarmor.config.command.ConfigCommand; | ||
import me.shedaniel.architectury.event.events.CommandRegistrationEvent; | ||
import me.shedaniel.architectury.event.events.LifecycleEvent; | ||
|
||
import net.minecraft.server.command.CommandManager; | ||
|
||
public class TestMod { | ||
public static Config CONFIG = new TestConfig(); | ||
|
||
public static void initialize() { | ||
CONFIG.readConfigFromFile(); | ||
LifecycleEvent.SERVER_STOPPED.register(instance -> CONFIG.saveConfigToFile()); | ||
CommandRegistrationEvent.EVENT.register((dispatcher, selection) -> new ConfigCommand(CONFIG).register(dispatcher, selection == CommandManager.RegistrationEnvironment.DEDICATED)); | ||
} | ||
} |
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: 0 additions & 21 deletions
21
fabric-testmod/src/java/com/oroarmor/config/testmod/OroConfigTestMod.java
This file was deleted.
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
...or/config/testmod/ModMenuIntegration.java → ...or/config/testmod/ModMenuIntegration.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,9 +1,9 @@ | ||
package com.oroarmor.config.testmod; | ||
|
||
import com.oroarmor.config.modmenu.ModMenuConfigScreen; | ||
import com.oroarmor.config.screen.ModMenuConfigScreen; | ||
|
||
public class ModMenuIntegration extends ModMenuConfigScreen { | ||
public ModMenuIntegration() { | ||
super(OroConfigTestMod.CONFIG); | ||
super(TestMod.CONFIG); | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
fabric-testmod/src/main/java/com/oroarmor/config/testmod/OroConfigTestMod.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,10 @@ | ||
package com.oroarmor.config.testmod; | ||
|
||
import net.fabricmc.api.ModInitializer; | ||
|
||
public class OroConfigTestMod implements ModInitializer { | ||
@Override | ||
public void onInitialize() { | ||
TestMod.initialize(); | ||
} | ||
} |
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
Oops, something went wrong.