Advertisement
Guest User

Untitled

a guest
Mar 29th, 2015
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.71 KB | None | 0 0
  1. package mechcraft.items;
  2.  
  3. import cpw.mods.fml.common.registry.GameRegistry;
  4. import mechcraft.MechCraft;
  5. import mechcraft.ModInfo;
  6. import mechcraft.entities.EntityGrenadeRound;
  7. import net.minecraft.entity.Entity;
  8. import net.minecraft.entity.player.EntityPlayer;
  9. import net.minecraft.item.Item;
  10. import net.minecraft.world.World;
  11.  
  12. public class MechItems {
  13.  
  14. public static Item gaussRifle;
  15. public static Item grenadeRifle;
  16.  
  17. public static Item gaussRound;
  18. public static Item grenadeRound;
  19. public static Item mechSig;
  20.  
  21. public static Entity grenadeRoundEntity;
  22.  
  23.  
  24. public void EntityFetch(World world, EntityPlayer entityPlayer){
  25. grenadeRoundEntity = new EntityGrenadeRound(world, entityPlayer);
  26. }
  27.  
  28.  
  29. public static void init() {
  30.  
  31. gaussRifle = new GaussRifle();
  32.  
  33.  
  34. grenadeRifle = new ItemGun(2, grenadeRound, grenadeRoundEntity, 40).setUnlocalizedName(ModInfo.ID +"_" + "GrenadeRifle").setCreativeTab(MechCraft.tabMechCraft).setTextureName(ModInfo.ID + ":GrenadeRifle");
  35.  
  36. grenadeRound = new Item().setUnlocalizedName(ModInfo.ID +"_" + "GrenadeRound").setCreativeTab(MechCraft.tabMechCraft).setTextureName(ModInfo.ID + ":GrenadeRound");
  37. gaussRound = new Item().setUnlocalizedName(ModInfo.ID +"_" + "GaussRound").setCreativeTab(MechCraft.tabMechCraft).setTextureName(ModInfo.ID + ":GaussRound");
  38. mechSig = new Item().setUnlocalizedName(ModInfo.ID + "_MechSig").setCreativeTab(MechCraft.tabMechCraft).setTextureName(ModInfo.ID + ":tab");
  39.  
  40.  
  41. GameRegistry.registerItem(gaussRound, "GaussRound");
  42. GameRegistry.registerItem(grenadeRound, "GrenadeRound");
  43. GameRegistry.registerItem(grenadeRifle, "GrenadeRifle");
  44. }
  45. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement