ActuallyAdditions/src/main/java/ellpeck/actuallyadditions/blocks/InitBlocks.java
2015-03-19 21:27:56 +01:00

47 lines
1.6 KiB
Java

package ellpeck.actuallyadditions.blocks;
import cpw.mods.fml.common.registry.GameRegistry;
import ellpeck.actuallyadditions.util.IName;
import ellpeck.actuallyadditions.util.Util;
import net.minecraft.block.Block;
public class InitBlocks{
public static Block blockCompost;
public static Block blockMisc;
public static Block blockFeeder;
public static Block blockGiantChest;
public static Block blockGrinder;
public static Block blockGrinderDouble;
public static Block blockFurnaceDouble;
public static Block blockInputter;
public static void init(){
Util.logInfo("Initializing Blocks...");
blockCompost = new BlockCompost();
Util.register(blockCompost, BlockCompost.TheItemBlock.class);
blockMisc = new BlockMisc();
Util.register(blockMisc, BlockMisc.TheItemBlock.class);
blockFeeder = new BlockFeeder();
Util.register(blockFeeder, BlockFeeder.TheItemBlock.class);
blockGiantChest = new BlockGiantChest();
Util.register(blockGiantChest, BlockGiantChest.TheItemBlock.class);
blockGrinder = new BlockGrinder(false);
Util.register(blockGrinder, BlockGrinder.TheItemBlock.class);
blockGrinderDouble = new BlockGrinder(true);
Util.register(blockGrinderDouble, BlockGrinder.TheItemBlock.class);
blockFurnaceDouble = new BlockFurnaceDouble();
Util.register(blockFurnaceDouble, BlockFurnaceDouble.TheItemBlock.class);
blockInputter = new BlockInputter();
GameRegistry.registerBlock(blockInputter, BlockInputter.TheItemBlock.class, ((IName)blockInputter).getName());
}
}