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

60 lines
1.9 KiB
Java
Raw Normal View History

2012-08-29 22:02:30 +02:00
package ee3.common.block;
import cpw.mods.fml.common.registry.GameRegistry;
import cpw.mods.fml.common.registry.LanguageRegistry;
import ee3.common.EquivalentExchange3;
2012-08-29 22:02:30 +02:00
import ee3.common.lib.BlockIds;
import net.minecraft.src.Block;
2012-09-17 05:04:14 +02:00
import net.minecraft.src.Item;
import net.minecraft.src.ItemStack;
2012-09-11 04:07:59 +02:00
import net.minecraft.src.Material;
2012-08-29 22:02:30 +02:00
2012-10-27 23:41:02 +02:00
/**
* ModBlocks
*
* Class containing all the EE3 custom blocks
*
* @author pahimar
* @license Lesser GNU Public License v3 (http://www.gnu.org/licenses/lgpl.html)
*
*/
2012-08-29 22:02:30 +02:00
public class ModBlocks {
/* Block name constants */
public static final String CALCINATOR_NAME = "calcinator";
2012-09-11 04:07:59 +02:00
public static final String RED_WATER_STILL_NAME = "redWaterStill";
2012-08-29 22:02:30 +02:00
/* Mod block instances */
2012-08-29 22:02:30 +02:00
public static Block calcinator;
2012-09-11 04:07:59 +02:00
public static Block redWaterStill;
public static Block redWaterFlowing;
2012-08-29 22:02:30 +02:00
public static void init() {
calcinator = new BlockCalcinator(BlockIds.CALCINATOR).setBlockName(CALCINATOR_NAME).setCreativeTab(EquivalentExchange3.tabsEE3);
redWaterStill = new BlockRedWaterStill(BlockIds.RED_WATER_STILL, Material.water).setCreativeTab(EquivalentExchange3.tabsEE3);
redWaterFlowing = new BlockRedWaterFlowing(BlockIds.RED_WATER_STILL - 1, Material.water).setCreativeTab(EquivalentExchange3.tabsEE3);
2012-08-29 22:02:30 +02:00
GameRegistry.registerBlock(calcinator);
2012-09-11 04:07:59 +02:00
GameRegistry.registerBlock(redWaterStill);
GameRegistry.registerBlock(redWaterFlowing);
2012-08-29 22:02:30 +02:00
2012-09-17 05:04:14 +02:00
initBlockRecipes();
}
private static void initBlockRecipes() {
// Calcinator Recipe
/* Temporarily disabled for pre-release 1, as it is not completely functional
2012-09-17 05:04:14 +02:00
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
});
*/
2012-08-29 22:02:30 +02:00
}
}