aboutsummaryrefslogtreecommitdiff
path: root/src/Java/gtPlusPlus/xmod/forestry/HANDLER_FR.java
blob: 66e65fe3a6984f86775c2f4013efefe0e2fff382 (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
51
52
53
package gtPlusPlus.xmod.forestry;

import cpw.mods.fml.common.Optional;
import forestry.core.blocks.BlockRegistry;
import forestry.core.proxy.Proxies;
import gtPlusPlus.core.lib.CORE;
import gtPlusPlus.core.lib.LoadedMods;
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;

public class HANDLER_FR extends BlockRegistry {

	//public static BlockDenseBeeHouse apiculture;

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

	public static void Init(){
		if (LoadedMods.Forestry){
			//apiculture = new BlockDenseBeeHouse();
			//apiculture.setBlockName("gtpp." + "beehouse");
			//GameRegistry.registerBlock(apiculture, ItemBlockForestry.class, StringUtil.cleanBlockName(apiculture));
		}
	}

	public static void postInit(){
		if (LoadedMods.Forestry){
			FR_Gregtech_Recipes.registerItems();
		}
	}

	public static boolean createBlockBreakParticles(final World world, final int x, final int y, final int z, final Block block){
		if (LoadedMods.Forestry){
			createBlockBreakParticles_INTERNAL(world, x, y, z, block);
		}
		return false;
	}

	@Optional.Method(modid = "Forestry")
	private static void createBlockBreakParticles_INTERNAL(final World world, final int x, final int y, final int z, final Block block){
		Proxies.common.addBlockDestroyEffects(world, x, y, z, block, 0);
	}


}