SHARE
TWEET

Main.java

a guest Feb 18th, 2014 24 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package assets.mgs.proxies;
  2. import net.minecraft.block.Block;
  3. import net.minecraft.client.settings.KeyBinding;
  4. import net.minecraft.item.EnumToolMaterial;
  5. import net.minecraft.item.Item;
  6. import net.minecraftforge.common.Configuration;
  7. import net.minecraftforge.common.EnumHelper;
  8. import net.minecraftforge.common.MinecraftForge;
  9.  
  10. import org.lwjgl.input.Keyboard;
  11.  
  12. import assets.mgs.Data.D_Achievement;
  13. import assets.mgs.Data.D_Armors;
  14. import assets.mgs.Data.D_Blocks;
  15. import assets.mgs.Data.D_Crafts;
  16. import assets.mgs.Data.D_Items;
  17. import assets.mgs.Data.D_Names;
  18. import assets.mgs.Data.D_Spawn;
  19. import assets.mgs.Data.D_Tabs;
  20. import assets.mgs.Data.D_Weapons;
  21. import assets.mgs.Data.H_Crafting;
  22. import assets.mgs.TickHandler.TickHandlerClient;
  23. import assets.mgs.TickHandler.TickHandlerFaceCamo;
  24. import assets.mgs.TickHandler.TickHandlerFaceCamoMob;
  25. import assets.mgs.TickHandler.TickHandlerOctoCamo;
  26. import assets.mgs.TickHandler.TickHandlerSOCOM;
  27. import assets.mgs.TickHandler.TickHandlerScope;
  28. import assets.mgs.TileEntity.TileEntityBlockTrapDoor1;
  29. import assets.mgs.TileEntity.TileEntityBox;
  30. import assets.mgs.mobs.CyberRaidenMob;
  31. import assets.mgs.mobs.CypherMob;
  32. import assets.mgs.mobs.DDwarfMob;
  33. import assets.mgs.mobs.DwarfMob;
  34. import assets.mgs.mobs.GekkoMob;
  35. import assets.mgs.mobs.KamikazeGekko;
  36. import assets.mgs.mobs.LiquidMob;
  37. import assets.mgs.mobs.NakedMob;
  38. import assets.mgs.mobs.RaidenMob;
  39. import assets.mgs.mobs.RexMob;
  40. import assets.mgs.mobs.RussMob;
  41. import assets.mgs.mobs.SolidSnake;
  42. import assets.mgs.sounds.SoundBank;
  43. import cpw.mods.fml.client.registry.KeyBindingRegistry;
  44. import cpw.mods.fml.common.Mod;
  45. import cpw.mods.fml.common.Mod.Init;
  46. import cpw.mods.fml.common.Mod.PostInit;
  47. import cpw.mods.fml.common.Mod.PreInit;
  48. import cpw.mods.fml.common.Mod.ServerStarting;
  49. import cpw.mods.fml.common.SidedProxy;
  50. import cpw.mods.fml.common.event.FMLInitializationEvent;
  51. import cpw.mods.fml.common.event.FMLPostInitializationEvent;
  52. import cpw.mods.fml.common.event.FMLPreInitializationEvent;
  53. import cpw.mods.fml.common.event.FMLServerStartingEvent;
  54. import cpw.mods.fml.common.network.NetworkMod;
  55. import cpw.mods.fml.common.network.NetworkRegistry;
  56. import cpw.mods.fml.common.registry.EntityRegistry;
  57. import cpw.mods.fml.common.registry.GameRegistry;
  58. import cpw.mods.fml.common.registry.LanguageRegistry;
  59. import cpw.mods.fml.common.registry.TickRegistry;
  60. import cpw.mods.fml.relauncher.Side;
  61.  
  62.  
  63.  
  64. @NetworkMod(clientSideRequired = true, serverSideRequired = false)
  65. @Mod(modid = "MGS", name = "Metal gear cubid", version = "1.1.0")
  66.  
  67.  
  68. public class Main
  69. {
  70.     @SidedProxy(clientSide = "assets.mgs.proxies.ClientProxy", serverSide = "assets.mgs.proxies.CommonProxy")
  71.     public static CommonProxy proxy;
  72.    
  73.     public static boolean zoom;
  74.     public static boolean zoom2;
  75.     public static Main INSTANCE;
  76.    
  77.     public static Item Ak47, Akammo, shot;
  78.     public static Item Patriot, FAMAS;
  79.     public static Item Box;
  80.     public static Item nikita, RPG, Rocket, Unikita;
  81.     public static Item SOCOM,MK22, SOammo, SOsu, MKsu;
  82.     public static Item PKM, PKMammo;
  83.     public static Item OctocamoV, OctocamoJ, OctocamoB;
  84.     public static Item CamoT, CamoV, CamoJ, CamoB;
  85.     public static Block BBox, Ladder, LadderCaut1, LadderCaut2, LadderCaut;
  86.     public static Item SVD, MosinNagant, SniperAmmo;
  87.     public static Item SPAS12, plomb;
  88.     public static Item Knife, HFsword;
  89.     public static Item Railgun, RPG7, binocular;
  90.     public static Item cache, face, facemob, facecamo;
  91.     public static Item PDAface, PDAarmure, PDAmob;
  92.     public static Item Miniplomb, Cartouche;
  93.     public static Item Cle1;
  94.     public static Block TrapDoor1;
  95.    
  96.    
  97.     public static int Ak47ID, AkammoID, shotID ,
  98.     PatriotID, FAMASID, BoxID, nikitaID, RPGID, RocketID, UnikitaID ,
  99.     SOCOMID,MK22ID, SOammoID, SOsuID, MKsuID, PKMID, PKMammoID, OctocamoVID, OctocamoJID, OctocamoBID ,
  100.     CamoTID, CamoVID, CamoJID, CamoBID, BBoxID, SVDID, MosinID, SniperAmmoID,
  101.     SPAS12ID, plombID , KnifeID, HFswordID,RailgunID, RPG7ID, binocularID , cacheID, faceID, facemobID,
  102.     facecamoID, PDAfaceID, PDAarmureID, PDAmobID , MiniplombID, CartoucheID , barilID ;
  103.    
  104.     public static int CanonLongID,  CorpsBoisID ,corpsPistoID,
  105.         CorpsFerID, CorpsRPGID , GachetteFusilID, GachettePistoID, PoigneBoiID ,
  106.     PoigneFerID ,LunetteID , SilencieuxID ,  lumiereID;
  107.    
  108.    
  109.     public static int DwarfID, DDwarfID, solidID, nakedID, raidenID, cyberraidenID;
  110.    
  111.     public static boolean SpawnMob;
  112.    
  113.    
  114.     public static EnumToolMaterial MKnife = EnumHelper.addToolMaterial(
  115.             "MKnife", //Nom du materiel
  116.             0, //Niveau de recuperation
  117.             0, //Nombre maximum d'utilisation 0 = infini
  118.             2.0F, //10.0F
  119.             0, //Degat
  120.             0 //Enchantabilite
  121.             );
  122.  
  123.         //public static Object zoom2;
  124.  
  125.  
  126.    
  127.    
  128.    
  129.     public TickHandlerClient tickHandlerClient;
  130.    
  131.    // static final Achievement SolidSun = new Achievement(2001, "SolidSun", 1, -2, SOCOM, null).registerAchievement();
  132.  /*   public static AchievementPage MGS = new AchievementPage("Metal Gear Cubid", SolidSun );*/
  133.    
  134.  
  135.    
  136.  
  137.     /*Materiaux
  138.     WOOD(0, 59, 2.0F, 0, 15),
  139.     STONE(1, 131, 4.0F, 1, 5),
  140.     IRON(2, 250, 6.0F, 2, 14),
  141.     EMERALD(3, 1561, 8.0F, 3, 10),
  142.     GOLD(0, 32, 12.0F, 0, 22);*/
  143.  
  144.    
  145.     /**1**/
  146.     @PreInit
  147.     public void preload(FMLPreInitializationEvent event)
  148.     {
  149.         //Configuration
  150.         Configuration cfg = new Configuration(event.getSuggestedConfigurationFile());
  151.         try
  152.         {
  153.         cfg.load();
  154.         //options
  155.     //  SpawnMob = cfg.getBoolean();
  156.        
  157.         //Blocks
  158.        
  159.         BBoxID = cfg.getBlock("Blocks", "Bwate", 1750).getInt();
  160.         barilID = cfg.getBlock("Blocks", "baril", 1751).getInt();
  161.         // Armes
  162.         Ak47ID = cfg.getItem("Armes","Ak47", 5005).getInt();
  163.         PatriotID = cfg.getItem("Armes","Patriot", 5006).getInt();
  164.         FAMASID = cfg.getItem("Armes","FAMAS", 5007).getInt();
  165.         nikitaID = cfg.getItem("Armes","nikta", 5008).getInt();
  166.         RPGID = cfg.getItem("Armes","RPG", 5009).getInt();
  167.         UnikitaID = cfg.getItem("Armes","Unikita", 666).getInt();
  168.         SOCOMID = cfg.getItem("Armes","SOCOM", 5010).getInt();
  169.         SOsuID = cfg.getItem("Armes","SOCOM-Su", 5011).getInt();
  170.         MK22ID = cfg.getItem("Armes","MK22", 5012).getInt();
  171.         MKsuID = cfg.getItem("Armes","MK22-Su", 5013).getInt();
  172.         PKMID = cfg.getItem("Armes","PKM", 5014).getInt();
  173.         SVDID = cfg.getItem("Armes","SVD", 5015).getInt();
  174.         MosinID = cfg.getItem("Armes","MosinNagant", 5016).getInt();
  175.         SPAS12ID = cfg.getItem("Armes","SPAS12", 5017).getInt();
  176.         RailgunID = cfg.getItem("Armes","Railgun", 5018).getInt();
  177.         //items
  178.         binocularID = cfg.getItem("Objets","binocular", 3997).getInt();
  179.         BoxID = cfg.getItem("Objets","Box", 3998).getInt();
  180.         //munitions
  181.         SOammoID = cfg.getItem("Munitions","SOammo", 4000).getInt();
  182.         AkammoID = cfg.getItem("Munitions","Akammo", 4001).getInt();
  183.         PKMammoID = cfg.getItem("Munitions","PKMammo", 4002).getInt();
  184.         RocketID = cfg.getItem("Munitions","SniperAmmo", 4003).getInt();
  185.         SniperAmmoID = cfg.getItem("Munitions","SOammo", 4004).getInt();
  186.         plombID = cfg.getItem("Munitions","plomb", 4005).getInt();
  187.         //zapettes
  188.         PDAfaceID = cfg.getItem("Divers","PDAF", 4005).getInt();
  189.         PDAmobID = cfg.getItem("Divers","PDAM", 4006).getInt();
  190.         PDAarmureID = cfg.getItem("Divers","PDAA", 4007).getInt();
  191.         //pieces
  192.         MiniplombID = cfg.getItem("Pieces d'armes","MNPlomb", 4008).getInt();
  193.         CartoucheID = cfg.getItem("Pieces d'armes","Cartouche", 4008).getInt();
  194.        
  195.         CanonLongID = cfg.getItem("Pieces d'armes","_CanonLong", 4008).getInt();
  196.         CorpsBoisID = cfg.getItem("Pieces d'armes","_corpsBois", 4009).getInt();
  197.         corpsPistoID = cfg.getItem("Pieces d'armes","_CorpsFusil", 4010).getInt();
  198.         CorpsFerID = cfg.getItem("Pieces d'armes","_corpsFer", 4011).getInt();
  199.         CorpsRPGID = cfg.getItem("Pieces d'armes","_corpsRPG", 4012).getInt();
  200.         GachetteFusilID = cfg.getItem("Pieces d'armes","_gachetteFusil", 4013).getInt();
  201.         GachettePistoID = cfg.getItem("Pieces d'armes","_gachettepistolet", 4014).getInt();
  202.         PoigneBoiID = cfg.getItem("Pieces d'armes","_poignebois", 4015).getInt();
  203.         PoigneFerID = cfg.getItem("Pieces d'armes","_poignefer", 4016).getInt();
  204.         LunetteID = cfg.getItem("Pieces d'armes","_lunette", 4017).getInt();
  205.         SilencieuxID = cfg.getItem("Pieces d'armes","_silencieux", 4018).getInt();
  206.         lumiereID = cfg.getItem("Pieces d'armes","_lampe", 4019).getInt();
  207.         //armures
  208.         OctocamoVID = cfg.getItem("Armures","OctocamoV", 25003).getInt();
  209.         OctocamoJID = cfg.getItem("Armures","OctocamoJ", 25004).getInt();
  210.         OctocamoBID = cfg.getItem("Armures","OctocamoB", 25005).getInt();
  211.        
  212.         CamoTID = cfg.getItem("Armures","CamoT", 25006).getInt();
  213.         CamoVID = cfg.getItem("Armures","CamoV", 25007).getInt();
  214.         CamoJID = cfg.getItem("Armures","CamoJ", 25008).getInt();
  215.         CamoBID = cfg.getItem("Armures","CamoB", 25009).getInt();
  216.        
  217.         cacheID = cfg.getItem("Armures","cacheoeil", 25010).getInt();
  218.        
  219.         faceID = cfg.getItem("Armures","face", 25011).getInt();
  220.         facemobID = cfg.getItem("Armures","face2", 25012).getInt();
  221.         facecamoID = cfg.getItem("Armures","face3", 25013).getInt();
  222.         //spawner
  223.         DwarfID = cfg.getItem("Spawner","Dwarf", 2797).getInt();
  224.         DDwarfID = cfg.getItem("Spawner","DDwarf", 2798).getInt();
  225.         solidID = cfg.getItem("Spawner","solid", 2799).getInt();
  226.         nakedID = cfg.getItem("Spawner","naked", 2800).getInt();
  227.         raidenID = cfg.getItem("Spawner","raiden", 2801).getInt();
  228.         cyberraidenID = cfg.getItem("Spawner","cyberraiden", 2802).getInt();
  229.        
  230.        
  231.         /*
  232.  
  233.          */
  234.        
  235.        
  236.        
  237.         }
  238.         catch(Exception ex)
  239.         {
  240.         event.getModLog().severe("Failed to load configuration");
  241.         }
  242.         finally
  243.         {
  244.         if(cfg.hasChanged())
  245.         {
  246.         cfg.save();
  247.         }
  248.         }
  249.        
  250.         // sons
  251.        
  252.         if(event.getSide().isClient())
  253.         {
  254.        
  255.             MinecraftForge.EVENT_BUS.register(new SoundBank());
  256.         }
  257.        
  258.         GameRegistry.registerCraftingHandler(new H_Crafting());
  259.        
  260.         // loads
  261.        
  262.         D_Items.loadItems();
  263.         D_Weapons.loadguns();
  264.         D_Weapons.loadCQC();
  265.         D_Armors.loadArmors();
  266.         D_Blocks.loadBlocks();
  267.         D_Achievement.loadAchievement();
  268.        
  269.  
  270.     }
  271.    
  272.    
  273.  
  274.     /**2**/
  275.     @Init
  276.     public void load(FMLInitializationEvent event)
  277.     {
  278.         this.tickHandlerClient = new TickHandlerClient();
  279.         TickRegistry.registerTickHandler(this.tickHandlerClient, Side.CLIENT);
  280.        
  281.         GameRegistry.registerTileEntity(TileEntityBox.class, "TileEntityBox");
  282.         GameRegistry.registerTileEntity(TileEntityBlockTrapDoor1.class, "tileentitytrapdoor1");
  283.  
  284.         D_Spawn.loadSpawn();
  285.         D_Names.loadItems();
  286.         D_Names.loadCQC();
  287.         D_Names.loadguns();
  288.         D_Names.loadArmors();
  289.         D_Names.loadBlocks();
  290.         LanguageRegistry.instance().loadLocalization("/mods/nono/MGSmod/language/en_US.lang", "en_US", false);
  291.         LanguageRegistry.instance().loadLocalization("/mods/nono/MGSmod/language/fr_FR.lang", "fr_FR", false);
  292.        
  293.        
  294.         TickRegistry.registerTickHandler(new TickHandlerScope(), Side.CLIENT);
  295.         TickRegistry.registerTickHandler(new TickHandlerFaceCamo(), Side.CLIENT);
  296.         TickRegistry.registerTickHandler(new TickHandlerFaceCamoMob(), Side.CLIENT);
  297.         TickRegistry.registerTickHandler(new TickHandlerOctoCamo(), Side.CLIENT);
  298.         TickRegistry.registerTickHandler(new TickHandlerSOCOM(), Side.CLIENT);
  299.        
  300.          // code des mobs      
  301.        
  302.          EntityRegistry.registerGlobalEntityID(CypherMob.class, "Cypher", EntityRegistry.findGlobalUniqueEntityId(), 24, 30);
  303.          EntityRegistry.registerModEntity(CypherMob.class, "CypherRender", 1, this, 40, 1, true);
  304.    //    EntityRegistry.addSpawn(CypherMob.class, 5, 2, 4, EnumCreatureType.monster, BiomeGenBase.beach, BiomeGenBase.extremeHills, BiomeGenBase.extremeHillsEdge, BiomeGenBase.forest, BiomeGenBase.forestHills, BiomeGenBase.jungle, BiomeGenBase.jungleHills, BiomeGenBase.mushroomIsland, BiomeGenBase.mushroomIslandShore, BiomeGenBase.ocean, BiomeGenBase.plains, BiomeGenBase.river, BiomeGenBase.swampland);
  305.          LanguageRegistry.instance().addStringLocalization("entity.Cypher.name","Cypher");
  306.          
  307.          EntityRegistry.registerGlobalEntityID(RussMob.class, "Russ", EntityRegistry.findGlobalUniqueEntityId(), 0x74, 38);
  308.          EntityRegistry.registerModEntity(RussMob.class, "Russ", 2, this, 40, 1, true);
  309.  //      EntityRegistry.addSpawn(RussMob.class, 5, 2, 4, EnumCreatureType.monster, BiomeGenBase.beach, BiomeGenBase.extremeHills, BiomeGenBase.extremeHillsEdge, BiomeGenBase.forest, BiomeGenBase.forestHills, BiomeGenBase.jungle, BiomeGenBase.jungleHills, BiomeGenBase.mushroomIsland, BiomeGenBase.mushroomIslandShore, BiomeGenBase.ocean, BiomeGenBase.plains, BiomeGenBase.river, BiomeGenBase.swampland);
  310.          LanguageRegistry.instance().addStringLocalization("entity.Russ.name","Russe");
  311.          
  312.          EntityRegistry.registerGlobalEntityID(GekkoMob.class, "Gekko", EntityRegistry.findGlobalUniqueEntityId(), 74, 38);
  313.          EntityRegistry.registerModEntity(GekkoMob.class, "Gekko", 3, this, 40, 1, true);
  314.  //      EntityRegistry.addSpawn(GekkoMob.class, 5, 1, 2, EnumCreatureType.monster, BiomeGenBase.beach, BiomeGenBase.extremeHills, BiomeGenBase.extremeHillsEdge, BiomeGenBase.forest, BiomeGenBase.forestHills, BiomeGenBase.jungle, BiomeGenBase.jungleHills, BiomeGenBase.mushroomIsland, BiomeGenBase.mushroomIslandShore, BiomeGenBase.ocean, BiomeGenBase.plains, BiomeGenBase.river, BiomeGenBase.swampland);
  315.          LanguageRegistry.instance().addStringLocalization("entity.Gekko.name","Gekko");
  316.          
  317.          EntityRegistry.registerGlobalEntityID(DwarfMob.class, "Dwarf", EntityRegistry.findGlobalUniqueEntityId(), 74, 38);
  318.          EntityRegistry.registerModEntity(DwarfMob.class, "Dwarf", 4, this, 40, 1, true);
  319.   //     EntityRegistry.addSpawn(DwarfMob.class, 5, 5, 10, EnumCreatureType.monster, BiomeGenBase.beach, BiomeGenBase.extremeHills, BiomeGenBase.extremeHillsEdge, BiomeGenBase.forest, BiomeGenBase.forestHills, BiomeGenBase.jungle, BiomeGenBase.jungleHills, BiomeGenBase.mushroomIsland, BiomeGenBase.mushroomIslandShore, BiomeGenBase.ocean, BiomeGenBase.plains, BiomeGenBase.river, BiomeGenBase.swampland);
  320.          LanguageRegistry.instance().addStringLocalization("entity.Dwarf.name","Dwarf Gekko");
  321.          
  322.          EntityRegistry.registerGlobalEntityID(DDwarfMob.class, "DDwarf", EntityRegistry.findGlobalUniqueEntityId(), 74, 38);
  323.          EntityRegistry.registerModEntity(DDwarfMob.class, "DDwarf", 5, this, 40, 1, true);
  324.          LanguageRegistry.instance().addStringLocalization("entity.DDwarf.name","Dwarf Gekko");
  325.          
  326.          EntityRegistry.registerGlobalEntityID(LiquidMob.class, "Liquid", EntityRegistry.findGlobalUniqueEntityId(), 74, 38);
  327.          EntityRegistry.registerModEntity(LiquidMob.class, "Liquid", 6, this, 40, 1, true);
  328.          LanguageRegistry.instance().addStringLocalization("entity.Liquid.name","Liquid Ocelot");
  329.          
  330.          EntityRegistry.registerGlobalEntityID(RexMob.class, "Rex", EntityRegistry.findGlobalUniqueEntityId(), 74, 38);
  331.          EntityRegistry.registerModEntity(RexMob.class, "Rex", 7, this, 40, 1, true);
  332.          LanguageRegistry.instance().addStringLocalization("entity.Rex.name","Metal Gear Rex");
  333.          
  334.          EntityRegistry.registerGlobalEntityID(KamikazeGekko.class, "KamikazeGekko", EntityRegistry.findGlobalUniqueEntityId(), 74, 38);
  335.          EntityRegistry.registerModEntity(KamikazeGekko.class, "KamikazeGekko", 8, this, 40, 1, true);
  336.         // EntityRegistry.addSpawn(GekkoMob.class, 5, 1, 1, EnumCreatureType.monster, BiomeGenBase.beach, BiomeGenBase.extremeHills, BiomeGenBase.extremeHillsEdge, BiomeGenBase.forest, BiomeGenBase.forestHills, BiomeGenBase.jungle, BiomeGenBase.jungleHills, BiomeGenBase.mushroomIsland, BiomeGenBase.mushroomIslandShore, BiomeGenBase.ocean, BiomeGenBase.plains, BiomeGenBase.river, BiomeGenBase.swampland);
  337.          LanguageRegistry.instance().addStringLocalization("entity.KamikazeGekko.name","Gekko Kamikaze");
  338.          
  339.          EntityRegistry.registerGlobalEntityID(SolidSnake.class, "SolidSnake", EntityRegistry.findGlobalUniqueEntityId(), 0x10BC88, 0xFE0133);
  340.          EntityRegistry.registerModEntity(SolidSnake.class, "RSolidSnakeex", 9, this, 40, 1, true);
  341.          LanguageRegistry.instance().addStringLocalization("entity.SolidSnake.name","Solid Snake");
  342.          
  343.          EntityRegistry.registerGlobalEntityID(NakedMob.class, "NakedMob", EntityRegistry.findGlobalUniqueEntityId(), 0x10BC88, 0xFE0133);
  344.          EntityRegistry.registerModEntity(NakedMob.class, "NakedMob", 10, this, 40, 1, true);
  345.          LanguageRegistry.instance().addStringLocalization("entity.NakedMob.name","Naked Snake");
  346.          
  347.          EntityRegistry.registerGlobalEntityID(RaidenMob.class, "RaidenMob", EntityRegistry.findGlobalUniqueEntityId(), 0x10BC88, 0xFE0133);
  348.          EntityRegistry.registerModEntity(RaidenMob.class, "RaidenMob", 11, this, 40, 1, true);
  349.          LanguageRegistry.instance().addStringLocalization("entity.RaidenMob.name","Raiden");
  350.          
  351.          EntityRegistry.registerGlobalEntityID(CyberRaidenMob.class, "CyberRaidenMob", EntityRegistry.findGlobalUniqueEntityId(), 0x10BC88, 0xFE0133);
  352.          EntityRegistry.registerModEntity(CyberRaidenMob.class, "CyberRaidenMob", 12, this, 40, 1, true);
  353.          LanguageRegistry.instance().addStringLocalization("entity.CyberRaidenMob.name","Raiden Cyborg");
  354.          
  355.          // fin des mobs
  356.            
  357.             proxy.registerRenderEntity();
  358.             D_Crafts.loadrecipe();
  359.             D_Crafts.loadsmeltings();
  360.            
  361.                 KeyBinding[] key = {new KeyBinding("Codec", Keyboard.KEY_P)};
  362.             boolean[] repeat = {false};
  363.             KeyBindingRegistry.registerKeyBinding(new KeyBind());
  364.            
  365.             NetworkRegistry.instance().registerGuiHandler(new GuiHandler(), null);
  366.            
  367.     }
  368.  
  369.     /**3**/
  370.     @PostInit
  371.     public void postload(FMLPostInitializationEvent event)
  372.     {
  373.         D_Tabs.loadTabs();
  374.  
  375.    
  376.     }
  377.  
  378.     /**4**/
  379.     @ServerStarting
  380.     public void serverStarting(FMLServerStartingEvent event)
  381.     {
  382.    
  383.     }
  384.  
  385. }
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