SHARE
TWEET

FalloutMain.java

Camellias_ Jul 5th, 2017 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package camellias_.fallout;
  2.  
  3. import cpw.mods.fml.common.Mod;
  4. import cpw.mods.fml.common.Mod.EventHandler;
  5. import cpw.mods.fml.common.Mod.Instance;
  6. import cpw.mods.fml.common.SidedProxy;
  7. import cpw.mods.fml.common.event.FMLInitializationEvent;
  8. import cpw.mods.fml.common.event.FMLPostInitializationEvent;
  9. import cpw.mods.fml.common.event.FMLPreInitializationEvent;
  10. import cpw.mods.fml.common.registry.GameRegistry;
  11. import joptsimple.internal.Strings;
  12. import net.minecraft.item.Item;
  13. import net.minecraftforge.common.MinecraftForge;
  14.  
  15. @Mod(modid = "CamFO", name = "Fallout Mod", version = "1.0")
  16. public class FalloutMain {
  17.  
  18.     public static Item itemRevolver;
  19.     public static Item itemIronNugget;
  20.    
  21.     @EventHandler
  22.     public void preInit(FMLPreInitializationEvent event) {
  23.        
  24.         itemRevolver = new ItemRevolver().setUnlocalizedName("ItemRevolver");
  25.         itemIronNugget = new ItemIronnugget().setUnlocalizedName("ItemIronnugget");
  26.        
  27.         GameRegistry.registerItem(itemRevolver, itemRevolver.getUnlocalizedName().substring(5));
  28.         GameRegistry.registerItem(itemIronNugget, itemIronNugget.getUnlocalizedName().substring(5));
  29.        
  30.     }
  31.    
  32.     @EventHandler
  33.     public void init(FMLInitializationEvent event) {
  34.  
  35.     }
  36.    
  37.     @EventHandler
  38.     public void init(FMLPostInitializationEvent event) {
  39.        
  40.     }
  41. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top