Advertisement
Guest User

@Mod File FurnaceChest

a guest
Apr 27th, 2013
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.49 KB | None | 0 0
  1. @Mod(modid = Reference.MOD_ID, name = Reference.MOD_NAME, version = Reference.VERSION)
  2. @NetworkMod(channels = { Reference.CHANNEL_NAME }, clientSideRequired = true, serverSideRequired = false, packetHandler = PacketHandler.class)
  3. public class MazLearnedThis {
  4.  
  5.     @Instance(Reference.MOD_ID)
  6.     public static MazLearnedThis instance;
  7.  
  8.     @SidedProxy(clientSide = Reference.CLIENT_PROXY_CLASS, serverSide = Reference.SERVER_PROXY_CLASS)
  9.     public static CommonProxy proxy;
  10.  
  11.    
  12. // Initialize blocks etc. inside preInit.
  13.    
  14.     @PreInit
  15.     public void preInit(FMLPreInitializationEvent event){
  16.        
  17.         NetworkRegistry.instance().registerGuiHandler(this,new CommonProxy());
  18.        
  19.         // Initialize the Render Tick Handler (Client only)
  20.         proxy.registerRenderTickHandler();
  21.  
  22.         // Register the KeyBinding Handler (Client only)
  23.         proxy.registerKeyBindingHandler();
  24.  
  25.         // Register the Sound Handler (Client only)
  26.         proxy.registerSoundHandler();
  27.    
  28.         // Initialize mod blocks
  29.         ModBlocks.init();
  30.  
  31.         // Initialize mod items
  32.         ModItems.init();
  33.    
  34.     }
  35.    
  36.     @Init
  37.     public void load(FMLInitializationEvent event){
  38.  
  39.         GameRegistry.registerTileEntity(TileEntityFurnaceChest.class, "TileEntity Furnace Chest");
  40.     }
  41.    
  42.     @PostInit // Run after ALL mods is loaded. - Code which interacts with other mods here.
  43.     public void postInit(FMLPostInitializationEvent event){
  44.        
  45.     }
  46.    
  47.    
  48. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement