mirror of
https://github.com/GTNewHorizons/waila.git
synced 2026-11-27 23:46:01 +00:00
39 lines
1.3 KiB
Java
39 lines
1.3 KiB
Java
package mcp.mobius.waila.addons.twilightforest;
|
|
|
|
import java.util.logging.Level;
|
|
|
|
import mcp.mobius.waila.mod_Waila;
|
|
import mcp.mobius.waila.api.impl.ModuleRegistrar;
|
|
|
|
public class TwilightForestModule {
|
|
|
|
public static Class BlockTFRoots = null;
|
|
public static Class BlockTFPlant = null;
|
|
public static Class BlockTFSapling = null;
|
|
|
|
public static void register(){
|
|
|
|
try{
|
|
Class TwilightForestMod = Class.forName("twilightforest.TwilightForestMod");
|
|
mod_Waila.log.log(Level.INFO, "TwilightForestMod mod found.");
|
|
} catch (ClassNotFoundException e){
|
|
mod_Waila.log.log(Level.INFO, "[TwilightForestMod] TwilightForestMod mod not found.");
|
|
return;
|
|
}
|
|
|
|
try {
|
|
BlockTFRoots = Class.forName("twilightforest.block.BlockTFRoots");
|
|
BlockTFPlant = Class.forName("twilightforest.block.BlockTFPlant");
|
|
BlockTFSapling = Class.forName("twilightforest.block.BlockTFSapling");
|
|
} catch (ClassNotFoundException e) {
|
|
mod_Waila.log.log(Level.WARNING, "[TwilightForestMod] Class not found. " + e);
|
|
}
|
|
|
|
|
|
ModuleRegistrar.instance().registerStackProvider(new TwilightForestGenericOverride(), BlockTFRoots);
|
|
ModuleRegistrar.instance().registerStackProvider(new TwilightForestGenericOverride(), BlockTFPlant);
|
|
//ExternalModulesHandler.instance().registerStackProvider(new TwilightForestGenericOverride(), BlockTFSapling);
|
|
}
|
|
|
|
}
|