equivalent-exchange-3/common/com/pahimar/ee3/block/ModBlocks.java

62 lines
2.3 KiB
Java
Raw Normal View History

2013-08-23 16:59:50 +02:00
package com.pahimar.ee3.block;
import net.minecraft.block.Block;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import com.pahimar.ee3.lib.BlockIds;
import com.pahimar.ee3.lib.Strings;
import cpw.mods.fml.common.registry.GameRegistry;
/**
* Equivalent-Exchange-3
*
* ModBlocks
*
* @author pahimar
* @license Lesser GNU Public License v3 (http://www.gnu.org/licenses/lgpl.html)
*
*/
public class ModBlocks {
/* Mod block instances */
public static Block calcinator;
public static Block aludelBase;
public static Block alchemicalChest;
public static Block glassBell;
public static Block alchemyTable;
public static Block renderingTank;
2013-08-23 16:59:50 +02:00
public static Block redWaterStill;
public static Block redWaterFlowing;
public static void init() {
calcinator = new BlockCalcinator(BlockIds.CALCINATOR);
aludelBase = new BlockAludelBase(BlockIds.ALUDEL_BASE);
alchemicalChest = new BlockAlchemicalChest(BlockIds.ALCHEMICAL_CHEST);
glassBell = new BlockGlassBell(BlockIds.GLASS_BELL);
alchemyTable = new BlockAlchemyTable(BlockIds.ALCHEMY_TABLE);
renderingTank = new BlockRenderingTank(BlockIds.RENDERING_TANK);
2013-08-23 16:59:50 +02:00
redWaterStill = new BlockRedWaterStill(BlockIds.RED_WATER_STILL);
redWaterFlowing = new BlockRedWaterFlowing(BlockIds.RED_WATER_STILL - 1);
GameRegistry.registerBlock(calcinator, Strings.CALCINATOR_NAME);
GameRegistry.registerBlock(aludelBase, Strings.ALUDEL_NAME);
GameRegistry.registerBlock(alchemicalChest, Strings.ALCHEMICAL_CHEST_NAME);
GameRegistry.registerBlock(glassBell, Strings.GLASS_BELL_NAME);
GameRegistry.registerBlock(alchemyTable, Strings.ALCHEMY_TABLE_NAME);
GameRegistry.registerBlock(renderingTank, Strings.RENDERING_TANK_NAME);
2013-08-23 16:59:50 +02:00
//GameRegistry.registerBlock(redWaterStill, Strings.RED_WATER_STILL_NAME);
//GameRegistry.registerBlock(redWaterFlowing, Strings.RED_WATER_FLOWING_NAME);
initBlockRecipes();
}
private static void initBlockRecipes() {
GameRegistry.addRecipe(new ItemStack(glassBell), new Object[] { "iii", "i i", "i i", Character.valueOf('i'), Block.glass });
GameRegistry.addRecipe(new ItemStack(aludelBase), new Object[] { "iii", "sis", "iii", Character.valueOf('i'), Item.ingotIron, Character.valueOf('s'), Block.stone });
}
}