SHARE
TWEET

ModernWarfareMod.java

GorgeousFreeman Dec 12th, 2018 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package com.vicmatskiv.mw;
  2.  
  3. import com.vicmatskiv.mw.CommonProxy;
  4. import com.vicmatskiv.mw.GunsTab;
  5. import com.vicmatskiv.weaponlib.ItemAttachment;
  6. import com.vicmatskiv.weaponlib.ModContext;
  7. import com.vicmatskiv.weaponlib.Weapon;
  8. import java.io.File;
  9. import net.minecraft.block.Block;
  10. import net.minecraft.block.BlockLeaves;
  11. import net.minecraft.creativetab.CreativeTabs;
  12. import net.minecraft.init.Blocks;
  13. import net.minecraft.init.Items;
  14. import net.minecraft.item.Item;
  15. import net.minecraft.item.ItemStack;
  16. import net.minecraft.item.crafting.IRecipe;
  17. import net.minecraftforge.common.config.Configuration;
  18. import net.minecraftforge.common.config.Property;
  19. import net.minecraftforge.fml.common.Mod;
  20. import net.minecraftforge.fml.common.SidedProxy;
  21. import net.minecraftforge.fml.common.event.FMLInitializationEvent;
  22. import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
  23. import net.minecraftforge.fml.common.network.NetworkRegistry;
  24. import net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper;
  25. import net.minecraftforge.fml.common.registry.GameRegistry;
  26. import net.minecraftforge.oredict.ShapedOreRecipe;
  27.  
  28. @Mod(modid="mw", version="0.1", acceptedMinecraftVersions="[1.10.2]")
  29. public class ModernWarfareMod {
  30.     private static String CONFIG_PROPERTY_CATEGORY_GENERAL = "general";
  31.     public static String MODID = "mw";
  32.     public static String VERSION = "0.1";
  33.     @SidedProxy(serverSide="com.vicmatskiv.weaponlib.CommonModContext", clientSide="com.vicmatskiv.weaponlib.ClientModContext")
  34.     public static ModContext MOD_CONTEXT;
  35.     public static SimpleNetworkWrapper CHANNEL;
  36.     public static CreativeTabs gunsTab;
  37.     @SidedProxy(serverSide="com.vicmatskiv.mw.CommonProxy", clientSide="com.vicmatskiv.mw.ClientProxy")
  38.     public static CommonProxy proxy;
  39.  
  40.     @Mod.EventHandler
  41.     public void init(FMLPreInitializationEvent event) {
  42.     }
  43.  
  44.     @Mod.EventHandler
  45.     public void init(FMLInitializationEvent event) {
  46.         proxy.init(this, event);
  47.         this.initRecipies(event);
  48.     }
  49.  
  50.     @Mod.EventHandler
  51.     public void initRecipies(FMLInitializationEvent event) {  
  52.     }
  53.  
  54.     static {
  55.         CHANNEL = NetworkRegistry.INSTANCE.newSimpleChannel("mw");
  56.         gunsTab = new GunsTab(CreativeTabs.getNextID(), "guns_tab");
  57.     }
  58. }
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