Advertisement
Atijaf

Main preInit and init

Jan 31st, 2016
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.79 KB | None | 0 0
  1. //MainClass name - EnergyTools
  2.  
  3. @SidedProxy(clientSide = Reference.CLIENT_PROXY_CLASS, serverSide = Reference.SERVER_PROXY_CLASS)
  4. public static CommonProxy proxy;
  5.    
  6. @Instance
  7. public static EnergyTools instance = new EnergyTools();
  8.  
  9. @EventHandler
  10.     public void preInit(FMLPreInitializationEvent event){
  11.         ClientProxy.preInit();
  12.        
  13.         WBBlocks.init();
  14.         WBItems.init();
  15.         TileEntities.init();
  16.        
  17.         PacketDispatcher.registerPackets();
  18.        
  19.     }
  20.  
  21. //Init
  22. @EventHandler
  23.     public void init(FMLInitializationEvent event){
  24.         proxy.registerRenders();
  25.         proxy.initial();
  26.        
  27.         //Recipes.addRecipes();
  28.         CrystallineBlock.setDrops();
  29.        
  30.         GameRegistry.registerWorldGenerator(new OreGeneration(), 0);
  31.        
  32.         craftingRecipes.init();
  33.        
  34.         MinecraftForge.EVENT_BUS.register(new PlayerEventHandler());
  35.        
  36.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement