SHARE
TWEET

OWM_Main.java

Chachii Feb 10th, 2018 81 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package chachii.OWM;
  2.  
  3. import chachii.OWM.events.OreSpawnBlockEvent;
  4. import chachii.OWM.proxy.CommonProxy;
  5. import chachii.OWM.registry.BlockRegistry;
  6. import chachii.OWM.registry.ItemRegistry;
  7. import chachii.OWM.util.ConfigurationManager;
  8. import chachii.OWM.util.GenerationHandler;
  9. import chachii.OWM.util.LoadModData;
  10. import chachii.OWM.util.SetMiningLevels;
  11. import chachii.OWM.util.client.gui.CreativeTabOWM;
  12. import chachii.OWM.util.json.JsonLoader;
  13.  
  14. import net.minecraftforge.common.MinecraftForge;
  15. import net.minecraftforge.fml.common.Mod;
  16. import net.minecraftforge.fml.common.Mod.EventHandler;
  17. import net.minecraftforge.fml.common.Mod.Instance;
  18. import net.minecraftforge.fml.common.SidedProxy;
  19. import net.minecraftforge.fml.common.LoadController;
  20. import net.minecraftforge.fml.common.event.*;
  21. import net.minecraftforge.fml.common.registry.GameRegistry;
  22. import net.minecraftforge.fml.common.network.NetworkRegistry;
  23. import net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper;
  24.  
  25. import java.io.File;
  26.  
  27. import org.apache.logging.log4j.Logger;
  28.  
  29. @Mod(modid = OWM_Main.MODID, name = OWM_Main.NAME, version = OWM_Main.VERSION, dependencies = "", acceptedMinecraftVersions = "[1.12.2]")
  30. public class OWM_Main
  31. {
  32.     public static final String MODID = "owm";
  33.     public static final String NAME = "Other Worldly Mods";
  34.     public static final String VERSION = "0.0.1";
  35.    
  36.     public static final CreativeTabOWM creativeTab = new CreativeTabOWM();
  37.    
  38.     @SidedProxy(clientSide = "OWM_Main.proxy.ClientProxy", serverSide = "OWM_Main.proxy.ServerProxy")
  39.     public static CommonProxy proxy;
  40.    
  41.     @Mod.Instance()
  42.     public static OWM_Main instance;
  43.    
  44.     public static Logger logger;
  45.    
  46.     @EventHandler
  47.     public void preInit(final FMLPreInitializationEvent event)
  48.     {  
  49.         logger = event.getModLog();
  50.        
  51.         LoadModData.load(event);
  52.        
  53.         ConfigurationManager config = new ConfigurationManager(event);
  54.        
  55.         JsonLoader.loadData();
  56.        
  57.         // Ore Generation
  58.         MinecraftForge.ORE_GEN_BUS.register(new OreSpawnBlockEvent());
  59.         OreSpawnBlockEvent.populateOreType();
  60.  
  61.         GameRegistry.registerWorldGenerator(new GenerationHandler(), 0);
  62.        
  63.         proxy.preInit(event);
  64.     }
  65.    
  66.     @EventHandler
  67.     public void init(final FMLInitializationEvent event)
  68.     {
  69.         SetMiningLevels.set();
  70. ;
  71.         proxy.registerRenders();
  72.        
  73.         proxy.init(event);
  74.     }
  75.    
  76.     @EventHandler
  77.     public void postInit(final FMLPostInitializationEvent event)
  78.     {
  79.         BlockRegistry.registerOreDictionary();
  80.         ItemRegistry.registerOreDictionary();
  81.         proxy.postInit(event);
  82.     }
  83.    
  84. }
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