/*******************************************************************************
* Copyright (c) 2015, Superloup10
*
* Wolf's Addons is distributed under the terms of the Minecraft Mod Public
* License 1.0, or MMPL. Please check the contents of the license located in
* https://www.dropbox.com/s/6l16rc7b1aks211/MMPL-1.0.txt
******************************************************************************/
package fr.wolf.addons.common.block;
import fr.wolf.addons.common.creativestabs.WolfCT;
import net.minecraft.block.Block;
import net.minecraftforge.fml.common.Loader;
import net.minecraftforge.fml.common.registry.GameRegistry;
import net.minecraftforge.oredict.OreDictionary;
public class WolfBlockList
{
public static Block SPReedBooster;
public static Block compressor;
public static Block forge;
public static Block furnace;
public static Block lunar;
public static Block solar;
public static Block geothermal;
public static Block battery;
public static Block cable;
public static WolfBlock silverOre;
public static WolfBlock silverBlock;
public static Block silverReedBlock;
public static void loadBlock()
{
// Blocks normaux
silverOre = new SilverOre();
silverBlock = new SilverBlock();
// Blocks avec tileEntity, container, gui, etc...
compressor = new Compressor().setHardness(3.0F).setResistance(5.0F).setStepSound(Block.soundTypeStone).setUnlocalizedName("compressor");
forge = new Forge().setHardness(3.0F).setResistance(5.0F).setStepSound(Block.soundTypeStone).setUnlocalizedName("forge");
furnace = new Furnace().setHardness(3.0F).setResistance(5.0F).setStepSound(Block.soundTypeMetal).setUnlocalizedName("furnace");
// pipe
cable = new Cable().setUnlocalizedName("cable").setCreativeTab(WolfCT.creativeTabsBlocks);
// GameRegistry.registerBlock(silverOre, "silver_ore");
// GameRegistry.registerBlock(silverBlock, "silver_block");
OreDictionary.registerOre("silver_ore", silverOre);
OreDictionary.registerOre("silver_block", silverBlock);
GameRegistry.registerBlock(compressor, "compressor");
// GameRegistry.registerBlock(forge, "forge");
GameRegistry.registerBlock(furnace, "furnace");
GameRegistry.registerBlock(cable, "cable");
}
public static void loadIntegration()
{
if(Loader.isModLoaded("sevenno_addons"))
{
try
{
silverReedBlock = new SilverReedBlock().setStepSound(Block.soundTypeGrass).setUnlocalizedName("silver_reed_block");
SPReedBooster = (Block)Class.forName("sevenno_addons.common.block.SABlockList").getField("SPReedBooster").get(null);
GameRegistry.registerBlock(silverReedBlock, "silver_reed_block");
}
catch(Exception ex)
{
ex.printStackTrace();
}
}
}
}