package net.qbar.common.init;

import net.minecraft.block.Block;
import net.minecraft.item.ItemBlock;
import net.minecraftforge.fml.common.registry.GameRegistry;
import net.qbar.QBar;
import net.qbar.common.block.BlockBase;
import net.qbar.common.block.BlockKeypunch;
import net.qbar.common.block.BlockMachineBase;
import net.qbar.common.block.BlockTank;
import net.qbar.common.tile.TileKeypunch;
import net.qbar.common.tile.TileTank;

public class QBarBlocks
{
    private static final BlockMachineBase punchingMachine = new BlockKeypunch();
    private static final BlockMachineBase tank            = new BlockTank();

    public static final void registerBlocks()
    {
        QBarBlocks.registerBlock(QBarBlocks.punchingMachine);
        QBarBlocks.registerBlock(QBarBlocks.tank);

        registerTile(TileTank.class, "tank");
        registerTile(TileKeypunch.class, "keypunch");
    }

    public static final void registerBlock(final Block block, final String name)
    {
        GameRegistry.register(block.setRegistryName(QBar.MODID, name));
        GameRegistry.register(new ItemBlock(block), block.getRegistryName());
    }

    public static final void registerBlock(final BlockBase block)
    {
        QBarBlocks.registerBlock(block, block.name);
    }

    public static final void registerBlock(final BlockMachineBase block)
    {
        QBarBlocks.registerBlock(block, block.name);
    }

    public static final void registerTile(Class c, String name)
	{
		GameRegistry.registerTileEntity(c, QBar.MODID + ":tank" + name);
	}
}
@@ -91,24 +91,68 @@
 .ItemBlock;%0A
+import net.minecraft.tileentity.TileEntity;%0A
 import net.m
@@ -199,16 +199,16 @@
 gistry;%0A
-
 import n
@@ -824,32 +824,43 @@
 tank);%0A%0A        
+QBarBlocks.
 registerTile(Til
@@ -889,16 +889,27 @@
         
+QBarBlocks.
 register
@@ -1514,35 +1514,78 @@
 ile(
-Class c, String name)%0A%09%7B%0A%09%09
+final Class%3C? extends TileEntity%3E c, final String name)%0A    %7B%0A        
 Game
@@ -1649,8 +1649,11 @@
 e);%0A
-%09
+    
 %7D%0A%7D

Fix raw types in tile register method