WitherDoggie

Block Class2

May 19th, 2016
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 3.40 KB | None | 0 0
  1. package com.wither.withermod.blocks;
  2.  
  3. import com.wither.withermod.Main;
  4. import com.wither.withermod.blocks.ModBlock.HarvestLevelEnum;
  5. import com.wither.withermod.blocks.ModBlock.HarvestToolEnum;
  6. import com.wither.withermod.blocks.crops.Corn;
  7. import com.wither.withermod.blocks.crops.Lettuce;
  8. import com.wither.withermod.blocks.crops.Tomato;
  9. import com.wither.withermod.creativetabs.ModCreativeTabs;
  10. import com.wither.withermod.items.ItemRegistry;
  11. import com.wither.withermod.utils.WoodType;
  12.  
  13. import net.minecraft.block.Block;
  14. import net.minecraft.block.material.Material;
  15. import net.minecraft.creativetab.CreativeTabs;
  16. import net.minecraft.init.Blocks;
  17. import net.minecraftforge.fml.common.registry.GameRegistry;
  18.  
  19. public class BlockRegistry {
  20.    
  21.     //Blocks
  22.     public static ModBlock Garium_Ore;
  23.     public static ModBlock Radium_Ore;
  24.     public static ModBlock Smooth_slab;
  25.     public static ModBlock GariumBlock;
  26.     public static ModBlock RadiumBlock;
  27.    
  28.     //NetherOres
  29.     public static ModBlock LavaGemOre;
  30.    
  31.     //PaneBlocks
  32.     public static ModPane testpane;
  33.     public static ModPane canvaswall;
  34.     public static ModPane woodWall;
  35.    
  36.     //Crops
  37.     public static Block cornPlant;
  38.     public static Block tomatoPlant;
  39.     public static Block lettucePlant;
  40.  
  41.    
  42.     public static void registerBlocks(){
  43.        
  44.         //Blocks
  45.         BlockRegistry.Garium_Ore = new ModBlock(Material.rock, "garium_ore", 3.0f, 5.0f, HarvestToolEnum.PICKAXE, HarvestLevelEnum.IRON, ModCreativeTabs.modCreativeTabBlocks, 1, 4, 7, 6, 4, 30, true, false, false);
  46.         BlockRegistry.Radium_Ore = new ModBlock(Material.rock, "radium_ore", 3.0f, 5.0f, HarvestToolEnum.PICKAXE, HarvestLevelEnum.IRON, ModCreativeTabs.modCreativeTabBlocks, 1, 4, 6, 4, 1, 13, true, false, false);
  47.         BlockRegistry.Smooth_slab = new ModBlock(Material.rock, "smooth_slab", 3.0f, 5.0f, HarvestToolEnum.PICKAXE, HarvestLevelEnum.STONE, ModCreativeTabs.modCreativeTabBlocks, 1);
  48.         BlockRegistry.GariumBlock = new ModBlock(Material.rock, "garium_block", 3.0f, 5.0f, HarvestToolEnum.PICKAXE, HarvestLevelEnum.IRON, ModCreativeTabs.modCreativeTabBlocks, 1);
  49.         BlockRegistry.RadiumBlock = new ModBlock(Material.rock, "radium_block", 3.0f, 5.0f, HarvestToolEnum.PICKAXE, HarvestLevelEnum.IRON, ModCreativeTabs.modCreativeTabBlocks, 1);
  50.        
  51.         //Nether Ores
  52.         BlockRegistry.LavaGemOre = new ModBlock(Material.rock, "lava_gem_ore", 3.0f, 5.0f, HarvestToolEnum.PICKAXE, HarvestLevelEnum.IRON, ModCreativeTabs.modCreativeTabBlocks, 1, 1, 10, 7, 1, 127, new Block[]{Blocks.netherrack}, 1, false, true, false);
  53.  
  54.        
  55.         //PaneBlocks
  56.         BlockRegistry.testpane = new ModPane(Material.rock, "testpane", 2.0f, 4.0f, CreativeTabs.tabBlock, HarvestToolEnum.PICKAXE, HarvestLevelEnum.WOOD);
  57.         BlockRegistry.canvaswall = new ModPane(Material.cloth, "wool_wall", 0.8f, 3.0f, ModCreativeTabs.modCreativeTabBlocks);
  58.         BlockRegistry.woodWall = new ModPane(Material.wood, "wood_wall", 2.0f, 3.0f, ModCreativeTabs.modCreativeTabBlocks, WoodType.WOOD_TYPE_IDS);
  59.        
  60.         //Crops
  61.         GameRegistry.registerBlock(cornPlant = new Corn("cornPlant"), "cornPlant");
  62.         GameRegistry.registerBlock(tomatoPlant = new Tomato("tomatoPlant"), "tomatoPlant");
  63.         GameRegistry.registerBlock(lettucePlant = new Lettuce("lettucePlant"), "lettucePlant");
  64.     }
  65.    
  66.     public static void setDrops(){
  67.        
  68.         BlockRegistry.Garium_Ore.setDrops(BlockRegistry.Garium_Ore);
  69.         BlockRegistry.Radium_Ore.setDrops(ItemRegistry.Radium);
  70.         BlockRegistry.LavaGemOre.setDrops(ItemRegistry.LavaGem);
  71.     }
  72. }
Add Comment
Please, Sign In to add comment