Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.mightydanp.rodrcore.common.block;
- import com.mightydanp.rodrcore.api.common.handler.CRegistryHandler;
- import com.mightydanp.rodrcore.common.item.ItemOreSand;
- import com.mightydanp.rodrcore.common.item.ItemTwigs;
- import com.mightydanp.rodrcore.common.lib.BlockReference;
- import cpw.mods.fml.common.registry.GameRegistry;
- import net.minecraft.block.Block;
- import net.minecraft.block.material.Material;
- public class ModBlocks extends CRegistryHandler{
- private static CRegistryHandler register;
- public static Block oreSand;
- public static Block rocks;
- public static Block twigs;
- public static void preInit() {
- oreSand = new BlockOreSand(BlockReference.ORESAND_NAME);
- GameRegistry.registerBlock(oreSand, ItemOreSand.class, oreSand.getUnlocalizedName());
- registerObject(rocks = new BlockRocks(BlockReference.ROCKS_NAME), BlockReference.ROCKS_NAME, null);
- registerObject(twigs = new BlockTwigs(BlockReference.TWIGS_NAME), BlockReference.TWIGS_NAME, null);
- }
- public static void init() {
- registerOreDictionary();
- }
- public static void registerOreDictionary() {
- registerOreDictionary(oreSand, "oreCopper", 0);
- registerOreDictionary(oreSand, "oreCopperSand", 0);
- registerOreDictionary(oreSand, "oreTin", 1);
- registerOreDictionary(oreSand, "oreTinSand", 1);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement