Advertisement
ZornTaov

mod_Tank

Mar 2nd, 2011
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1. package net.minecraft.src;
  2. // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
  3. // Jad home page: http://www.kpdus.com/jad.html
  4. // Decompiler options: packimports(3) braces deadcode
  5.  
  6. import java.util.*;
  7. import java.io.*;
  8.  
  9. public class mod_tank extends BaseMod
  10. {
  11.  
  12. public mod_tank()
  13. {
  14. ModLoader.RegisterEntityID(EntityTank.class, "Tank", ModLoader.getUniqueEntityId());
  15. spriteIndex = ModLoader.addOverride("/gui/items.png", "/gui/tank.png");
  16. tankitem = new ItemTank(4001).setIconIndex(spriteIndex).setItemName("Tank");
  17. ModLoader.AddName(tankitem, "Tank");
  18. }
  19.  
  20. public String Version()
  21. {
  22. return "1.3_01";
  23. }
  24.  
  25. public void AddRecipes(CraftingManager craftingmanager)
  26. {
  27. craftingmanager.addRecipe(new ItemStack(tankitem, 1), new Object[] {
  28. "###","#X#","###", Character.valueOf('X'), Block.stoneOvenIdle, Character.valueOf('#'), Item.ingotIron
  29. });
  30. }
  31. public void AddRenderer(Map paramMap)
  32. {
  33. paramMap.put(EntityTank.class, new RenderTank());
  34. }
  35.  
  36.  
  37. public static Item tankitem;
  38. public static int spriteIndex;
  39. static
  40. {
  41.  
  42. }
  43. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement