Guest User

Untitled

a guest
Nov 11th, 2016
92
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package thecraft.mod.common;
  2.  
  3.  
  4. import java.awt.Color;
  5.  
  6. import cpw.mods.fml.common.Mod;
  7. import cpw.mods.fml.common.Mod.EventHandler;
  8. import cpw.mods.fml.common.Mod.Instance;
  9. import cpw.mods.fml.common.SidedProxy;
  10. import cpw.mods.fml.common.event.FMLInitializationEvent;
  11. import cpw.mods.fml.common.event.FMLPostInitializationEvent;
  12. import cpw.mods.fml.common.event.FMLPreInitializationEvent;
  13. import cpw.mods.fml.common.network.NetworkRegistry;
  14. import cpw.mods.fml.common.registry.EntityRegistry;
  15. import cpw.mods.fml.common.registry.GameRegistry;
  16. import net.minecraft.block.Block;
  17. import net.minecraft.block.material.Material;
  18. import net.minecraft.creativetab.CreativeTabs;
  19. import net.minecraft.entity.Entity;
  20. import net.minecraft.init.Items;
  21. import net.minecraft.item.Item;
  22. import net.minecraft.item.Item.ToolMaterial;
  23. import net.minecraft.item.ItemArmor.ArmorMaterial;
  24. import net.minecraft.item.ItemStack;
  25. import net.minecraftforge.common.util.EnumHelper;
  26. import thecraft.mod.proxy.commonproxy;
  27.  
  28. @Mod(modid = ewifaction.MODID, name = "ewifaction" , version = "1.0.0")
  29.  
  30. public class ewifaction
  31. {
  32. public static CreativeTabs exonorCreativeTabs = new exonorCreativeTabs("ewifaction_creative_tabs");
  33. public static final String MODID = "ewifaction";
  34. @Instance(MODID)
  35. public static ewifaction instance;
  36.  
  37. @SidedProxy(clientSide = "thecraft.mod.proxy.clientproxy", serverSide = "thecraft.mod.proxy.commonproxy" )
  38. public static commonproxy proxy;
  39.  
  40. public static Item itemExonite, itemMaxencite, HelmetExonite, ChestPlateExonite, LegginsExonite, BootsExonite, exonitesworld, exnoitpichaxe, exoniteaxe, exonitchovel, exonithoe, HelmetMaxencite, ChestplateMaxencite, leggingsMaxencite, BootsMaxencite, maxencitesworld, maxencitepickaxe, maxenciteaxe, maxencitechovel, maxencitehoe, itemewilite, helmetewilite, chestplateewilite, leggingsewilite, bootsewilite, ewilitesworld;
  41. public static Block oreExonite, exoniteblock, oreMaxencite, blockmaxencite, oreEwilite, blockewilite, ewilitechest;
  42.  
  43. public static ArmorMaterial exonitarmor = EnumHelper.addArmorMaterial("exonitarmor", 1999, new int[]{3, 7, 5, 2}, 32);
  44. public static ToolMaterial exoniteTool = EnumHelper.addToolMaterial("exonitetool", 15, 2444, 13.0F, 6, 40);
  45. public static ArmorMaterial maxenciteArmor = EnumHelper.addArmorMaterial("maxencitearmor", 999, new int []{3, 7, 4, 2}, 20);
  46. public static ToolMaterial maxenciteTool = EnumHelper.addToolMaterial("maxencitetool", 8, 1199, 10.0F, 4, 25);
  47. public static ArmorMaterial ewilitearmor = EnumHelper.addArmorMaterial("ewilitearmor", 3999, new int []{5, 10, 8, 5}, 40);
  48. public static ToolMaterial ewilitetool = EnumHelper.addToolMaterial("ewilitetool", 15, 1499, 15.0F, 13, 40);
  49.  
  50. @EventHandler
  51. public void preInit(FMLPreInitializationEvent test)
  52. {
  53. itemExonite = new ItemExonite().setUnlocalizedName("exonit").setTextureName(MODID + ":itemexonittex");
  54. HelmetExonite = new ItemExonitArmor(exonitarmor, 0).setUnlocalizedName("helmetexonit").setTextureName(MODID + ":exonithelmettex");
  55. ChestPlateExonite = new ItemExonitArmor(exonitarmor, 1).setUnlocalizedName("chestplateexonite").setTextureName(MODID + ":exonitechestplatetex");
  56. LegginsExonite = new ItemExonitArmor(exonitarmor, 2).setUnlocalizedName("leggingsexonit").setTextureName(MODID + ":exoniteleggingstex");
  57. BootsExonite = new ItemExonitArmor(exonitarmor, 3).setUnlocalizedName("bootsexonit").setTextureName(MODID + ":exonitbootstex");
  58. exonitesworld = new ItemExoniteSworld(exoniteTool).setUnlocalizedName("sworldexonite").setTextureName(MODID + ":exonitesworldtex");
  59. exnoitpichaxe = new ItemExonitePichaxe(exoniteTool).setUnlocalizedName("exonitepickaxe").setTextureName(MODID + ":exonitepickaxetex");
  60. exoniteaxe = new ItemExoniteAxe(exoniteTool).setUnlocalizedName("exoniteaxe").setTextureName(MODID +":exoniteaxetex");
  61. exonitchovel = new ItemExoniteChovel(exoniteTool).setUnlocalizedName("exonitechovel").setTextureName(MODID + ":exonitechoveltex");
  62. exonithoe = new ItemExoniteHoe(exoniteTool).setUnlocalizedName("exonitehoe").setTextureName(MODID + ":exonitehoetex");
  63. itemMaxencite = new ItemMaxencite().setUnlocalizedName("itemmaxencite").setTextureName(MODID + ":itemmaxencitetex");
  64. HelmetMaxencite = new ItemMaxenciteArmor(maxenciteArmor, 0).setUnlocalizedName("helmetmaxencite").setTextureName(MODID + ":helmetmaxencitetex");
  65. ChestplateMaxencite = new ItemMaxenciteArmor(maxenciteArmor, 1).setUnlocalizedName("chestplatemaxencite").setTextureName(MODID + ":chestplatemaxencitetex");
  66. leggingsMaxencite = new ItemMaxenciteArmor(maxenciteArmor, 2).setUnlocalizedName("leggingsmaxencite").setTextureName(MODID + ":leggingsmaxencitetex");
  67. BootsMaxencite = new ItemMaxenciteArmor(maxenciteArmor, 3).setUnlocalizedName("bootsmaxencite").setTextureName(MODID + ":bootsmaxencitetex");
  68. maxencitesworld = new ItemMaxenciteSworld(maxenciteTool).setUnlocalizedName("sworldmaxencite").setTextureName(MODID +":maxencitesworldtex");
  69. maxencitepickaxe = new ItemMaxencitePickaxe(maxenciteTool).setUnlocalizedName("pickaxemaxencite").setTextureName(MODID + ":maxencitepickaxetex");
  70. maxenciteaxe = new ItemMaxenciteAxe(maxenciteTool).setUnlocalizedName("axemaxencite").setTextureName(MODID + ":maxenciteaxetex");
  71. maxencitechovel = new ItemMaxenciteChovel(maxenciteTool).setUnlocalizedName("chovelmaxencite").setTextureName(MODID + ":maxencitechoveltex");
  72. maxencitehoe = new ItemMaxenciteHoe(maxenciteTool).setUnlocalizedName("hoemaxencite").setTextureName(MODID + ":maxencitehoetex");
  73. itemewilite = new ItemEwilite().setUnlocalizedName("itemewilite").setTextureName(MODID + ":ewiliteitemtex");
  74. helmetewilite = new ItemEwiliteArmor(ewilitearmor, 0).setUnlocalizedName("helmetewilite").setTextureName(MODID + ":helmetewilitetex");
  75. chestplateewilite = new ItemEwiliteArmor(ewilitearmor, 1).setUnlocalizedName("chestplateewilite").setTextureName(MODID + ":chestplateewilitetex");
  76. leggingsewilite = new ItemEwiliteArmor(ewilitearmor, 2).setUnlocalizedName("leggingsewilite").setTextureName(MODID + ":leggingsewilitetex");
  77. bootsewilite = new ItemEwiliteArmor(ewilitearmor, 3).setUnlocalizedName("bootsewilite").setTextureName(MODID + ":bootsewilitetex");
  78. ewilitesworld = new ItemEwiliteSworld(ewilitetool).setUnlocalizedName("sworldewilite").setTextureName(MODID + ":sworldewilitetex");
  79.  
  80. GameRegistry.registerItem(itemExonite, "exonit");
  81. GameRegistry.registerItem(itemMaxencite, "maxencite");
  82. GameRegistry.registerItem(HelmetExonite, "exonite_helmet");
  83. GameRegistry.registerItem(ChestPlateExonite, "exonite_chestplate");
  84. GameRegistry.registerItem(LegginsExonite, "exonite_leggings");
  85. GameRegistry.registerItem(BootsExonite, "exonite_boots");
  86. GameRegistry.registerItem(exonitesworld, "exonite_sworld");
  87. GameRegistry.registerItem(exnoitpichaxe, "exnoit_pichaxe");
  88. GameRegistry.registerItem(exoniteaxe, "exonite_axe");
  89. GameRegistry.registerItem(exonitchovel, "exonit_chovel");
  90. GameRegistry.registerItem(exonithoe, "exonit_hoe");
  91. GameRegistry.registerItem(HelmetMaxencite, "maxencite_helmet");
  92. GameRegistry.registerItem(ChestplateMaxencite, "maxencite_chestplate");
  93. GameRegistry.registerItem(leggingsMaxencite, "maxencite_leggings");
  94. GameRegistry.registerItem(BootsMaxencite, "maxencite_boots");
  95. GameRegistry.registerItem(maxencitesworld, "maxencite_sworld");
  96. GameRegistry.registerItem(maxencitepickaxe, "maxencite_pickaxe");
  97. GameRegistry.registerItem(maxenciteaxe, "maxencite_axe");
  98. GameRegistry.registerItem(maxencitechovel, "maxencite_chovel");
  99. GameRegistry.registerItem(maxencitehoe, "maxencite_hoe");
  100. GameRegistry.registerItem(itemewilite, "item_ewilite");
  101. GameRegistry.registerItem(helmetewilite, "helmet_ewilite");
  102. GameRegistry.registerItem(chestplateewilite, "chestplate_ewilite");
  103. GameRegistry.registerItem(leggingsewilite, "leggings_ewilite");
  104. GameRegistry.registerItem(bootsewilite, "boots_ewilite");
  105. GameRegistry.registerItem(ewilitesworld, "ewilite_sworld");
  106.  
  107. oreExonite = new OreExonite(Material.iron).setBlockName("oreexonite").setBlockTextureName(MODID + ":oreexonitetex").setHardness(15.0F).setResistance(4);
  108. exoniteblock = new ExoniteBlock(Material.iron).setBlockName("exoniteblock").setBlockTextureName(MODID + ":exoniteblocktex").setHardness(15.0F).setResistance(4);
  109. oreMaxencite = new OreMaxencite(Material.iron).setBlockName("oremaxencite").setBlockTextureName(MODID + ":oremaxencitetex").setHardness(7.0F).setResistance(4);
  110. blockmaxencite = new BlockMaxencite(Material.iron).setBlockName("blockmaxencite").setBlockTextureName(MODID + ":blockmaxencitetex").setHardness(7.0F).setResistance(4);
  111. oreEwilite = new OreEwilite(Material.iron).setBlockName("oreexilite").setBlockTextureName(MODID + ":oreewilitetex").setHardness(15.0F).setResistance(4);
  112. blockewilite = new BlockEwilite(Material.iron).setBlockName("blockewilite").setBlockTextureName(MODID + ":blockewilitetex").setHardness(15.0F).setResistance(4);
  113. ewilitechest = new Ewilitechest(Material.iron).setBlockName("ewilitechest").setBlockTextureName(MODID + ":ewilitechesttex").setHardness(25.0F).setResistance(10);
  114.  
  115. GameRegistry.registerBlock(oreExonite, "ore_exonite");
  116. GameRegistry.registerBlock(exoniteblock, "exonite_block");
  117. GameRegistry.registerBlock(oreMaxencite, "ore_maxencite");
  118. GameRegistry.registerBlock(blockmaxencite, "block_maxencite");
  119. GameRegistry.registerBlock(blockewilite, "block_ewilite");
  120. GameRegistry.registerBlock(oreEwilite, "ore_ewilite");
  121. GameRegistry.registerBlock(ewilitechest, "ewilite_chest");
  122.  
  123. GameRegistry.registerWorldGenerator(new ExonitGeneration(), 0);
  124. GameRegistry.registerWorldGenerator(new MaxenciteGeneration(), 0);
  125. GameRegistry.registerWorldGenerator(new EwiliteGeneration(), 0);
  126. }
  127. @EventHandler
  128. public void init(FMLInitializationEvent test)
  129. {
  130. GameRegistry.addRecipe(new ItemStack(exoniteblock), new Object[]{"SSS", "SSS", "SSS", 'S', ewifaction.itemExonite});
  131. GameRegistry.addRecipe(new ItemStack(HelmetExonite), new Object[]{"SSS", "S S", " ", 'S', ewifaction.itemExonite});
  132. GameRegistry.addRecipe(new ItemStack(ChestPlateExonite), new Object[]{"S S", "SSS", "SSS", 'S', ewifaction.itemExonite});
  133. GameRegistry.addRecipe(new ItemStack(LegginsExonite), new Object[]{"SSS", "S S", "S S", 'S', ewifaction.itemExonite});
  134. GameRegistry.addRecipe(new ItemStack(BootsExonite), new Object[]{" ", "S S", "S S", 'S', ewifaction.itemExonite});
  135. GameRegistry.addRecipe(new ItemStack(BootsExonite, 1), new Object[]{"S S", "S S", " ", 'S', ewifaction.itemMaxencite});
  136. GameRegistry.addRecipe(new ItemStack(exonitesworld), new Object[]{"S", "S", "A", 'S', ewifaction.itemExonite, 'A', Items.stick});
  137. GameRegistry.addRecipe(new ItemStack(exnoitpichaxe), new Object[]{"SSS", " A ", " A ", 'S', ewifaction.itemExonite, 'A', Items.stick});
  138. GameRegistry.addRecipe(new ItemStack(exoniteaxe), new Object[]{"SS ", "SA ", " A ", 'S', ewifaction.itemExonite, 'A', Items.stick});
  139. GameRegistry.addRecipe(new ItemStack(exonitchovel), new Object[]{"S", "A", "A", 'S', ewifaction.itemExonite, 'A', Items.stick});
  140. GameRegistry.addRecipe(new ItemStack(exonithoe), new Object[]{"SS", "A ", "A ", 'S', ewifaction.itemExonite, 'A', Items.stick});
  141. GameRegistry.addRecipe(new ItemStack(itemExonite, 9), new Object[]{" ", "S", " ", 'S', ewifaction.exoniteblock});
  142. GameRegistry.addRecipe(new ItemStack(itemExonite, 9), new Object[]{"S", " ", " ", 'S', ewifaction.exoniteblock});
  143. GameRegistry.addRecipe(new ItemStack(itemExonite, 9), new Object[]{" ", " ", "S", 'S', ewifaction.exoniteblock});
  144. GameRegistry.addRecipe(new ItemStack(blockmaxencite, 9), new Object[]{"SSS", "SSS", "SSS", 'S', ewifaction.itemMaxencite});
  145. GameRegistry.addRecipe(new ItemStack(HelmetMaxencite, 1), new Object[]{"SSS", "S S", " ", 'S', ewifaction.itemMaxencite});
  146. GameRegistry.addRecipe(new ItemStack(ChestplateMaxencite, 1), new Object[]{"S S", "SSS", "SSS", 'S', ewifaction.itemMaxencite});
  147. GameRegistry.addRecipe(new ItemStack(leggingsMaxencite, 1), new Object[]{"SSS", "S S", "S S", 'S', ewifaction.itemMaxencite});
  148. GameRegistry.addRecipe(new ItemStack(BootsMaxencite, 1), new Object[]{"S S", "S S", " ", 'S', ewifaction.itemMaxencite});
  149. GameRegistry.addRecipe(new ItemStack(BootsMaxencite, 1), new Object[]{" ", "S S", "S S", 'S', ewifaction.itemMaxencite});
  150. GameRegistry.addRecipe(new ItemStack(maxencitesworld), new Object[]{"S", "S", "A", 'S', ewifaction.itemMaxencite, 'A', Items.stick});
  151. GameRegistry.addRecipe(new ItemStack(maxencitepickaxe), new Object[]{"SSS", " A ", " A ", 'S', ewifaction.itemMaxencite, 'A', Items.stick});
  152. GameRegistry.addRecipe(new ItemStack(maxencitechovel), new Object[]{"S", "A", "A", 'S', ewifaction.itemMaxencite, 'A', Items.stick});
  153. GameRegistry.addRecipe(new ItemStack(maxenciteaxe), new Object[]{"SS ", "SA ", " A ", 'S', ewifaction.itemMaxencite, 'A', Items.stick});
  154. GameRegistry.addRecipe(new ItemStack(maxencitehoe), new Object[]{"SS", "A ", "A ", 'S', ewifaction.itemMaxencite, 'A', Items.stick});
  155. GameRegistry.addRecipe(new ItemStack(itemMaxencite, 9), new Object[]{" ", "S", " ", 'S', ewifaction.blockmaxencite});
  156. GameRegistry.addRecipe(new ItemStack(itemMaxencite, 9), new Object[]{"S", " ", " ", 'S', ewifaction.blockmaxencite});
  157. GameRegistry.addRecipe(new ItemStack(itemMaxencite, 9), new Object[]{" ", " ", "S", 'S', ewifaction.blockmaxencite});
  158. GameRegistry.addRecipe(new ItemStack(itemewilite, 9), new Object[]{"S", " ", " ", 'S', ewifaction.blockewilite});
  159. GameRegistry.addRecipe(new ItemStack(itemewilite, 9), new Object[]{" ", "S", " ", 'S', ewifaction.blockewilite});
  160. GameRegistry.addRecipe(new ItemStack(itemewilite, 9), new Object[]{" ", " ", "S", 'S', ewifaction.blockewilite});
  161. GameRegistry.addRecipe(new ItemStack(blockewilite, 1), new Object[]{"SSS", "SSS", "SSS", 'S', ewifaction.itemewilite});
  162.  
  163. GameRegistry.addSmelting(ewifaction.oreExonite, new ItemStack(ewifaction.itemExonite), 1);
  164. GameRegistry.addSmelting(ewifaction.oreMaxencite, new ItemStack(ewifaction.itemMaxencite), 1);
  165. GameRegistry.addSmelting(ewifaction.oreEwilite, new ItemStack(ewifaction.itemewilite), 1);
  166.  
  167. GameRegistry.registerTileEntity(TileEntityEwiliteChest.class, "MODID:ewilitechest");
  168. NetworkRegistry.INSTANCE.registerGuiHandler(instance, new GuihandlerEwifaction());
  169. }
  170. @EventHandler
  171. public void postInit(FMLPostInitializationEvent test)
  172. {
  173. }
  174. }
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×