SHARE
TWEET

TA Main Class file

a guest Sep 19th, 2019 83 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package net.mcreator.thaumic_armors;
  2.  
  3. import java.util.ArrayList;
  4. import java.util.List;
  5.  
  6.  
  7. import net.mcreator.thaumic_armors.CommonProxythaumic_armors;
  8. import net.mcreator.thaumic_armors.init.ILifeCycleHandler;
  9. import net.mcreator.thaumic_armors.init.ItemHandler;
  10. import net.mcreator.thaumic_armors.init.InitHandler;
  11. import net.mcreator.thaumic_armors.ClientProxythaumic_armors;
  12.  
  13. import net.minecraftforge.fluids.FluidRegistry;
  14. import net.minecraftforge.fml.common.Mod;
  15. import net.minecraftforge.fml.common.Mod.EventHandler;
  16. import net.minecraftforge.fml.common.Mod.Instance;
  17. import net.minecraftforge.fml.common.Mod.Metadata;
  18. import net.minecraftforge.fml.common.ModMetadata;
  19. import net.minecraftforge.fml.common.SidedProxy;
  20. import net.minecraftforge.fml.common.event.FMLFingerprintViolationEvent;
  21. import net.minecraftforge.fml.common.event.FMLInitializationEvent;
  22. import net.minecraftforge.fml.common.event.FMLInterModComms;
  23. import net.minecraftforge.fml.common.event.FMLLoadCompleteEvent;
  24. import net.minecraftforge.fml.common.event.FMLPostInitializationEvent;
  25. import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
  26. import net.minecraftforge.fml.common.event.FMLServerAboutToStartEvent;
  27. import net.minecraftforge.fml.common.event.FMLServerStartingEvent;
  28. import net.minecraftforge.fml.common.network.IGuiHandler;
  29. import net.minecraftforge.fml.common.network.simpleimpl.MessageContext;
  30.  
  31. @Mod(modid = thaumic_armors.modid, name = thaumic_armors.name, version = thaumic_armors.version)
  32. public class thaumic_armors {
  33.  
  34.     public static final String version = "TA_version";
  35.     public static final String modid = "thaumicarmors";
  36.     public static final String name = "ThaumicArmors";
  37.  
  38.     @Metadata(thaumic_armors.modid)
  39.     public static ModMetadata metadata;
  40.  
  41.     @Instance(thaumic_armors.modid)
  42.     public static thaumic_armors instance = new thaumic_armors();
  43.  
  44.     @SidedProxy(clientSide = "net.mcreator.thaumic_armors.ClientProxythaumic_armors",
  45.             serverSide = "net.mcreator.thaumic_armors.CommonProxythaumic_armors")
  46.     public static CommonProxythaumic_armors proxy;
  47.  
  48.     private static List<ILifeCycleHandler> handlers = new ArrayList<ILifeCycleHandler>(){{
  49.         add(new ItemHandler());
  50.         add(new InitHandler());
  51.     }};
  52.  
  53.     @EventHandler
  54.     public void preInit(FMLPreInitializationEvent event) {
  55.         handlers.forEach(handler -> handler.preInit(event));
  56.         proxy.preInit();
  57.     }
  58.  
  59.     @EventHandler
  60.     public void Init(FMLInitializationEvent event) {
  61.         proxy.init(event);
  62.         handlers.forEach(handler -> handler.init(event));
  63.     }
  64.  
  65.     @EventHandler
  66.     public void postInit(FMLPostInitializationEvent event) {
  67.         proxy.postInit();
  68.         handlers.forEach(handler -> handler.postInit(event));
  69.     }
  70.  
  71.     @EventHandler
  72.     public void loadComplete(FMLLoadCompleteEvent event){
  73.         handlers.forEach(handler -> handler.loadComplete(event));
  74.     }
  75. }
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