Advertisement
Guest User

Java code

a guest
Sep 8th, 2014
272
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.00 KB | None | 0 0
  1. package sonicscrewdriver;
  2.  
  3. import net.minecraft.item.Item;
  4. import cpw.mods.fml.common.Mod;
  5. import cpw.mods.fml.common.Mod.EventHandler;
  6. import cpw.mods.fml.common.event.FMLInitializationEvent;
  7. import cpw.mods.fml.common.event.FMLPostInitializationEvent;
  8. import cpw.mods.fml.common.event.FMLPreInitializationEvent;
  9. import cpw.mods.fml.common.registry.GameRegistry;
  10.  
  11. @Mod(modid = "ss", name = "Sonic Screwdriver", version = "1.0")
  12. public class Sonic_screwdriver {
  13.    
  14.     public static Item itemsonicscrewdriver;
  15.    
  16.     @EventHandler
  17.     public void preInit(FMLPreInitializationEvent event) {     
  18.        
  19.         itemsonicscrewdriver = new ItemSonicScrewdriver().setUnlocalizedName("ItemsonicScrewdriver").setTextureName("ss:itemsonicscrewdriver");
  20.         GameRegistry.registerItem(itemsonicscrewdriver, itemsonicscrewdriver.getUnlocalizedName().substring(5)); {
  21.     }
  22.     }
  23.    
  24.     @EventHandler
  25.     public void init(FMLInitializationEvent event) {
  26.        
  27.     }
  28.    
  29.     @EventHandler
  30.     public void PostInit(FMLPostInitializationEvent event) {
  31.        
  32.     }
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement