Advertisement
TmanDaCool1

The whole thing

Apr 18th, 2015
283
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.00 KB | None | 0 0
  1. package mod.mcreator;//based on master condiguration
  2.  
  3. import cpw.mods.fml.client.*;
  4. import cpw.mods.fml.client.registry.*;
  5. import cpw.mods.fml.common.*;
  6. import cpw.mods.fml.common.asm.*;
  7. import cpw.mods.fml.common.asm.transformers.*;
  8. import cpw.mods.fml.common.discovery.*;
  9. import cpw.mods.fml.common.discovery.asm.*;
  10. import cpw.mods.fml.common.event.*;
  11. import cpw.mods.fml.common.functions.*;
  12. import cpw.mods.fml.common.network.*;
  13. import cpw.mods.fml.common.registry.*;
  14. import cpw.mods.fml.common.toposort.*;
  15. import cpw.mods.fml.common.versioning.*;
  16. import cpw.mods.fml.relauncher.*;
  17. import cpw.mods.fml.server.*;
  18. import net.minecraft.block.*;
  19. import net.minecraft.block.material.*;
  20. import net.minecraft.client.*;
  21. import net.minecraft.client.audio.*;
  22. import net.minecraft.client.entity.*;
  23. import net.minecraft.client.gui.*;
  24. import net.minecraft.client.gui.achievement.*;
  25. import net.minecraft.client.gui.inventory.*;
  26. import net.minecraft.client.model.*;
  27. import net.minecraft.client.multiplayer.*;
  28. import net.minecraft.client.particle.*;
  29. import net.minecraft.client.renderer.*;
  30. import net.minecraft.client.renderer.culling.*;
  31. import net.minecraft.client.renderer.entity.*;
  32. import net.minecraft.client.renderer.tileentity.*;
  33. import net.minecraft.client.settings.*;
  34. import net.minecraft.command.*;
  35. import net.minecraft.crash.*;
  36. import net.minecraft.creativetab.*;
  37. import net.minecraft.dispenser.*;
  38. import net.minecraft.enchantment.*;
  39. import net.minecraft.entity.*;
  40. import net.minecraft.entity.ai.*;
  41. import net.minecraft.entity.boss.*;
  42. import net.minecraft.entity.effect.*;
  43. import net.minecraft.entity.item.*;
  44. import net.minecraft.entity.monster.*;
  45. import net.minecraft.entity.passive.*;
  46. import net.minecraft.entity.player.*;
  47. import net.minecraft.entity.projectile.*;
  48. import net.minecraft.inventory.*;
  49. import net.minecraft.item.*;
  50. import net.minecraft.item.crafting.*;
  51. import net.minecraft.nbt.*;
  52. import net.minecraft.network.*;
  53. import net.minecraft.network.rcon.*;
  54. import net.minecraft.pathfinding.*;
  55. import net.minecraft.potion.*;
  56. import net.minecraft.profiler.*;
  57. import net.minecraft.server.*;
  58. import net.minecraft.server.dedicated.*;
  59. import net.minecraft.server.gui.*;
  60. import net.minecraft.server.integrated.*;
  61. import net.minecraft.server.management.*;
  62. import net.minecraft.src.*;
  63. import net.minecraft.stats.*;
  64. import net.minecraft.tileentity.*;
  65. import net.minecraft.util.*;
  66. import net.minecraft.village.*;
  67. import net.minecraft.world.*;
  68. import net.minecraft.world.biome.*;
  69. import net.minecraft.world.chunk.*;
  70. import net.minecraft.world.chunk.storage.*;
  71. import net.minecraft.world.demo.*;
  72. import net.minecraft.world.gen.*;
  73. import net.minecraft.world.gen.feature.*;
  74. import net.minecraft.world.gen.layer.*;
  75. import net.minecraft.world.gen.structure.*;
  76. import net.minecraft.world.storage.*;
  77. import net.minecraftforge.classloading.*;
  78. import net.minecraftforge.client.*;
  79. import net.minecraftforge.client.event.*;
  80. import net.minecraftforge.client.event.sound.*;
  81. import net.minecraftforge.common.*;
  82. import net.minecraftforge.event.*;
  83. import net.minecraftforge.event.entity.*;
  84. import net.minecraftforge.event.entity.item.*;
  85. import net.minecraftforge.event.entity.living.*;
  86. import net.minecraftforge.event.entity.minecart.*;
  87. import net.minecraftforge.event.entity.player.*;
  88. import net.minecraftforge.event.terraingen.*;
  89. import net.minecraftforge.event.world.*;
  90. import net.minecraftforge.oredict.*;
  91. import net.minecraftforge.transformers.*;
  92. import net.minecraft.init.*;
  93. import java.util.*;
  94. import net.minecraftforge.common.util.*;
  95.  
  96. import org.lwjgl.opengl.GL11;
  97.  
  98.  
  99.  
  100. @SuppressWarnings("unchecked")
  101. public class mcreator_copperBar{
  102.  
  103. public mcreator_copperBar(){}
  104.  
  105. public static Item block;public static Object instance;public void load(){
  106.  
  107. GameRegistry.addSmelting(mcreator_copperOre.block, new ItemStack(block), 1.0f);
  108. new ChestGenHooks("dungeonChest").addItem(new WeightedRandomChestContent(new ItemStack(block), 1, 7, 10));}
  109. public void generateNether(World world, Random random, int chunkX, int chunkZ){}
  110. public void generateSurface(World world, Random random, int chunkX, int chunkZ){}
  111. public int addFuel(ItemStack fuel){return 0;}
  112. public void serverLoad(FMLServerStartingEvent event){}
  113. public void preInit(FMLPreInitializationEvent event){}
  114. public void registerRenderers(){
  115. }
  116.  
  117.  
  118. static{
  119. block = (new ItemcopperBar(424));
  120. Item.itemRegistry.addObject(424, "CopperBar", block);
  121.  
  122. }
  123.  
  124. static class ItemcopperBar extends Item{
  125.  
  126. public ItemcopperBar(int par1){
  127. setMaxDamage(0);
  128. maxStackSize = 64;
  129. setUnlocalizedName("CopperBar");
  130. setTextureName("CopperBar1");
  131. setCreativeTab(CreativeTabs.tabMaterials);
  132. }
  133. public int getItemEnchantability()
  134. {
  135. return 0;
  136. }
  137. public int getMaxItemUseDuration(ItemStack par1ItemStack)
  138. {
  139. return 0;
  140. }
  141. public float getStrVsBlock(ItemStack par1ItemStack, Block par2Block)
  142. {
  143. return 1.0F;
  144. }
  145. public void addInformation(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List list, boolean par4)
  146. {
  147. list.add("A bar. It's made of copper.");
  148. }
  149.  
  150.  
  151.  
  152.  
  153. }}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement