Advertisement
drinfernoo

LostMod.java

Apr 10th, 2013
382
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.60 KB | None | 0 0
  1. package com.drin.mods;
  2.  
  3. import net.minecraft.block.Block;
  4. import net.minecraft.item.ItemStack;
  5. import cpw.mods.fml.common.Mod;
  6. import cpw.mods.fml.common.Mod.Init;
  7. import cpw.mods.fml.common.Mod.Instance;
  8. import cpw.mods.fml.common.Mod.PostInit;
  9. import cpw.mods.fml.common.Mod.PreInit;
  10. import cpw.mods.fml.common.SidedProxy;
  11. import cpw.mods.fml.common.event.FMLInitializationEvent;
  12. import cpw.mods.fml.common.event.FMLPostInitializationEvent;
  13. import cpw.mods.fml.common.event.FMLPreInitializationEvent;
  14. import cpw.mods.fml.common.network.NetworkMod;
  15. import cpw.mods.fml.common.registry.GameRegistry;
  16. import cpw.mods.fml.common.registry.LanguageRegistry;
  17.  
  18. @Mod(modid = LostMod.modid, name = "LOST", version = "1.0")
  19. @NetworkMod(clientSideRequired = true, serverSideRequired = false)
  20. public class LostMod {
  21.  
  22.     public static final String modid = "LOST";
  23.    
  24.     @Instance("LOST")
  25.     public static LostMod instance = new LostMod();
  26.     @SidedProxy(clientSide = "com.drin.mods.client.ClientProxy", serverSide = "com.drin.mods.CommonProxy")
  27.     public static CommonProxy proxy = new CommonProxy();
  28.    
  29.    
  30.     public static Block timerBlock = new BlockTimer(765);
  31.    
  32.     @PreInit
  33.     public void preInit(FMLPreInitializationEvent event) {
  34.         //GAME REGISTRATIONS
  35.         proxy.registerInformation();
  36.         GameRegistry.registerBlock(timerBlock, ItemBlockTimer.class, "timerBlock");
  37.        
  38.         //LANGUAGE REGISTRATIONS
  39.         for (int i = 0; i < 15; i++) {
  40.             LanguageRegistry.addName(new ItemStack(timerBlock, 1, i), ItemBlockTimer.subName[i]);
  41.         }
  42.     }
  43.    
  44.     @Init
  45.     public void init(FMLInitializationEvent event) {
  46.        
  47.     }
  48.    
  49.     @PostInit
  50.     public void postInit(FMLPostInitializationEvent event) {
  51.        
  52.     }
  53. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement