SHARE
TWEET

Main Class

a guest May 3rd, 2019 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package com.novatech.mod;
  2.  
  3. import com.novatech.mod.Blocks.BlockCropsMod;
  4. import com.novatech.mod.init.BlocksMod;
  5. import com.novatech.mod.init.ItemMod;
  6. import com.novatech.mod.items.ItemSeedsMod;
  7. import com.novatech.mod.proxy.CommonProxy;
  8. import com.novatech.mod.world.WorldRegister;
  9.  
  10. import cpw.mods.fml.common.Mod;
  11. import cpw.mods.fml.common.Mod.EventHandler;
  12. import cpw.mods.fml.common.SidedProxy;
  13. import cpw.mods.fml.common.event.FMLInitializationEvent;
  14. import cpw.mods.fml.common.event.FMLPostInitializationEvent;
  15. import cpw.mods.fml.common.event.FMLPreInitializationEvent;
  16. import net.minecraft.block.Block;
  17. import net.minecraft.creativetab.CreativeTabs;
  18. import net.minecraft.init.Blocks;
  19. import net.minecraft.item.Item;
  20.  
  21.     @Mod(modid = Reference.MOD_ID, name = Reference.MOD_NAME, version = Reference.VERSION)
  22.  
  23. public class MainClass {
  24.    
  25.     @SidedProxy(clientSide = Reference.CLIENT_PROXY, serverSide = Reference.SERVER_PROXY)
  26.     public static CommonProxy proxy;
  27.        
  28.     @EventHandler
  29.     public void preInit(FMLPreInitializationEvent event) {
  30.         ItemMod.init();
  31.         ItemMod.register();
  32.         BlocksMod.init();
  33.         BlocksMod.register();
  34.         WorldRegister.mainRegistry();
  35.     }
  36.    
  37.     public void Init(FMLInitializationEvent event) {
  38.         proxy.registerRenders();
  39.        
  40.     }
  41.    
  42.     public void postInit(FMLPostInitializationEvent event) {
  43.        
  44.     }
  45. }
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
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top