61 lines
2.3 KiB
Java
61 lines
2.3 KiB
Java
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;
|
|
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);
|
|
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);
|
|
//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 });
|
|
}
|
|
}
|