Advertisement
shane020482

main

May 25th, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. @Mod(modid = Reference.MOD_ID, name = Reference.NAME, version = Reference.VERSION)
  2. public class CustomBlocks {
  3.  
  4. @Instance
  5. public static CustomBlocks instance;
  6.  
  7. @SidedProxy(clientSide = Reference.CLIENT, serverSide = Reference.SERVER)
  8. public static ServerProxy proxy;
  9.  
  10.  
  11. //In your main class under the FMLPreInitializationEvent you need to initialize your BlockInit
  12. @EventHandler
  13. public void preInit(FMLPreInitializationEvent event) {
  14. BlockInit.init();
  15. ItemInit.init();
  16. }
  17.  
  18. @EventHandler
  19. public void Init(FMLInitializationEvent event) {}
  20.  
  21. @EventHandler
  22. public void postInit(FMLPostInitializationEvent event) {}
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement