Advertisement
drinfernoo

TinyMod.java

Sep 11th, 2012
301
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.58 KB | None | 0 0
  1. package com.drin.mods.tiny;
  2.  
  3. import net.minecraft.src.Block;
  4. import cpw.mods.fml.common.Mod;
  5. import cpw.mods.fml.common.Mod.Init;
  6. import cpw.mods.fml.common.Mod.Instance;
  7. import cpw.mods.fml.common.Mod.PostInit;
  8. import cpw.mods.fml.common.Mod.PreInit;
  9. import cpw.mods.fml.common.SidedProxy;
  10. import cpw.mods.fml.common.event.FMLInitializationEvent;
  11. import cpw.mods.fml.common.event.FMLPostInitializationEvent;
  12. import cpw.mods.fml.common.event.FMLPreInitializationEvent;
  13. import cpw.mods.fml.common.network.NetworkMod;
  14. import cpw.mods.fml.common.network.NetworkRegistry;
  15. import cpw.mods.fml.common.registry.GameRegistry;
  16. import cpw.mods.fml.common.registry.LanguageRegistry;
  17.  
  18. @Mod(modid="TinyMod", name="TinyMod", version="0.0")
  19. @NetworkMod(clientSideRequired=true, serverSideRequired=false)
  20. public class TinyMod {
  21.  
  22.     public static Block tinyBlock = new BlockTiny(200);
  23.    
  24.     @Instance(value = "TinyMod")
  25.     public static TinyMod instance;
  26.    
  27.     @SidedProxy(clientSide="com.drin.mods.tiny.client.TinyClientProxy", serverSide="com.drin.mods.tiny.TinyCommonProxy")
  28.     public static TinyCommonProxy proxy;
  29.    
  30.     public static TinyGuiHandler guiHandler = new TinyGuiHandler();
  31.    
  32.     @PreInit
  33.     public void preInit(FMLPreInitializationEvent event) {
  34.         //
  35.     }
  36.    
  37.     @Init
  38.     public void init(FMLInitializationEvent event) {
  39.         GameRegistry.registerBlock(tinyBlock);
  40.         GameRegistry.registerTileEntity(TileEntityTiny.class, "tileEntityTiny");
  41.        
  42.         LanguageRegistry.addName(tinyBlock, "Tiny Block");
  43.        
  44.         NetworkRegistry.instance().registerGuiHandler(this, guiHandler);
  45.     }
  46.    
  47.     @PostInit
  48.     public void postInit(FMLPostInitializationEvent event) {
  49.         //
  50.     }
  51. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement