SHARE
TWEET

Untitled

a guest Jul 19th, 2017 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package com.rbs.slurpiesdongles.init;
  2.  
  3. import com.rbs.slurpiesdongles.blocks.BlockSapphireOre;
  4. import net.minecraft.block.Block;
  5. import net.minecraft.creativetab.CreativeTabs;
  6. import net.minecraft.item.Item;
  7. import net.minecraft.item.ItemBlock;
  8. import net.minecraftforge.registries.IForgeRegistry;
  9.  
  10. /**
  11.  * Created by Consular on 7/19/2017.
  12.  */
  13. public class SDBlocks {
  14.  
  15.     public static BlockSapphireOre oreSapphire = new BlockSapphireOre("sapphire_ore").setCreativeTab(CreativeTabs.MATERIALS);
  16.  
  17.     public static void register(IForgeRegistry<Block> registry) {
  18.         registry.registerAll(
  19.                 oreSapphire
  20.         );
  21.  
  22.     }
  23.  
  24.     public static void registerItemBlocks(IForgeRegistry<Item> registry) {
  25.         registry.registerAll(
  26.                 oreSapphire.createItemBlock()
  27.         );
  28.  
  29.     }
  30.  
  31.     public static void registerModels() {
  32.         oreSapphire.registerItemModel((ItemBlock) Item.getItemFromBlock(oreSapphire));
  33.  
  34.     }
  35. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top