Advertisement
Guest User

CreativeBlocks.java

a guest
Mar 15th, 2014
323
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 19.71 KB | None | 0 0
  1. package CreativeBlocks.CreativeBlocks.common;
  2.  
  3.  
  4. import CreativeBlocks.CreativeBlocks.biomegenbase.CreativeBiome;
  5. import CreativeBlocks.CreativeBlocks.biomegenbase.CreativeBiomeConfig;
  6. import CreativeBlocks.CreativeBlocks.block.BlockGen;
  7. import CreativeBlocks.CreativeBlocks.block.BlueBlock;
  8. import CreativeBlocks.CreativeBlocks.block.BlueQuartzPillar;
  9. import CreativeBlocks.CreativeBlocks.block.BnWBlock;
  10. import CreativeBlocks.CreativeBlocks.block.BrownBlock;
  11. import CreativeBlocks.CreativeBlocks.block.BrownQuartzPillar;
  12. import CreativeBlocks.CreativeBlocks.block.GrayBlock;
  13. import CreativeBlocks.CreativeBlocks.block.GrayQuartzPillar;
  14. import CreativeBlocks.CreativeBlocks.block.GreenBlock;
  15. import CreativeBlocks.CreativeBlocks.block.GreenQuartzPillar;
  16. import CreativeBlocks.CreativeBlocks.block.LBlueBlock;
  17. import CreativeBlocks.CreativeBlocks.block.LBlueQuartzPillar;
  18. import CreativeBlocks.CreativeBlocks.block.OrangeBlock;
  19. import CreativeBlocks.CreativeBlocks.block.OrangeQuartzPillar;
  20. import CreativeBlocks.CreativeBlocks.block.PinkBlock;
  21. import CreativeBlocks.CreativeBlocks.block.PinkQuartzPillar;
  22. import CreativeBlocks.CreativeBlocks.block.PurpleBlock;
  23. import CreativeBlocks.CreativeBlocks.block.PurpleQuartzPillar;
  24. import CreativeBlocks.CreativeBlocks.block.RedBlock;
  25. import CreativeBlocks.CreativeBlocks.block.RedQuartzPillar;
  26. import CreativeBlocks.CreativeBlocks.block.YellowBlock;
  27. import CreativeBlocks.CreativeBlocks.block.YellowQuartzPillar;
  28. import CreativeBlocks.CreativeBlocks.creativetabs.TabCreativeBlocks;
  29. import CreativeBlocks.CreativeBlocks.item.BucketPaint;
  30. import CreativeBlocks.CreativeBlocks.placeholder.PlaceHolder;
  31. import net.minecraft.block.Block;
  32. import net.minecraft.block.material.Material;
  33. import net.minecraft.creativetab.CreativeTabs;
  34. import net.minecraft.item.ItemStack;
  35. import net.minecraft.world.biome.BiomeGenBase;
  36. import net.minecraftforge.common.Configuration;
  37. import cpw.mods.fml.common.Mod;
  38. import cpw.mods.fml.common.Mod.EventHandler;
  39. import cpw.mods.fml.common.Mod.Init;
  40. import cpw.mods.fml.common.Mod.Instance;
  41. import cpw.mods.fml.common.Mod.Item;
  42. import cpw.mods.fml.common.Mod.PostInit;
  43. import cpw.mods.fml.common.Mod.PreInit;
  44. import cpw.mods.fml.common.event.FMLInitializationEvent;
  45. import cpw.mods.fml.common.event.FMLPostInitializationEvent;
  46. import cpw.mods.fml.common.event.FMLPreInitializationEvent;
  47. import cpw.mods.fml.common.network.NetworkMod;
  48. import cpw.mods.fml.common.registry.GameData;
  49. import cpw.mods.fml.common.registry.GameRegistry;
  50. import cpw.mods.fml.common.registry.LanguageRegistry;
  51. import cpw.mods.fml.relauncher.Side;
  52.  
  53.  
  54.  
  55. @Mod(modid="CreativeBlocks", name="CreativeBlocks", version="1.3 Beta")
  56. @NetworkMod(clientSideRequired=true, serverSideRequired=false)
  57. public class CreativeBlocks
  58. {
  59. @Instance("CreativeBlocks")
  60. public static CreativeBlocks instance;
  61.  
  62.  
  63.     public static final String modid = "creativeblocks";
  64.    
  65.    
  66.     public static Block RedBlock;
  67.     public static Block BlueBlock;
  68.     public static Block GreenBlock;
  69.     public static Block YellowBlock;
  70.     public static Block PinkBlock;
  71.     public static Block OrangeBlock;
  72.     public static Block PurpleBlock;
  73.     public static Block LBlueBlock;
  74.     public static Block GrayBlock;
  75.     public static Block BrownBlock;
  76.     public static Block RedQuartzPillar;
  77.     public static Block BlueQuartzPillar;
  78.     public static Block GreenQuartzPillar;
  79.     public static Block YellowQuartzPillar;
  80.     public static Block PinkQuartzPillar;
  81.     public static Block OrangeQuartzPillar;
  82.     public static Block PurpleQuartzPillar;
  83.     public static Block LBlueQuartzPillar;
  84.     public static Block GrayQuartzPillar;
  85.     public static Block BrownQuartzPillar;
  86.     public static Block BnWBlock;
  87.     public static Block BlockGen = new BlockGen(241, Material.iron);
  88.  
  89.    
  90.     public static BiomeGenBase CreativeBiome;
  91.    
  92.    
  93.    
  94.    
  95.    
  96.     public static net.minecraft.item.Item PlaceHolder;
  97.     public static net.minecraft.item.Item BucketPaint;
  98.  
  99.    
  100.    
  101.  
  102.    
  103.     public static int RedBlockID;
  104.     public static int BlueBlockID;
  105.     public static int GreenBlockID;
  106.     public static int YellowBlockID;
  107.     public static int PinkBlockID;
  108.     public static int OrangeBlockID;
  109.     public static int PurpleBlockID;
  110.     public static int LBlueBlockID;
  111.     public static int GrayBlockID;
  112.     public static int BrownBlockID;
  113.     public static int RedQuartzPillarID;
  114.     public static int BlueQuartzPillarID;
  115.     public static int GreenQuartzPillarID;
  116.     public static int YellowQuartzPillarID;
  117.     public static int PinkQuartzPillarID;
  118.     public static int OrangeQuartzPillarID;
  119.     public static int PurpleQuartzPillarID;
  120.     public static int LBlueQuartzPillarID;
  121.     public static int GrayQuartzPillarID;
  122.     public static int BrownQuartzPillarID;
  123.     public static int BnWBlockID;
  124.     public static int CreativeBiomeConfig;
  125.  
  126.    
  127.    
  128.    
  129.    
  130.    
  131.     public static int PlaceHolderID;
  132.     public static int BucketPaintID;
  133.    
  134.  
  135.     public static CreativeTabs TabCreativeBlocks = new TabCreativeBlocks(CreativeTabs.getNextID(), "CreativeBlocks");
  136.  
  137.    
  138.    
  139.    
  140.     @EventHandler
  141.     public void preInit(FMLPreInitializationEvent event) {
  142.     Configuration config = new Configuration(event.getSuggestedConfigurationFile());
  143.     config.load();
  144.     //CreativeBiomeConfig.LoadConfigSettings(event.getSuggestedConfigurationFile());
  145.    
  146.     //Tabs
  147.     PlaceHolder = new PlaceHolder(config.get(Configuration.CATEGORY_ITEM, "placeHolder", 3999).getInt());
  148.    
  149.    
  150.     RedBlockID = config.get(Configuration.CATEGORY_BLOCK, "RedBlock", 4000).getInt();
  151.     RedQuartzPillarID = config.get(Configuration.CATEGORY_BLOCK, "RedQuartzPillar", 4001).getInt();
  152.     BlueBlockID = config.get(Configuration.CATEGORY_BLOCK, "BlueBlock", 4002).getInt();
  153.     BlueQuartzPillarID = config.get(Configuration.CATEGORY_BLOCK, "BlueQuartzPillar", 4003).getInt();
  154.     GreenBlockID = config.get(Configuration.CATEGORY_BLOCK, "GreenBlock", 4004).getInt();
  155.     GreenQuartzPillarID = config.get(Configuration.CATEGORY_BLOCK, "GreenQuartzPillar", 4005).getInt();
  156.     YellowBlockID = config.get(Configuration.CATEGORY_BLOCK, "YellowBlock", 4006).getInt();
  157.     YellowQuartzPillarID = config.get(Configuration.CATEGORY_BLOCK, "YellowQuartzPillar", 4007).getInt();
  158.     PinkBlockID = config.get(Configuration.CATEGORY_BLOCK, "PinkBlock", 4008).getInt();
  159.     PinkQuartzPillarID = config.get(Configuration.CATEGORY_BLOCK, "PinkQuartzPillar", 4009).getInt();
  160.     OrangeBlockID = config.get(Configuration.CATEGORY_BLOCK, "OrangeBlock", 4010).getInt();
  161.     OrangeQuartzPillarID = config.get(Configuration.CATEGORY_BLOCK, "OrangeQuartzPillar", 4011).getInt();
  162.     PurpleBlockID = config.get(Configuration.CATEGORY_BLOCK, "PurpleBlock", 4012).getInt();
  163.     PurpleQuartzPillarID = config.get(Configuration.CATEGORY_BLOCK, "PurpleQuartzPillar", 4013).getInt();
  164.     LBlueBlockID = config.get(Configuration.CATEGORY_BLOCK, "LBlueBlock", 4014).getInt();
  165.     LBlueQuartzPillarID = config.get(Configuration.CATEGORY_BLOCK, "LBlueQuartzPillar", 4015).getInt();
  166.     GrayBlockID = config.get(Configuration.CATEGORY_BLOCK, "GrayBlock", 4016).getInt();
  167.     GrayQuartzPillarID = config.get(Configuration.CATEGORY_BLOCK, "GrayQuartzPillar", 4017).getInt();
  168.     BrownBlockID = config.get(Configuration.CATEGORY_BLOCK, "BrownBlock", 4018).getInt();
  169.     BrownQuartzPillarID = config.get(Configuration.CATEGORY_BLOCK, "BrownQuartzPillar", 4019).getInt();
  170.     //BlockGenID = config.get(Configuration.CATEGORY_BLOCK, "BlockGen", 241).getInt();
  171.     BnWBlockID = config.get(Configuration.CATEGORY_BLOCK, "BnWBlock", 4020).getInt();
  172.  
  173.    
  174.  
  175.    
  176.     CreativeBiome = new CreativeBiome(23).setBiomeName("Creative Biome").setMinMaxHeight(0.2F,.0F).setDisableRain();
  177.     CreativeBiomeConfig = config.get(Configuration.CATEGORY_GENERAL, "CreativeBiomeConfig", true).getInt();;
  178.  
  179.    
  180.    
  181.    
  182.    
  183.    
  184.     //Items
  185.     BucketPaint = new BucketPaint(config.get(Configuration.CATEGORY_ITEM, "BucketPaintr", 4022).getInt());
  186.    
  187.    
  188.     config.save();
  189.    
  190.  
  191.     loadBlock();
  192.    
  193.     //Tabs
  194.    
  195.     if(this.CreativeBiomeConfig == 1){
  196.         GameRegistry.addBiome(CreativeBiome);
  197.         }
  198.            
  199.            
  200.     LanguageRegistry.addName(PlaceHolder, "PlaceHolder");
  201.    
  202.    
  203.  
  204.    
  205.     //Red
  206.     GameRegistry.registerBlock(RedBlock, ItemMetaBlock.class, modid + (RedBlock.getUnlocalizedName().substring(5)));
  207.     LanguageRegistry.addName(new ItemStack(RedBlock, 1, 0), "Red Block");
  208.     LanguageRegistry.addName(new ItemStack(RedBlock, 1, 1), "Red Block 1");
  209.     LanguageRegistry.addName(new ItemStack(RedBlock, 1, 2), "Red Block 2");
  210.     LanguageRegistry.addName(new ItemStack(RedBlock, 1, 3), "Red Block 3");
  211.     LanguageRegistry.addName(new ItemStack(RedBlock, 1, 4), "Red Block 4");
  212.     LanguageRegistry.addName(new ItemStack(RedBlock, 1, 5), "Red Block 5");
  213.     LanguageRegistry.addName(new ItemStack(RedBlock, 1, 6), "Red Block 6");
  214.     LanguageRegistry.addName(new ItemStack(RedBlock, 1, 7), "Red Quartz Block");
  215.    
  216.     GameRegistry.registerBlock(RedQuartzPillar, "Red Quartz Pillar");
  217.     LanguageRegistry.addName(RedQuartzPillar, "Red Quartz Pillar");
  218.    
  219.     //Blue
  220.     GameRegistry.registerBlock(BlueBlock, ItemMetaBlock.class, modid + (BlueBlock.getUnlocalizedName().substring(5)));
  221.     LanguageRegistry.addName(new ItemStack(BlueBlock, 1, 0), "Blue Block");
  222.     LanguageRegistry.addName(new ItemStack(BlueBlock, 1, 1), "Blue Block 1");
  223.     LanguageRegistry.addName(new ItemStack(BlueBlock, 1, 2), "Blue Block 2");
  224.     LanguageRegistry.addName(new ItemStack(BlueBlock, 1, 3), "Blue Block 3");
  225.     LanguageRegistry.addName(new ItemStack(BlueBlock, 1, 4), "Blue Block 4");
  226.     LanguageRegistry.addName(new ItemStack(BlueBlock, 1, 5), "Blue Block 5");
  227.     LanguageRegistry.addName(new ItemStack(BlueBlock, 1, 6), "Blue Block 6");
  228.     LanguageRegistry.addName(new ItemStack(BlueBlock, 1, 7), "Blue Quartz Block");
  229.    
  230.     GameRegistry.registerBlock(BlueQuartzPillar, "Blue Quartz Pillar");
  231.     LanguageRegistry.addName(BlueQuartzPillar, "Blue Quartz Pillar");
  232.    
  233.     //Green
  234.     GameRegistry.registerBlock(GreenBlock, ItemMetaBlock.class, modid + (GreenBlock.getUnlocalizedName().substring(5)));
  235.     LanguageRegistry.addName(new ItemStack(GreenBlock, 1, 0), "Green Block");
  236.     LanguageRegistry.addName(new ItemStack(GreenBlock, 1, 1), "Green Block 1");
  237.     LanguageRegistry.addName(new ItemStack(GreenBlock, 1, 2), "Green Block 2");
  238.     LanguageRegistry.addName(new ItemStack(GreenBlock, 1, 3), "Green Block 3");
  239.     LanguageRegistry.addName(new ItemStack(GreenBlock, 1, 4), "Green Block 4");
  240.     LanguageRegistry.addName(new ItemStack(GreenBlock, 1, 5), "Green Block 5");
  241.     LanguageRegistry.addName(new ItemStack(GreenBlock, 1, 6), "Green Block 6");
  242.     LanguageRegistry.addName(new ItemStack(GreenBlock, 1, 7), "Green Quartz Block");
  243.    
  244.     GameRegistry.registerBlock(GreenQuartzPillar, "Green Quartz Pillar");
  245.     LanguageRegistry.addName(GreenQuartzPillar, "Green Quartz Pillar");
  246.    
  247.     //Yellow
  248.     GameRegistry.registerBlock(YellowBlock, ItemMetaBlock.class, modid + (YellowBlock.getUnlocalizedName().substring(5)));
  249.     LanguageRegistry.addName(new ItemStack(YellowBlock, 1, 0), "Yellow Block");
  250.     LanguageRegistry.addName(new ItemStack(YellowBlock, 1, 1), "Yellow Block 1");
  251.     LanguageRegistry.addName(new ItemStack(YellowBlock, 1, 2), "Yellow Block 2");
  252.     LanguageRegistry.addName(new ItemStack(YellowBlock, 1, 3), "Yellow Block 3");
  253.     LanguageRegistry.addName(new ItemStack(YellowBlock, 1, 4), "Yellow Block 4");
  254.     LanguageRegistry.addName(new ItemStack(YellowBlock, 1, 5), "Yellow Block 5");
  255.     LanguageRegistry.addName(new ItemStack(YellowBlock, 1, 6), "Yellow Block 6");
  256.     LanguageRegistry.addName(new ItemStack(YellowBlock, 1, 7), "Yellow Quartz Block");
  257.    
  258.     GameRegistry.registerBlock(YellowQuartzPillar, "Yellow Quartz Pillar");
  259.     LanguageRegistry.addName(YellowQuartzPillar, "Yellow Quartz Pillar");
  260.    
  261.     //Pink
  262.     GameRegistry.registerBlock(PinkBlock, ItemMetaBlock.class, modid + (PinkBlock.getUnlocalizedName().substring(5)));
  263.     LanguageRegistry.addName(new ItemStack(PinkBlock, 1, 0), "Pink Block");
  264.     LanguageRegistry.addName(new ItemStack(PinkBlock, 1, 1), "Pink Block 1");
  265.     LanguageRegistry.addName(new ItemStack(PinkBlock, 1, 2), "Pink Block 2");
  266.     LanguageRegistry.addName(new ItemStack(PinkBlock, 1, 3), "Pink Block 3");
  267.     LanguageRegistry.addName(new ItemStack(PinkBlock, 1, 4), "Pink Block 4");
  268.     LanguageRegistry.addName(new ItemStack(PinkBlock, 1, 5), "Pink Block 5");
  269.     LanguageRegistry.addName(new ItemStack(PinkBlock, 1, 6), "Pink Block 6");
  270.     LanguageRegistry.addName(new ItemStack(PinkBlock, 1, 7), "Pink Quartz Block");
  271.    
  272.     GameRegistry.registerBlock(PinkQuartzPillar, "Pink Quartz Pillar");
  273.     LanguageRegistry.addName(PinkQuartzPillar, "Pink Quartz Pillar");
  274.    
  275.     //Orange
  276.     GameRegistry.registerBlock(OrangeBlock, ItemMetaBlock.class, modid + (OrangeBlock.getUnlocalizedName().substring(5)));
  277.     LanguageRegistry.addName(new ItemStack(OrangeBlock, 1, 0), "Orange Block");
  278.     LanguageRegistry.addName(new ItemStack(OrangeBlock, 1, 1), "Orange Block 1");
  279.     LanguageRegistry.addName(new ItemStack(OrangeBlock, 1, 2), "Orange Block 2");
  280.     LanguageRegistry.addName(new ItemStack(OrangeBlock, 1, 3), "Orange Block 3");
  281.     LanguageRegistry.addName(new ItemStack(OrangeBlock, 1, 4), "Orange Block 4");
  282.     LanguageRegistry.addName(new ItemStack(OrangeBlock, 1, 5), "Orange Block 5");
  283.     LanguageRegistry.addName(new ItemStack(OrangeBlock, 1, 6), "Orange Block 6");
  284.     LanguageRegistry.addName(new ItemStack(OrangeBlock, 1, 7), "Orange Quartz Block");
  285.    
  286.     GameRegistry.registerBlock(OrangeQuartzPillar, "Orange Quartz Pillar");
  287.     LanguageRegistry.addName(OrangeQuartzPillar, "Orange Quartz Pillar");
  288.    
  289.     //Purple
  290.     GameRegistry.registerBlock(PurpleBlock, ItemMetaBlock.class, modid + (PurpleBlock.getUnlocalizedName().substring(5)));
  291.     LanguageRegistry.addName(new ItemStack(PurpleBlock, 1, 0), "Purple Block");
  292.     LanguageRegistry.addName(new ItemStack(PurpleBlock, 1, 1), "Purple Block 1");
  293.     LanguageRegistry.addName(new ItemStack(PurpleBlock, 1, 2), "Purple Block 2");
  294.     LanguageRegistry.addName(new ItemStack(PurpleBlock, 1, 3), "Purple Block 3");
  295.     LanguageRegistry.addName(new ItemStack(PurpleBlock, 1, 4), "Purple Block 4");
  296.     LanguageRegistry.addName(new ItemStack(PurpleBlock, 1, 5), "Purple Block 5");
  297.     LanguageRegistry.addName(new ItemStack(PurpleBlock, 1, 6), "Purple Block 6");
  298.     LanguageRegistry.addName(new ItemStack(PurpleBlock, 1, 7), "Purple Quartz Block");
  299.    
  300.     GameRegistry.registerBlock(PurpleQuartzPillar, "Purple Quartz Pillar");
  301.     LanguageRegistry.addName(PurpleQuartzPillar, "Purple Quartz Pillar");
  302.    
  303.     //LBlue
  304.     GameRegistry.registerBlock(LBlueBlock, ItemMetaBlock.class, modid + (LBlueBlock.getUnlocalizedName().substring(5)));
  305.     LanguageRegistry.addName(new ItemStack(LBlueBlock, 1, 0), "Light Blue Block");
  306.     LanguageRegistry.addName(new ItemStack(LBlueBlock, 1, 1), "Light Blue Block 1");
  307.     LanguageRegistry.addName(new ItemStack(LBlueBlock, 1, 2), "Light Blue Block 2");
  308.     LanguageRegistry.addName(new ItemStack(LBlueBlock, 1, 3), "Light Blue Block 3");
  309.     LanguageRegistry.addName(new ItemStack(LBlueBlock, 1, 4), "Light Blue Block 4");
  310.     LanguageRegistry.addName(new ItemStack(LBlueBlock, 1, 5), "Light Blue Block 5");
  311.     LanguageRegistry.addName(new ItemStack(LBlueBlock, 1, 6), "Light Blue Block 6");
  312.     LanguageRegistry.addName(new ItemStack(LBlueBlock, 1, 7), "Light Blue Quartz Block");
  313.    
  314.     GameRegistry.registerBlock(LBlueQuartzPillar, "Light Blue Quartz Pillar");
  315.     LanguageRegistry.addName(LBlueQuartzPillar, "Light Blue Quartz Pillar");
  316.    
  317.     //Gray
  318.     GameRegistry.registerBlock(GrayBlock, ItemMetaBlock.class, modid + (GrayBlock.getUnlocalizedName().substring(5)));
  319.     LanguageRegistry.addName(new ItemStack(GrayBlock, 1, 0), "Gray Block");
  320.     LanguageRegistry.addName(new ItemStack(GrayBlock, 1, 1), "Gray Block 1");
  321.     LanguageRegistry.addName(new ItemStack(GrayBlock, 1, 2), "Gray Block 2");
  322.     LanguageRegistry.addName(new ItemStack(GrayBlock, 1, 3), "Gray Block 3");
  323.     LanguageRegistry.addName(new ItemStack(GrayBlock, 1, 4), "Gray Block 4");
  324.     LanguageRegistry.addName(new ItemStack(GrayBlock, 1, 5), "Gray Block 5");
  325.     LanguageRegistry.addName(new ItemStack(GrayBlock, 1, 6), "Gray Block 6");
  326.     LanguageRegistry.addName(new ItemStack(GrayBlock, 1, 7), "Gray Quartz Block");
  327.    
  328.     GameRegistry.registerBlock(GrayQuartzPillar, "Gray Quartz Pillar");
  329.     LanguageRegistry.addName(GrayQuartzPillar, "Gray Quartz Pillar");
  330.    
  331.     //Brown
  332.     GameRegistry.registerBlock(BrownBlock, ItemMetaBlock.class, modid + (BrownBlock.getUnlocalizedName().substring(5)));
  333.     LanguageRegistry.addName(new ItemStack(BrownBlock, 1, 0), "Brown Block");
  334.     LanguageRegistry.addName(new ItemStack(BrownBlock, 1, 1), "Brown Block 1");
  335.     LanguageRegistry.addName(new ItemStack(BrownBlock, 1, 2), "Brown Block 2");
  336.     LanguageRegistry.addName(new ItemStack(BrownBlock, 1, 3), "Brown Block 3");
  337.     LanguageRegistry.addName(new ItemStack(BrownBlock, 1, 4), "Brown Block 4");
  338.     LanguageRegistry.addName(new ItemStack(BrownBlock, 1, 5), "Brown Block 5");
  339.     LanguageRegistry.addName(new ItemStack(BrownBlock, 1, 6), "Brown Block 6");
  340.     LanguageRegistry.addName(new ItemStack(BrownBlock, 1, 7), "Brown Quartz Block");
  341.    
  342.     GameRegistry.registerBlock(BrownQuartzPillar, "Brown Quartz Pillar");
  343.     LanguageRegistry.addName(BrownQuartzPillar, "Brown Quartz Pillar");
  344.    
  345.     //BnW
  346.     GameRegistry.registerBlock(BnWBlock, ItemMetaBlock.class, modid + (BnWBlock.getUnlocalizedName().substring(5)));
  347.     LanguageRegistry.addName(new ItemStack(BnWBlock, 1, 0), "Black Block");
  348.     LanguageRegistry.addName(new ItemStack(BnWBlock, 1, 1), "White Block");
  349.     LanguageRegistry.addName(new ItemStack(BnWBlock, 1, 2), "Black Quartz Block");
  350.     LanguageRegistry.addName(new ItemStack(BnWBlock, 1, 3), "White Quartz Block");
  351.    
  352.     GameRegistry.registerBlock(BlockGen, "Random Colour Block");
  353.     LanguageRegistry.addName(BlockGen, "Random Colour Block");
  354.    
  355.     //Items
  356.     LanguageRegistry.addName(new ItemStack(BucketPaint, 1, 0), "White Paint");
  357.     LanguageRegistry.addName(new ItemStack(BucketPaint, 1, 1), "Red Paint");
  358.     LanguageRegistry.addName(new ItemStack(BucketPaint, 1, 2), "Blue Paint");
  359.     LanguageRegistry.addName(new ItemStack(BucketPaint, 1, 3), "Green Paint");
  360.     LanguageRegistry.addName(new ItemStack(BucketPaint, 1, 4), "Pink Paint");
  361.     LanguageRegistry.addName(new ItemStack(BucketPaint, 1, 5), "Purple Paint");
  362.     LanguageRegistry.addName(new ItemStack(BucketPaint, 1, 6), "Orange Paint");
  363.     LanguageRegistry.addName(new ItemStack(BucketPaint, 1, 7), "Light Blue Paint");
  364.     LanguageRegistry.addName(new ItemStack(BucketPaint, 1, 8), "Gray Paint");
  365.     LanguageRegistry.addName(new ItemStack(BucketPaint, 1, 9), "Brown Paint");
  366.    
  367.    
  368.    
  369.    
  370.    
  371.    
  372.    
  373. }
  374.  
  375. @Init
  376. public void load(FMLInitializationEvent event) {
  377.    
  378. }
  379.  
  380.  
  381.  
  382.  
  383. @PostInit
  384.     public static void postInit(FMLPostInitializationEvent event){
  385.    
  386. }
  387.  
  388. private void loadBlock(){
  389.    
  390.    
  391.    
  392.    
  393.     //Red
  394.     RedBlock = new RedBlock(RedBlockID, Material.iron);
  395.     GreenBlock = new GreenBlock(GreenBlockID, Material.iron);
  396.     BlueBlock = new BlueBlock(BlueBlockID, Material.iron);
  397.     LBlueBlock = new LBlueBlock(LBlueBlockID, Material.iron);
  398.     YellowBlock = new YellowBlock(YellowBlockID, Material.iron);
  399.     PinkBlock = new PinkBlock(PinkBlockID, Material.iron);
  400.     OrangeBlock = new OrangeBlock(OrangeBlockID, Material.iron);
  401.     PurpleBlock = new PurpleBlock(PurpleBlockID, Material.iron);
  402.     GrayBlock = new GrayBlock(GrayBlockID, Material.iron);
  403.     BrownBlock = new BrownBlock(BrownBlockID, Material.iron);
  404.     BnWBlock = new BnWBlock(BnWBlockID, Material.iron);
  405.     //BlockGen = new BlockGen(BlockGenID, Material.iron);
  406.    
  407.     RedQuartzPillar = new RedQuartzPillar(RedQuartzPillarID, Material.iron);
  408.     GreenQuartzPillar = new GreenQuartzPillar(GreenQuartzPillarID, Material.iron);
  409.     BlueQuartzPillar = new BlueQuartzPillar(BlueQuartzPillarID, Material.iron);
  410.     LBlueQuartzPillar = new LBlueQuartzPillar(LBlueQuartzPillarID, Material.iron);
  411.     YellowQuartzPillar = new YellowQuartzPillar(YellowQuartzPillarID, Material.iron);
  412.     PinkQuartzPillar = new PinkQuartzPillar(PinkQuartzPillarID, Material.iron);
  413.     OrangeQuartzPillar = new OrangeQuartzPillar(OrangeQuartzPillarID, Material.iron);
  414.     PurpleQuartzPillar = new PurpleQuartzPillar(PurpleQuartzPillarID, Material.iron);
  415.     GrayQuartzPillar = new GrayQuartzPillar(GrayQuartzPillarID, Material.iron);
  416.     BrownQuartzPillar = new BrownQuartzPillar(BrownQuartzPillarID, Material.iron);
  417.  
  418.    
  419.  
  420. }
  421.  
  422.  
  423.    
  424.    
  425. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement