chanez

Class principale

Dec 23rd, 2015
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.31 KB | None | 0 0
  1. package com.smy.mod;
  2.  
  3. import com.smy.mod.World.WorldGenSmy;
  4. import com.smy.mod.World.WorldRegisterSmy;
  5. import com.smy.mod.init.BlockMod;
  6. import com.smy.mod.init.ItemMod;
  7. import com.smy.mod.proxy.CommonProxy;
  8.  
  9. import net.minecraftforge.fml.common.Mod;
  10. import net.minecraftforge.fml.common.Mod.EventHandler;
  11. import net.minecraftforge.fml.common.SidedProxy;
  12. import net.minecraftforge.fml.common.event.FMLInitializationEvent;
  13. import net.minecraftforge.fml.common.event.FMLPostInitializationEvent;
  14. import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
  15. import net.minecraftforge.fml.common.registry.GameRegistry;
  16.  
  17.  
  18. @Mod(modid = Reference.MOD_ID, name = Reference.MOD_NAME, version = Reference.VERSION)
  19.  
  20. public class ModPrincipale
  21. {
  22. @SidedProxy(clientSide = Reference.CLIENT_PROXY_CLASS, serverSide = Reference.SERVER_PROXY_CLASS)
  23. public static CommonProxy proxy;
  24.  
  25. @EventHandler
  26. public void preInit(FMLPreInitializationEvent event)
  27. {
  28. ItemMod.init();
  29. ItemMod.register();
  30. BlockMod.init();
  31. BlockMod.register();
  32. }
  33.  
  34. @EventHandler
  35. public void init(FMLInitializationEvent event)
  36. {
  37. proxy.registerRenders();
  38. }
  39.  
  40. @EventHandler
  41. public void postInit(FMLPostInitializationEvent event)
  42. {
  43.  
  44. }
Advertisement
Add Comment
Please, Sign In to add comment