equivalent-exchange-3/ee3_common/ee3/common/block/ModBlocks.java

48 lines
1.5 KiB
Java

package ee3.common.block;
import cpw.mods.fml.common.registry.GameRegistry;
import cpw.mods.fml.common.registry.LanguageRegistry;
import ee3.common.lib.BlockIds;
import net.minecraft.src.Block;
import net.minecraft.src.Item;
import net.minecraft.src.ItemStack;
import net.minecraft.src.Material;
public class ModBlocks {
/* Block name constants */
public static final String CALCINATOR_NAME = "calcinator";
public static final String RED_WATER_STILL_NAME = "redWaterStill";
/* Mod block instances */
public static Block calcinator;
public static Block redWaterStill;
public static Block redWaterFlowing;
public static void init() {
calcinator = new BlockCalcinator(BlockIds.CALCINATOR).setBlockName(CALCINATOR_NAME);
redWaterStill = new BlockRedWaterStill(BlockIds.RED_WATER_STILL, Material.water);
redWaterFlowing = new BlockRedWaterFlowing(BlockIds.RED_WATER_STILL - 1, Material.water);
GameRegistry.registerBlock(calcinator);
GameRegistry.registerBlock(redWaterStill);
GameRegistry.registerBlock(redWaterFlowing);
initBlockRecipes();
}
private static void initBlockRecipes() {
// Calcinator Recipe
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
});
}
}