mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-18 19:29:31 +00:00
41 lines
1.2 KiB
Java
41 lines
1.2 KiB
Java
/**
|
|
* This class was created by <Vazkii>. It's distributed as
|
|
* part of the Botania Mod. Get the Source Code in github:
|
|
* https://github.com/Vazkii/Botania
|
|
*
|
|
* Botania is Open Source and distributed under a
|
|
* Creative Commons Attribution-NonCommercial-ShareAlike 3.0 License
|
|
* (http://creativecommons.org/licenses/by-nc-sa/3.0/deed.en_GB)
|
|
*
|
|
* File Created @ [Jan 14, 2014, 5:17:55 PM (GMT)]
|
|
*/
|
|
package vazkii.botania.common.block;
|
|
|
|
import net.minecraft.block.Block;
|
|
import net.minecraft.item.ItemStack;
|
|
import net.minecraftforge.oredict.OreDictionary;
|
|
import vazkii.botania.common.block.tile.TileAltar;
|
|
import vazkii.botania.common.lib.LibBlockNames;
|
|
import vazkii.botania.common.lib.LibOreDict;
|
|
import cpw.mods.fml.common.registry.GameRegistry;
|
|
|
|
public final class ModBlocks {
|
|
|
|
public static Block flower;
|
|
public static Block altar;
|
|
|
|
public static void init() {
|
|
flower = new BlockModFlower();
|
|
altar = new BlockAltar();
|
|
|
|
for(int i = 0; i < 16; i++)
|
|
OreDictionary.registerOre(LibOreDict.FLOWER[i], new ItemStack(flower.blockID, 1, i));
|
|
|
|
initTileEntities();
|
|
}
|
|
|
|
private static void initTileEntities() {
|
|
GameRegistry.registerTileEntity(TileAltar.class, LibBlockNames.ALTAR);
|
|
}
|
|
}
|