mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-28 15:36:18 +00:00
Clean Up Module System
This commit is contained in:
1 parent
26f44a2862
commit
11e8a06a48
14 files changed
+263
-265
No files matched your search
@@ -75,18 +75,6 @@ public interface IForestryModule {
|
||||
default void registerTriggers() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Can be used to register items to the backpack via the {@link forestry.api.storage.IBackpackInterface}.
|
||||
*/
|
||||
default void registerBackpackItems() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Can be used to register crates via the {@link forestry.api.storage.ICrateRegistry}.
|
||||
*/
|
||||
default void registerCrates() {
|
||||
}
|
||||
|
||||
default void doInit() {
|
||||
}
|
||||
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
******************************************************************************/
|
||||
package forestry.api.modules;
|
||||
|
||||
import java.util.Collection;
|
||||
|
||||
import net.minecraftforge.common.config.Configuration;
|
||||
|
||||
public interface IModuleContainer {
|
||||
@@ -25,7 +27,7 @@ public interface IModuleContainer {
|
||||
/**
|
||||
* Called after configured the modules.
|
||||
*/
|
||||
default void onConfiguredModules(IModuleHandler handler){
|
||||
default void onConfiguredModules(Collection<IForestryModule> activeModules, Collection<IForestryModule> unloadedModules){
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -1,16 +0,0 @@
|
||||
package forestry.api.modules;
|
||||
|
||||
import java.util.Collection;
|
||||
|
||||
public interface IModuleHandler {
|
||||
|
||||
void runSetup();
|
||||
|
||||
void runPreInit();
|
||||
|
||||
void runInit();
|
||||
|
||||
void runPostInit();
|
||||
|
||||
Collection<IForestryModule> getModules();
|
||||
}
|
||||
Reference in new issue
Block a user