Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.rbs.slurpiesdongles.init;
- import com.rbs.slurpiesdongles.blocks.BlockSapphireOre;
- import net.minecraft.block.Block;
- import net.minecraft.creativetab.CreativeTabs;
- import net.minecraft.item.Item;
- import net.minecraft.item.ItemBlock;
- import net.minecraftforge.registries.IForgeRegistry;
- /**
- * Created by Consular on 7/19/2017.
- */
- public class SDBlocks {
- public static BlockSapphireOre oreSapphire = new BlockSapphireOre("sapphire_ore").setCreativeTab(CreativeTabs.MATERIALS);
- public static void register(IForgeRegistry<Block> registry) {
- registry.registerAll(
- oreSapphire
- );
- }
- public static void registerItemBlocks(IForgeRegistry<Item> registry) {
- registry.registerAll(
- oreSapphire.createItemBlock()
- );
- }
- public static void registerModels() {
- oreSapphire.registerItemModel((ItemBlock) Item.getItemFromBlock(oreSapphire));
- }
- }
Add Comment
Please, Sign In to add comment