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

37 lines
1.2 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.lib.BlockIds;
import net.minecraft.src.Block;
2012-09-11 04:07:59 +02:00
import net.minecraft.src.Material;
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);
2012-09-11 04:07:59 +02:00
redWaterStill = new BlockRedWaterStill(BlockIds.RED_WATER_STILL, Material.water);
redWaterFlowing = new BlockRedWaterFlowing(BlockIds.RED_WATER_STILL - 1, Material.water);
2012-08-29 22:02:30 +02:00
LanguageRegistry.addName(calcinator, "Calcinator");
2012-09-11 04:07:59 +02:00
LanguageRegistry.addName(redWaterStill, "Red Water (Still)");
LanguageRegistry.addName(redWaterFlowing, "Red Water (Flowing)");
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
}
}