-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGTFOModule.java
More file actions
33 lines (28 loc) · 1.24 KB
/
GTFOModule.java
File metadata and controls
33 lines (28 loc) · 1.24 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
package com.github.gtexpert.gtbm.integration.gtfo;
import net.minecraft.item.crafting.IRecipe;
import net.minecraftforge.event.RegistryEvent;
import net.minecraftforge.fml.common.event.FMLPostInitializationEvent;
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.gtfo.loaders.GTFOFarmingLoader;
import com.github.gtexpert.gtbm.integration.gtfo.recipes.GTFOOverrideRecipe;
import com.github.gtexpert.gtbm.module.Modules;
@TModule(
moduleID = Modules.MODULE_GTFO,
containerID = ModValues.MODID,
modDependencies = Mods.Names.GREGTECH_FOOD_OPTION,
name = "GTBeesMatrix Gregtech Food Option Integration",
description = "Gregtech Food Option Integration Module")
public class GTFOModule extends GTBMIntegrationSubmodule {
@Override
public void postInit(FMLPostInitializationEvent event) {
if (Mods.Forestry.isModLoaded())
GTFOFarmingLoader.init();
}
@Override
public void registerRecipesLowest(RegistryEvent.Register<IRecipe> event) {
GTFOOverrideRecipe.init();
}
}