aboutsummaryrefslogtreecommitdiff
path: root/src/Java/gtPlusPlus/xmod/forestry/HANDLER_FR.java
blob: e92aa40ca2d1ffe1888cc0d110dcc32033abe4da (plain)
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
package gtPlusPlus.xmod.forestry;

import forestry.core.proxy.Proxies;
import gtPlusPlus.core.lib.CORE;
import gtPlusPlus.core.lib.LoadedMods;
import gtPlusPlus.xmod.forestry.bees.alveary.AlvearyHandler;
import gtPlusPlus.xmod.forestry.bees.items.FR_ItemRegistry;
import gtPlusPlus.xmod.forestry.bees.recipe.FR_Gregtech_Recipes;
import net.minecraft.block.Block;
import net.minecraft.world.World;
import cpw.mods.fml.common.Optional;

public class HANDLER_FR {


	public static void preInit(){		
		if (LoadedMods.Forestry){
			FR_ItemRegistry.Register();
			if (CORE.configSwitches.enableCustomAlvearyBlocks){
				AlvearyHandler.run();
			}
		}		
	}

	public static void Init(){
		if (LoadedMods.Forestry){
		
		}		
	}

	public static void postInit(){
		if (LoadedMods.Forestry){
			FR_Gregtech_Recipes.registerItems();	
		}		
	}	
	
	public static boolean createBlockBreakParticles(World world, int x, int y, int z, Block block){
		if (LoadedMods.Forestry){
			createBlockBreakParticles_INTERNAL(world, x, y, z, block);
		}
		return false;
	}
	
	@Optional.Method(modid = "Forestry")
	private static void createBlockBreakParticles_INTERNAL(World world, int x, int y, int z, Block block){
		Proxies.common.addBlockDestroyEffects(world, x, y, z, block, 0);
	}
	
	
}