use of binnie.core.modules.ModuleContainer in project Binnie by ForestryMC.
the class BinnieCore method preInit.
@Mod.EventHandler
public void preInit(final FMLPreInitializationEvent evt) {
MinecraftForge.EVENT_BUS.register(Binnie.LIQUID);
MinecraftForge.EVENT_BUS.register(ModuleManager.class);
Binnie.CONFIGURATION.registerConfiguration(ConfigurationMods.class, this);
for (IModuleContainer container : ForestryAPI.moduleManager.getContainers()) {
if (!(container instanceof ModuleContainer)) {
continue;
}
((ModuleContainer) container).setupAPI();
}
for (FluidContainerType container : FluidContainerType.getBinnieContainers()) {
Item item = new ItemFluidContainer(container);
getProxy().registerItem(item);
}
for (CoreErrorCode errorCode : CoreErrorCode.values()) {
ErrorStateRegistry.registerErrorState(errorCode);
}
super.preInit(evt);
}
Aggregations