Guest User

Mod_C4.class

a guest
May 23rd, 2012
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.03 KB | None | 0 0
  1. /* Created by Fury157. Do not distribute.*/
  2.  
  3. package net.minecraft.src;
  4. import java.util.Map;
  5.  
  6. public class mod_C4 extends BaseMod
  7. {
  8.     public mod_C4()
  9.     {
  10.         /*Names the C4*/
  11.         ModLoader.addName( C4, "C4" );
  12.        
  13.         /*adds recipe*/
  14.         ModLoader.addRecipe( new ItemStack( C4, 1 ), new Object[] {
  15.            "$", "#","#", Character.valueOf('$'),Item.silk, Character.valueOf('#'), Item.gunpowder
  16.         });
  17.        
  18.         /*adds the graphic*/
  19.         C4.iconIndex = ModLoader.addOverride("/gui/items.png", "/C4/C4.png");
  20.         /*----------------*/
  21.     }
  22.    
  23.     public String getVersion()
  24.     {
  25.         return ("1.2.5");
  26.     }
  27.    
  28.     /*makes the item*/
  29.     public static Item C4;
  30.     /*--------------*/
  31.    
  32.     static
  33.     {
  34.     C4 = (new Item (1501)).setIconCoord(8, 7).setItemName("C4");
  35.     }
  36.    
  37.     public void load()
  38.     {
  39.     }
  40.        
  41.     public void addRenderer(Map map)
  42.     {
  43.         map.put(net.minecraft.src.EntityC4.class, new RenderC4(mod_C4.C4.iconIndex));
  44.     }
  45. }
Advertisement
Add Comment
Please, Sign In to add comment