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

56 lines
1.5 KiB
Java

package com.pahimar.ee3.block;
import com.pahimar.ee3.EquivalentExchange3;
import com.pahimar.ee3.lib.BlockIds;
import com.pahimar.ee3.lib.Strings;
import cpw.mods.fml.common.registry.GameRegistry;
import cpw.mods.fml.common.registry.LanguageRegistry;
import net.minecraft.block.Block;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
/**
* ModBlocks
*
* Class containing all the EE3 custom blocks
*
* @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 redWaterStill;
public static Block redWaterFlowing;
public static void init() {
calcinator = new BlockCalcinator(BlockIds.CALCINATOR);
redWaterStill = new BlockRedWaterStill(BlockIds.RED_WATER_STILL);
redWaterFlowing = new BlockRedWaterFlowing(BlockIds.RED_WATER_STILL - 1);
GameRegistry.registerBlock(calcinator);
GameRegistry.registerBlock(redWaterStill);
GameRegistry.registerBlock(redWaterFlowing);
initBlockRecipes();
}
private static void initBlockRecipes() {
// Calcinator Recipe
/* Temporarily disabled for pre-release 1, as it is not completely functional
GameRegistry.addRecipe(new ItemStack(calcinator),
new Object[] {"i i","iii","sfs",
Character.valueOf('i'), Item.ingotIron,
Character.valueOf('s'), Block.stone,
Character.valueOf('f'), Item.flintAndSteel
});
*/
}
}