-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTOPModule.java
More file actions
36 lines (31 loc) · 1.44 KB
/
TOPModule.java
File metadata and controls
36 lines (31 loc) · 1.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
package com.github.gtexpert.gtbm.integration.top;
import net.minecraftforge.fml.common.event.FMLInitializationEvent;
import com.github.gtexpert.gtbm.api.ModValues;
import com.github.gtexpert.gtbm.api.modules.TModule;
import com.github.gtexpert.gtbm.api.util.Mods;
import com.github.gtexpert.gtbm.integration.GTBMIntegrationSubmodule;
import com.github.gtexpert.gtbm.integration.forestry.util.BeeHousingInfoProvider;
import com.github.gtexpert.gtbm.integration.top.provider.IndustrialApiaryProvider;
import com.github.gtexpert.gtbm.integration.top.provider.MegaApiaryProvider;
import com.github.gtexpert.gtbm.module.Modules;
import mcjty.theoneprobe.TheOneProbe;
import mcjty.theoneprobe.api.ITheOneProbe;
@TModule(
moduleID = Modules.MODULE_TOP,
containerID = ModValues.MODID,
modDependencies = { Mods.Names.THE_ONE_PROBE },
name = "GTBeesMatrix The One Probe Integration",
description = "The One Probe Integration Module")
public class TOPModule extends GTBMIntegrationSubmodule {
@Override
public void init(FMLInitializationEvent event) {
ITheOneProbe oneProbe = TheOneProbe.theOneProbeImp;
if (Mods.Forestry.isModLoaded()) {
oneProbe.registerProvider(new BeeHousingInfoProvider());
}
if (Mods.Gendustry.isModLoaded()) {
oneProbe.registerProvider(new IndustrialApiaryProvider());
oneProbe.registerProvider(new MegaApiaryProvider());
}
}
}