0mega_z3ll

Class principale

Feb 19th, 2018
182
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package fr.omega_zell.minecraftplus;
  2.  
  3. import org.apache.logging.log4j.Logger;
  4.  
  5. import fr.omega_zell.minecraftplus.Block.Mpblocks;
  6. import net.minecraft.block.Block;
  7. import net.minecraft.block.material.Material;
  8. import net.minecraft.creativetab.CreativeTabs;
  9. import net.minecraftforge.fml.common.Mod;
  10. import net.minecraftforge.fml.common.Mod.EventHandler;
  11. import net.minecraftforge.fml.common.Mod.Instance;
  12. import net.minecraftforge.fml.common.SidedProxy;
  13. import net.minecraftforge.fml.common.event.FMLInitializationEvent;
  14. import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
  15. import net.minecraftforge.fml.common.registry.GameRegistry;
  16.  
  17. @Mod(modid = MinecraftPlus.MODID, name = "Minecraft Plus", version = "0.1", acceptedMinecraftVersions = "[1.8.9]")
  18.  
  19. public class MinecraftPlus
  20. {
  21. public static final String MODID = "minecraftplus";
  22.  
  23. @Instance (MinecraftPlus.MODID)
  24.  
  25. public static MinecraftPlus instance ;
  26.  
  27. @SidedProxy(clientSide = "fr.omega_zell.minecraftplus.ProxyClient", serverSide = "fr.omega_zell.minecraftplus.ProxyServer")
  28.  
  29. public static ProxyCommon proxy;
  30.  
  31. public static Logger logger;
  32.  
  33. @EventHandler
  34. public void preInit(FMLPreInitializationEvent event)
  35.  
  36. {
  37. logger = event.getModLog();
  38. proxy.preInit(event.getSuggestedConfigurationFile());
  39. Mpblocks.registerBlocksModels();
  40.  
  41. }
  42.  
  43. @EventHandler
  44. public void init(FMLInitializationEvent event)
  45. {
  46. proxy.init();
  47. Mpblocks.registerBlocksModels();
  48.  
  49.  
  50.  
  51. }
  52.  
  53. }
RAW Paste Data