SHARE
TWEET

Untitled

Hookoogold Jul 19th, 2017 (edited) 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package com.hookoogold.testmod.proxy;
  2.  
  3. import com.hookoogold.testmod.block.BlockTest;
  4. import com.hookoogold.testmod.block.ModBlocks;
  5.  
  6. import net.minecraft.block.Block;
  7. import net.minecraft.item.Item;
  8. import net.minecraft.item.ItemBlock;
  9. import net.minecraftforge.event.RegistryEvent;
  10. import net.minecraftforge.fml.common.Mod;
  11. import net.minecraftforge.fml.common.event.FMLInitializationEvent;
  12. import net.minecraftforge.fml.common.event.FMLPostInitializationEvent;
  13. import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
  14. import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
  15.  
  16. @Mod.EventBusSubscriber
  17. public class CommonProxy {
  18.     public void preInit(FMLPreInitializationEvent e) {
  19.     }
  20.  
  21.     public void init(FMLInitializationEvent e) {
  22.     }
  23.  
  24.     public void postInit(FMLPostInitializationEvent e) {
  25.     }
  26.    
  27.    
  28.    
  29.     @SubscribeEvent
  30.     public static void registerBlocks(RegistryEvent.Register<Block> event) {
  31.         event.getRegistry().registerAll(
  32.             new BlockTest()
  33.         );
  34.     }
  35.  
  36.     @SubscribeEvent
  37.     public static void registerItems(RegistryEvent.Register<Item> event) {
  38.         event.getRegistry().registerAll(
  39.             ModBlocks.iBlockTest
  40.         );
  41.     }
  42. }
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
 
Top