Guest User

Untitled

a guest
Jun 18th, 2016
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. package com.rbs.slurpiesdongles.blocks;
  2.  
  3. import net.minecraft.block.Block;
  4. import net.minecraftforge.fml.common.registry.GameRegistry;
  5.  
  6. /**
  7. * Created by RedBu on 6/17/2016.
  8. */
  9. public class BlockRegistry {
  10. //Crops
  11. public static Block blueberrycrop;
  12.  
  13.  
  14.  
  15.  
  16. public static void loadBlockRegistry() {
  17. blueberrycrop = registerBlockCrop("blueberrycrop");
  18.  
  19. }
  20.  
  21. private static Block registerBlockCrop(String registerName) {
  22. final Block rbsCrop = new BlockRbsCrop(registerName);
  23.  
  24.  
  25. return registerBlock(registerName, rbsCrop);
  26. }
  27.  
  28.  
  29. public static Block registerBlock(String registerName, Block block) {
  30. block.setRegistryName(registerName);
  31. block.setUnlocalizedName(registerName);
  32.  
  33. GameRegistry.register(block);
  34.  
  35. return block;
  36. }
  37. }
Add Comment
Please, Sign In to add comment