当前位置: 首页>>代码示例>>Java>>正文


Java GalacticraftRegistry.registerCelestialBody方法代码示例

本文整理汇总了Java中micdoodle8.mods.galacticraft.api.GalacticraftRegistry.registerCelestialBody方法的典型用法代码示例。如果您正苦于以下问题:Java GalacticraftRegistry.registerCelestialBody方法的具体用法?Java GalacticraftRegistry.registerCelestialBody怎么用?Java GalacticraftRegistry.registerCelestialBody使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在micdoodle8.mods.galacticraft.api.GalacticraftRegistry的用法示例。


在下文中一共展示了GalacticraftRegistry.registerCelestialBody方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: load

import micdoodle8.mods.galacticraft.api.GalacticraftRegistry; //导入方法依赖的package包/类
@EventHandler
public void load(FMLInitializationEvent event)
{
    int languages = 0;

    for (String language : EuropaCore.LANGUAGES_SUPPORTED)
    {
        LanguageRegistry.instance().loadLocalization(EuropaCore.LANGUAGE_PATH + language + ".lang", language, false);

        if (LanguageRegistry.instance().getStringLocalization("children", language) != "")
        {
            try
            {
                String[] children = LanguageRegistry.instance().getStringLocalization("children", language).split(",");

                for (String child : children)
                {
                    if (child != "" || child != null)
                    {
                        LanguageRegistry.instance().loadLocalization(EuropaCore.LANGUAGE_PATH + language + ".lang", child, false);
                        languages++;
                    }
                }
            }
            catch (Exception e)
            {
                FMLLog.severe("Failed to load a child language file.");
                e.printStackTrace();
            }
        }

        languages++;
    }

    GCLog.info("Starcraft Europa Loaded: " + languages + " Languages.");

    NetworkRegistry.instance().registerGuiHandler(EuropaCore.instance, EuropaCore.proxy);
    this.registerTileEntities();
    this.registerCreatures();
    this.registerOtherEntities();
    EuropaCore.proxy.init(event);

    GalacticraftRegistry.registerTeleportType(SCEuropaWorldProvider.class, new SCEuropaTeleportType());
    GalacticraftRegistry.registerCelestialBody(new SCEuropaPlanet());
    GalacticraftRegistry.registerRocketGui(SCEuropaWorldProvider.class, new ResourceLocation(EuropaCore.ASSET_DOMAIN, "textures/gui/EuropaRocketGui.png"));
}
 
开发者ID:4Space,项目名称:4-Space-Legacy,代码行数:47,代码来源:EuropaCore.java

示例2: load

import micdoodle8.mods.galacticraft.api.GalacticraftRegistry; //导入方法依赖的package包/类
@EventHandler
public void load(FMLInitializationEvent event)
{
    int languages = 0;

    for (String language : VestaCore.LANGUAGES_SUPPORTED)
    {
        LanguageRegistry.instance().loadLocalization(VestaCore.LANGUAGE_PATH + language + ".lang", language, false);

        if (LanguageRegistry.instance().getStringLocalization("children", language) != "")
        {
            try
            {
                String[] children = LanguageRegistry.instance().getStringLocalization("children", language).split(",");

                for (String child : children)
                {
                    if (child != "" || child != null)
                    {
                        LanguageRegistry.instance().loadLocalization(VestaCore.LANGUAGE_PATH + language + ".lang", child, false);
                        languages++;
                    }
                }
            }
            catch (Exception e)
            {
                FMLLog.severe("Failed to load a child language file.");
                e.printStackTrace();
            }
        }

        languages++;
    }

    GCLog.info("Starcraft Saturn Loaded: " + languages + " Languages.");

    NetworkRegistry.instance().registerGuiHandler(VestaCore.instance, VestaCore.proxy);
    this.registerTileEntities();
    this.registerCreatures();
    this.registerOtherEntities();
    VestaCore.proxy.init(event);

    GalacticraftRegistry.registerTeleportType(SCVestaWorldProvider.class, new SCVestaTeleportType());
    GalacticraftRegistry.registerCelestialBody(new SCVestaPlanet());
    GalacticraftRegistry.registerRocketGui(SCVestaWorldProvider.class, new ResourceLocation(VestaCore.ASSET_DOMAIN, "textures/gui/vestaRocketGui.png"));
}
 
开发者ID:4Space,项目名称:4-Space-Legacy,代码行数:47,代码来源:VestaCore.java

示例3: load

import micdoodle8.mods.galacticraft.api.GalacticraftRegistry; //导入方法依赖的package包/类
@EventHandler
public void load(FMLInitializationEvent event)
{
    int languages = 0;

    for (String language : GanymedeCore.LANGUAGES_SUPPORTED)
    {
        LanguageRegistry.instance().loadLocalization(GanymedeCore.LANGUAGE_PATH + language + ".lang", language, false);

        if (LanguageRegistry.instance().getStringLocalization("children", language) != "")
        {
            try
            {
                String[] children = LanguageRegistry.instance().getStringLocalization("children", language).split(",");

                for (String child : children)
                {
                    if (child != "" || child != null)
                    {
                        LanguageRegistry.instance().loadLocalization(GanymedeCore.LANGUAGE_PATH + language + ".lang", child, false);
                        languages++;
                    }
                }
            }
            catch (Exception e)
            {
                FMLLog.severe("Failed to load a child language file.");
                e.printStackTrace();
            }
        }

        languages++;
    }

    GCLog.info("Starcraft Ganymede Loaded: " + languages + " Languages.");

    NetworkRegistry.instance().registerGuiHandler(GanymedeCore.instance, GanymedeCore.proxy);
    this.registerTileEntities();
    this.registerCreatures();
    this.registerOtherEntities();
    GanymedeCore.proxy.init(event);

    GalacticraftRegistry.registerTeleportType(SCGanymedeWorldProvider.class, new SCGanymedeTeleportType());
    GalacticraftRegistry.registerCelestialBody(new SCGanymedePlanet());
    GalacticraftRegistry.registerRocketGui(SCGanymedeWorldProvider.class, new ResourceLocation(GanymedeCore.ASSET_DOMAIN, "textures/gui/GanymedeRocketGui.png"));
}
 
开发者ID:4Space,项目名称:4-Space-Legacy,代码行数:47,代码来源:GanymedeCore.java

示例4: load

import micdoodle8.mods.galacticraft.api.GalacticraftRegistry; //导入方法依赖的package包/类
@EventHandler
public void load(FMLInitializationEvent event)
{
    int languages = 0;

    for (String language : MercuryCore.LANGUAGES_SUPPORTED)
    {
        LanguageRegistry.instance().loadLocalization(MercuryCore.LANGUAGE_PATH + language + ".lang", language, false);

        if (LanguageRegistry.instance().getStringLocalization("children", language) != "")
        {
            try
            {
                String[] children = LanguageRegistry.instance().getStringLocalization("children", language).split(",");

                for (String child : children)
                {
                    if (child != "" || child != null)
                    {
                        LanguageRegistry.instance().loadLocalization(MercuryCore.LANGUAGE_PATH + language + ".lang", child, false);
                        languages++;
                    }
                }
            }
            catch (Exception e)
            {
                FMLLog.severe("Failed to load a child language file.");
                e.printStackTrace();
            }
        }

        languages++;
    }

    GCLog.info("Starcraft Mercury Loaded: " + languages + " Languages.");

    NetworkRegistry.instance().registerGuiHandler(MercuryCore.instance, MercuryCore.proxy);
    this.registerTileEntities();
    this.registerCreatures();
    this.registerOtherEntities();
    MercuryCore.proxy.init(event);

    GalacticraftRegistry.registerTeleportType(SCMercuryWorldProvider.class, new SCMercuryTeleportType());
    GalacticraftRegistry.registerCelestialBody(new SCMercuryPlanet());
    GalacticraftRegistry.registerRocketGui(SCMercuryWorldProvider.class, new ResourceLocation(MercuryCore.ASSET_DOMAIN, "textures/gui/mercuryRocketGui.png"));
}
 
开发者ID:4Space,项目名称:4-Space-Legacy,代码行数:47,代码来源:MercuryCore.java

示例5: load

import micdoodle8.mods.galacticraft.api.GalacticraftRegistry; //导入方法依赖的package包/类
@EventHandler
public void load(FMLInitializationEvent event)
{
    int languages = 0;

    for (String language : UranusCore.LANGUAGES_SUPPORTED)
    {
        LanguageRegistry.instance().loadLocalization(UranusCore.LANGUAGE_PATH + language + ".lang", language, false);

        if (LanguageRegistry.instance().getStringLocalization("children", language) != "")
        {
            try
            {
                String[] children = LanguageRegistry.instance().getStringLocalization("children", language).split(",");

                for (String child : children)
                {
                    if (child != "" || child != null)
                    {
                        LanguageRegistry.instance().loadLocalization(UranusCore.LANGUAGE_PATH + language + ".lang", child, false);
                        languages++;
                    }
                }
            }
            catch (Exception e)
            {
                FMLLog.severe("Failed to load a child language file.");
                e.printStackTrace();
            }
        }

        languages++;
    }

    GCLog.info("Starcraft Uranus Loaded: " + languages + " Languages.");

    NetworkRegistry.instance().registerGuiHandler(UranusCore.instance, UranusCore.proxy);
    this.registerTileEntities();
    this.registerCreatures();
    this.registerOtherEntities();
    UranusCore.proxy.init(event);

    UranusCore.uranus = new SCUranusPlanet();
    GalacticraftRegistry.registerCelestialBody(UranusCore.uranus);
}
 
开发者ID:4Space,项目名称:4-Space-Legacy,代码行数:46,代码来源:UranusCore.java

示例6: load

import micdoodle8.mods.galacticraft.api.GalacticraftRegistry; //导入方法依赖的package包/类
@EventHandler
public void load(FMLInitializationEvent event)
{
    int languages = 0;

    for (String language : ErisCore.LANGUAGES_SUPPORTED)
    {
        LanguageRegistry.instance().loadLocalization(ErisCore.LANGUAGE_PATH + language + ".lang", language, false);

        if (LanguageRegistry.instance().getStringLocalization("children", language) != "")
        {
            try
            {
                String[] children = LanguageRegistry.instance().getStringLocalization("children", language).split(",");

                for (String child : children)
                {
                    if (child != "" || child != null)
                    {
                        LanguageRegistry.instance().loadLocalization(ErisCore.LANGUAGE_PATH + language + ".lang", child, false);
                        languages++;
                    }
                }
            }
            catch (Exception e)
            {
                FMLLog.severe("Failed to load a child language file.");
                e.printStackTrace();
            }
        }

        languages++;
    }

    GCLog.info("Starcraft Eris Loaded: " + languages + " Languages.");

    NetworkRegistry.instance().registerGuiHandler(ErisCore.instance, ErisCore.proxy);
    this.registerTileEntities();
    this.registerCreatures();
    this.registerOtherEntities();
    ErisCore.proxy.init(event);

    GalacticraftRegistry.registerTeleportType(SCErisWorldProvider.class, new SCErisTeleportType());
    GalacticraftRegistry.registerCelestialBody(new SCErisPlanet());
    GalacticraftRegistry.registerRocketGui(SCErisWorldProvider.class, new ResourceLocation(ErisCore.ASSET_DOMAIN, "textures/gui/erisRocketGui.png"));    
}
 
开发者ID:4Space,项目名称:4-Space-Legacy,代码行数:47,代码来源:ErisCore.java

示例7: load

import micdoodle8.mods.galacticraft.api.GalacticraftRegistry; //导入方法依赖的package包/类
@EventHandler
public void load(FMLInitializationEvent event)
{
	SchematicRegistry.registerSchematicRecipe(new SCVenusSchematicRocketT3());
	GalacticraftRegistry.addDungeonLoot(2, new ItemStack(VenusItems.T3Schematic, 1, 0));
	
	
    int languages = 0;
    
    for (String language : VenusCore.LANGUAGES_SUPPORTED)
    {
        LanguageRegistry.instance().loadLocalization(VenusCore.LANGUAGE_PATH + language + ".lang", language, false);

        if (LanguageRegistry.instance().getStringLocalization("children", language) != "")
        {
            try
            {
                String[] children = LanguageRegistry.instance().getStringLocalization("children", language).split(",");

                for (String child : children)
                {
                    if (child != "" || child != null)
                    {
                        LanguageRegistry.instance().loadLocalization(VenusCore.LANGUAGE_PATH + language + ".lang", child, false);
                        languages++;
                    }
                }
            }
            catch (Exception e)
            {
                FMLLog.severe("Failed to load a child language file.");
                e.printStackTrace();
            }
        }

        languages++;
    }

    GCLog.info("Starcraft Venus Loaded: " + languages + " Languages.");

    NetworkRegistry.instance().registerGuiHandler(VenusCore.instance, VenusCore.proxy);
    this.registerTileEntities();
    this.registerCreatures();
    this.registerOtherEntities();
    VenusCore.proxy.init(event);

    GalacticraftRegistry.registerTeleportType(SCVenusWorldProvider.class, new SCVenusTeleportType());
    GalacticraftRegistry.registerCelestialBody(new SCVenusPlanet());
    GalacticraftRegistry.registerRocketGui(SCVenusWorldProvider.class, new ResourceLocation(VenusCore.ASSET_DOMAIN, "textures/gui/venusRocketGui.png"));
}
 
开发者ID:4Space,项目名称:4-Space-Legacy,代码行数:51,代码来源:VenusCore.java

示例8: load

import micdoodle8.mods.galacticraft.api.GalacticraftRegistry; //导入方法依赖的package包/类
@EventHandler
public void load(FMLInitializationEvent event)
{
    int languages = 0;

    for (String language : PlutoCore.LANGUAGES_SUPPORTED)
    {
        LanguageRegistry.instance().loadLocalization(PlutoCore.LANGUAGE_PATH + language + ".lang", language, false);

        if (LanguageRegistry.instance().getStringLocalization("children", language) != "")
        {
            try
            {
                String[] children = LanguageRegistry.instance().getStringLocalization("children", language).split(",");

                for (String child : children)
                {
                    if (child != "" || child != null)
                    {
                        LanguageRegistry.instance().loadLocalization(PlutoCore.LANGUAGE_PATH + language + ".lang", child, false);
                        languages++;
                    }
                }
            }
            catch (Exception e)
            {
                FMLLog.severe("Failed to load a child language file.");
                e.printStackTrace();
            }
        }

        languages++;
    }

    GCLog.info("Starcraft Pluto Loaded: " + languages + " Languages.");

    NetworkRegistry.instance().registerGuiHandler(PlutoCore.instance, PlutoCore.proxy);
    this.registerTileEntities();
    this.registerCreatures();
    this.registerOtherEntities();
    PlutoCore.proxy.init(event);

    
    PlutoCore.pluto = new SCPlutoPlanet();
    GalacticraftRegistry.registerCelestialBody(PlutoCore.pluto);
    GalacticraftRegistry.registerTeleportType(SCPlutoWorldProvider.class, new SCPlutoTeleportType());
    GalacticraftRegistry.registerRocketGui(SCPlutoWorldProvider.class, new ResourceLocation(PlutoCore.ASSET_DOMAIN, "textures/gui/plutoRocketGui.png"));
    
}
 
开发者ID:4Space,项目名称:4-Space-Legacy,代码行数:50,代码来源:PlutoCore.java

示例9: load

import micdoodle8.mods.galacticraft.api.GalacticraftRegistry; //导入方法依赖的package包/类
@EventHandler
public void load(FMLInitializationEvent event)
{
    int languages = 0;

    for (String language : JupiterCore.LANGUAGES_SUPPORTED)
    {
        LanguageRegistry.instance().loadLocalization(JupiterCore.LANGUAGE_PATH + language + ".lang", language, false);

        if (LanguageRegistry.instance().getStringLocalization("children", language) != "")
        {
            try
            {
                String[] children = LanguageRegistry.instance().getStringLocalization("children", language).split(",");

                for (String child : children)
                {
                    if (child != "" || child != null)
                    {
                        LanguageRegistry.instance().loadLocalization(JupiterCore.LANGUAGE_PATH + language + ".lang", child, false);
                        languages++;
                    }
                }
            }
            catch (Exception e)
            {
                FMLLog.severe("Failed to load a child language file.");
                e.printStackTrace();
            }
        }

        languages++;
    }

    GCLog.info("Starcraft Jupiter Loaded: " + languages + " Languages.");

    NetworkRegistry.instance().registerGuiHandler(JupiterCore.instance, JupiterCore.proxy);
    this.registerTileEntities();
    this.registerCreatures();
    this.registerOtherEntities();
    JupiterCore.proxy.init(event);
    JupiterCore.jupiter = new SCJupiterPlanet();
    GalacticraftRegistry.registerCelestialBody(JupiterCore.jupiter);
}
 
开发者ID:4Space,项目名称:4-Space-Legacy,代码行数:45,代码来源:JupiterCore.java

示例10: load

import micdoodle8.mods.galacticraft.api.GalacticraftRegistry; //导入方法依赖的package包/类
@EventHandler
public void load(FMLInitializationEvent event)
{
    int languages = 0;

    for (String language : SednaCore.LANGUAGES_SUPPORTED)
    {
        LanguageRegistry.instance().loadLocalization(SednaCore.LANGUAGE_PATH + language + ".lang", language, false);

        if (LanguageRegistry.instance().getStringLocalization("children", language) != "")
        {
            try
            {
                String[] children = LanguageRegistry.instance().getStringLocalization("children", language).split(",");

                for (String child : children)
                {
                    if (child != "" || child != null)
                    {
                        LanguageRegistry.instance().loadLocalization(SednaCore.LANGUAGE_PATH + language + ".lang", child, false);
                        languages++;
                    }
                }
            }
            catch (Exception e)
            {
                FMLLog.severe("Failed to load a child language file.");
                e.printStackTrace();
            }
        }

        languages++;
    }

    GCLog.info("Starcraft sedna Loaded: " + languages + " Languages.");

    NetworkRegistry.instance().registerGuiHandler(SednaCore.instance, SednaCore.proxy);
    this.registerTileEntities();
    this.registerCreatures();
    this.registerOtherEntities();
    SednaCore.proxy.init(event);

    GalacticraftRegistry.registerTeleportType(SCSednaWorldProvider.class, new SCSednaTeleportType());
    GalacticraftRegistry.registerCelestialBody(new SCSednaPlanet());
    GalacticraftRegistry.registerRocketGui(SCSednaWorldProvider.class, new ResourceLocation(SednaCore.ASSET_DOMAIN, "textures/gui/sednaRocketGui.png"));
    
}
 
开发者ID:4Space,项目名称:4-Space-Legacy,代码行数:48,代码来源:SednaCore.java

示例11: load

import micdoodle8.mods.galacticraft.api.GalacticraftRegistry; //导入方法依赖的package包/类
@EventHandler
public void load(FMLInitializationEvent event)
{
    int languages = 0;

    for (String language : CallistoCore.LANGUAGES_SUPPORTED)
    {
        LanguageRegistry.instance().loadLocalization(CallistoCore.LANGUAGE_PATH + language + ".lang", language, false);

        if (LanguageRegistry.instance().getStringLocalization("children", language) != "")
        {
            try
            {
                String[] children = LanguageRegistry.instance().getStringLocalization("children", language).split(",");

                for (String child : children)
                {
                    if (child != "" || child != null)
                    {
                        LanguageRegistry.instance().loadLocalization(CallistoCore.LANGUAGE_PATH + language + ".lang", child, false);
                        languages++;
                    }
                }
            }
            catch (Exception e)
            {
                FMLLog.severe("Failed to load a child language file.");
                e.printStackTrace();
            }
        }

        languages++;
    }

    GCLog.info("Starcraft Callisto Loaded: " + languages + " Languages.");

    NetworkRegistry.instance().registerGuiHandler(CallistoCore.instance, CallistoCore.proxy);
    this.registerTileEntities();
    this.registerCreatures();
    this.registerOtherEntities();
    CallistoCore.proxy.init(event);

    GalacticraftRegistry.registerTeleportType(SCCallistoWorldProvider.class, new SCCallistoTeleportType());
    GalacticraftRegistry.registerCelestialBody(new SCCallistoPlanet());
    GalacticraftRegistry.registerRocketGui(SCCallistoWorldProvider.class, new ResourceLocation(CallistoCore.ASSET_DOMAIN, "textures/gui/CallistoRocketGui.png"));
}
 
开发者ID:4Space,项目名称:4-Space-Legacy,代码行数:47,代码来源:CallistoCore.java

示例12: load

import micdoodle8.mods.galacticraft.api.GalacticraftRegistry; //导入方法依赖的package包/类
@EventHandler
public void load(FMLInitializationEvent event)
{
    int languages = 0;

    for (String language : TitanCore.LANGUAGES_SUPPORTED)
    {
        LanguageRegistry.instance().loadLocalization(TitanCore.LANGUAGE_PATH + language + ".lang", language, false);

        if (LanguageRegistry.instance().getStringLocalization("children", language) != "")
        {
            try
            {
                String[] children = LanguageRegistry.instance().getStringLocalization("children", language).split(",");

                for (String child : children)
                {
                    if (child != "" || child != null)
                    {
                        LanguageRegistry.instance().loadLocalization(TitanCore.LANGUAGE_PATH + language + ".lang", child, false);
                        languages++;
                    }
                }
            }
            catch (Exception e)
            {
                FMLLog.severe("Failed to load a child language file.");
                e.printStackTrace();
            }
        }

        languages++;
    }

    GCLog.info("Starcraft Titan Loaded: " + languages + " Languages.");

    NetworkRegistry.instance().registerGuiHandler(TitanCore.instance, TitanCore.proxy);
    this.registerTileEntities();
    this.registerCreatures();
    this.registerOtherEntities();
    TitanCore.proxy.init(event);

    GalacticraftRegistry.registerTeleportType(SCTitanWorldProvider.class, new SCTitanTeleportType());
    GalacticraftRegistry.registerCelestialBody(new SCTitanPlanet());
    GalacticraftRegistry.registerRocketGui(SCTitanWorldProvider.class, new ResourceLocation(TitanCore.ASSET_DOMAIN, "textures/gui/TitanRocketGui.png"));
}
 
开发者ID:4Space,项目名称:4-Space-Legacy,代码行数:47,代码来源:TitanCore.java

示例13: load

import micdoodle8.mods.galacticraft.api.GalacticraftRegistry; //导入方法依赖的package包/类
@EventHandler
public void load(FMLInitializationEvent event)
{
    int languages = 0;

    for (String language : SaturnCore.LANGUAGES_SUPPORTED)
    {
        LanguageRegistry.instance().loadLocalization(SaturnCore.LANGUAGE_PATH + language + ".lang", language, false);

        if (LanguageRegistry.instance().getStringLocalization("children", language) != "")
        {
            try
            {
                String[] children = LanguageRegistry.instance().getStringLocalization("children", language).split(",");

                for (String child : children)
                {
                    if (child != "" || child != null)
                    {
                        LanguageRegistry.instance().loadLocalization(SaturnCore.LANGUAGE_PATH + language + ".lang", child, false);
                        languages++;
                    }
                }
            }
            catch (Exception e)
            {
                FMLLog.severe("Failed to load a child language file.");
                e.printStackTrace();
            }
        }

        languages++;
    }

    GCLog.info("Starcraft Saturn Loaded: " + languages + " Languages.");

    NetworkRegistry.instance().registerGuiHandler(SaturnCore.instance, SaturnCore.proxy);
    this.registerTileEntities();
    this.registerCreatures();
    this.registerOtherEntities();
    SaturnCore.proxy.init(event);

    SaturnCore.saturn = new SCSaturnPlanet();
    GalacticraftRegistry.registerCelestialBody(SaturnCore.saturn);
}
 
开发者ID:4Space,项目名称:4-Space-Legacy,代码行数:46,代码来源:SaturnCore.java

示例14: load

import micdoodle8.mods.galacticraft.api.GalacticraftRegistry; //导入方法依赖的package包/类
@EventHandler
public void load(FMLInitializationEvent event)
{
    int languages = 0;

    for (String language : NeptuneCore.LANGUAGES_SUPPORTED)
    {
        LanguageRegistry.instance().loadLocalization(NeptuneCore.LANGUAGE_PATH + language + ".lang", language, false);

        if (LanguageRegistry.instance().getStringLocalization("children", language) != "")
        {
            try
            {
                String[] children = LanguageRegistry.instance().getStringLocalization("children", language).split(",");

                for (String child : children)
                {
                    if (child != "" || child != null)
                    {
                        LanguageRegistry.instance().loadLocalization(NeptuneCore.LANGUAGE_PATH + language + ".lang", child, false);
                        languages++;
                    }
                }
            }
            catch (Exception e)
            {
                FMLLog.severe("Failed to load a child language file.");
                e.printStackTrace();
            }
        }

        languages++;
    }

    GCLog.info("Starcraft Neptune Loaded: " + languages + " Languages.");

    NetworkRegistry.instance().registerGuiHandler(NeptuneCore.instance, NeptuneCore.proxy);
    this.registerTileEntities();
    this.registerCreatures();
    this.registerOtherEntities();
    NeptuneCore.proxy.init(event);

    NeptuneCore.neptune = new SCNeptunePlanet();
    GalacticraftRegistry.registerCelestialBody(NeptuneCore.neptune);
}
 
开发者ID:4Space,项目名称:4-Space-Legacy,代码行数:46,代码来源:NeptuneCore.java

示例15: load

import micdoodle8.mods.galacticraft.api.GalacticraftRegistry; //导入方法依赖的package包/类
@EventHandler
public void load(FMLInitializationEvent event)
{
    int languages = 0;

    for (String language : IoCore.LANGUAGES_SUPPORTED)
    {
        LanguageRegistry.instance().loadLocalization(IoCore.LANGUAGE_PATH + language + ".lang", language, false);

        if (LanguageRegistry.instance().getStringLocalization("children", language) != "")
        {
            try
            {
                String[] children = LanguageRegistry.instance().getStringLocalization("children", language).split(",");

                for (String child : children)
                {
                    if (child != "" || child != null)
                    {
                        LanguageRegistry.instance().loadLocalization(IoCore.LANGUAGE_PATH + language + ".lang", child, false);
                        languages++;
                    }
                }
            }
            catch (Exception e)
            {
                FMLLog.severe("Failed to load a child language file.");
                e.printStackTrace();
            }
        }

        languages++;
    }

    GCLog.info("Starcraft Io Loaded: " + languages + " Languages.");

    NetworkRegistry.instance().registerGuiHandler(IoCore.instance, IoCore.proxy);
    this.registerTileEntities();
    this.registerCreatures();
    this.registerOtherEntities();
    IoCore.proxy.init(event);

    GalacticraftRegistry.registerTeleportType(SCIoWorldProvider.class, new SCIoTeleportType());
    GalacticraftRegistry.registerCelestialBody(new SCIoPlanet());
    GalacticraftRegistry.registerRocketGui(SCIoWorldProvider.class, new ResourceLocation(IoCore.ASSET_DOMAIN, "textures/gui/IoRocketGui.png"));
}
 
开发者ID:4Space,项目名称:4-Space-Legacy,代码行数:47,代码来源:IoCore.java


注:本文中的micdoodle8.mods.galacticraft.api.GalacticraftRegistry.registerCelestialBody方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。