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


Java GalacticraftRegistry.registerRocketGui方法代码示例

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


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

示例1: init

import micdoodle8.mods.galacticraft.api.GalacticraftRegistry; //导入方法依赖的package包/类
@EventHandler
public void init(FMLInitializationEvent event) {
	if (ConfigManagerEuropa.idEuropaEnabled && ConfigManagerCore.idJupiterEnabled) {
		EuropaCore.moonEuropa = (Moon) new Moon("europa").setParentPlanet(SpaceCore.planetJupiter).setRelativeSize(0.1656F).setRelativeDistanceFromCenter(new CelestialBody.ScalableDistance(14F, 14F)).setRelativeOrbitTime(1 / 0.001F);
		EuropaCore.moonEuropa.setDimensionInfo(ConfigManagerEuropa.idDimensionEuropa, WorldProviderEuropa.class).setTierRequired(3);
		EuropaCore.moonEuropa.setBodyIcon(new ResourceLocation(GalacticraftCore.ASSET_PREFIX, "textures/gui/celestialbodies/europa.png"));

		GalaxyRegistry.registerMoon(EuropaCore.moonEuropa);

		GalacticraftRegistry.registerTeleportType(WorldProviderEuropa.class, new TeleportTypeEuropa());

		GalacticraftRegistry.registerRocketGui(WorldProviderEuropa.class, new ResourceLocation(EuropaCore.TEXTURE_PREFIX + "textures/gui/europaRocketGui.png"));

		this.registerTileEntities();
		this.registerCreatures();
		this.registerOtherEntities();
	}

	this.proxy.init(event);
}
 
开发者ID:4Space,项目名称:4Space-1.7,代码行数:21,代码来源:EuropaCore.java

示例2: init

import micdoodle8.mods.galacticraft.api.GalacticraftRegistry; //导入方法依赖的package包/类
@EventHandler
public void init(FMLInitializationEvent event) {
	if (ConfigManagerMercury.idMercuryEnabled) {
		MercuryCore.planetMercury = (Planet) new Planet("mercury").setParentSolarSystem(GalacticraftCore.solarSystemSol).setRingColorRGB(0.1F, 0.9F, 0.6F).setPhaseShift(2.0F).setRelativeSize(0.5319F).setRelativeDistanceFromCenter(new CelestialBody.ScalableDistance(0.5F, 0.5F)).setRelativeOrbitTime(0.24096385542168674698795180722892F);
		MercuryCore.planetMercury.setBodyIcon(new ResourceLocation(GalacticraftCore.ASSET_PREFIX, "textures/gui/celestialbodies/mercury.png"));
		MercuryCore.planetMercury.setDimensionInfo(ConfigManagerMercury.idDimensionMercury, WorldProviderMercury.class).setTierRequired(2);
		MercuryCore.planetMercury.atmosphereComponent(IAtmosphericGas.CO2).atmosphereComponent(IAtmosphericGas.HELIUM).atmosphereComponent(IAtmosphericGas.ARGON);

		GalaxyRegistry.registerPlanet(MercuryCore.planetMercury);

		GalacticraftRegistry.registerTeleportType(WorldProviderMercury.class, new TeleportTypeMercury());

		GalacticraftRegistry.registerRocketGui(WorldProviderMercury.class, new ResourceLocation(MercuryCore.TEXTURE_PREFIX + "textures/gui/mercuryRocketGui.png"));

		CompressorRecipes.addShapelessRecipe(new ItemStack(MercuryItems.mercuryBasicItem, 2, 1), new ItemStack(MercuryItems.mercuryBasicItem, 1, 0));

		CompressorRecipes.addShapelessRecipe(new ItemStack(MercuryItems.mercuryBasicItem, 3, 2), new ItemStack(MercuryItems.mercuryBasicItem, 1, 1), new ItemStack(MercuryItems.mercuryBasicItem, 1, 0), new ItemStack(MercuryItems.mercuryBasicItem, 1, 1));

		this.registerTileEntities();
		this.registerCreatures();
		this.registerOtherEntities();
	}

	this.proxy.init(event);
}
 
开发者ID:4Space,项目名称:4Space-1.7,代码行数:26,代码来源:MercuryCore.java

示例3: init

import micdoodle8.mods.galacticraft.api.GalacticraftRegistry; //导入方法依赖的package包/类
@EventHandler
public void init(FMLInitializationEvent event) {
	if (ConfigManagerCallisto.idCallistoEnabled && ConfigManagerCore.idJupiterEnabled) {
		CallistoCore.moonCallisto = (Moon) new Moon("callisto").setParentPlanet(SpaceCore.planetJupiter).setRelativeSize(0.1656F).setRelativeDistanceFromCenter(new CelestialBody.ScalableDistance(17F, 17F)).setRelativeOrbitTime(1 / 0.000025F);
		CallistoCore.moonCallisto.setDimensionInfo(ConfigManagerCallisto.idDimensionCallisto, WorldProviderCallisto.class).setTierRequired(3);
		CallistoCore.moonCallisto.setBodyIcon(new ResourceLocation(GalacticraftCore.ASSET_PREFIX, "textures/gui/celestialbodies/callisto.png"));

		GalaxyRegistry.registerMoon(CallistoCore.moonCallisto);

		GalacticraftRegistry.registerTeleportType(WorldProviderCallisto.class, new TeleportTypeCallisto());

		GalacticraftRegistry.registerRocketGui(WorldProviderCallisto.class, new ResourceLocation(CallistoCore.TEXTURE_PREFIX + "textures/gui/callistoRocketGui.png"));

		this.registerTileEntities();
		this.registerCreatures();
		this.registerOtherEntities();
	}

	this.proxy.init(event);
}
 
开发者ID:4Space,项目名称:4Space-1.7,代码行数:21,代码来源:CallistoCore.java

示例4: init

import micdoodle8.mods.galacticraft.api.GalacticraftRegistry; //导入方法依赖的package包/类
@EventHandler
public void init(FMLInitializationEvent event) {
	if (ConfigManagerIo.idIoEnabled && ConfigManagerCore.idJupiterEnabled) {
		IoCore.moonIo = (Moon) new Moon("io").setParentPlanet(SpaceCore.planetJupiter).setRelativeSize(0.1367F).setRelativeDistanceFromCenter(new CelestialBody.ScalableDistance(10F, 10F)).setRelativeOrbitTime(1 / 0.05F);
		IoCore.moonIo.setDimensionInfo(ConfigManagerIo.idDimensionIo, WorldProviderIo.class).setTierRequired(3);
		IoCore.moonIo.setBodyIcon(new ResourceLocation(GalacticraftCore.ASSET_PREFIX, "textures/gui/celestialbodies/io.png"));

		GalaxyRegistry.registerMoon(IoCore.moonIo);

		GalacticraftRegistry.registerTeleportType(WorldProviderIo.class, new TeleportTypeIo());

		GalacticraftRegistry.registerRocketGui(WorldProviderIo.class, new ResourceLocation(IoCore.TEXTURE_PREFIX + "textures/gui/ioRocketGui.png"));

		this.registerTileEntities();
		this.registerCreatures();
		this.registerOtherEntities();
	}

	this.proxy.init(event);
}
 
开发者ID:4Space,项目名称:4Space-1.7,代码行数:21,代码来源:IoCore.java

示例5: init

import micdoodle8.mods.galacticraft.api.GalacticraftRegistry; //导入方法依赖的package包/类
@EventHandler
public void init(FMLInitializationEvent event) {
	if (ConfigManagerElipse.idElipseEnabled) {
		ElipseCore.planetElpis = (Planet) new Planet("elpis").setParentSolarSystem(ExoCore.gliese581g).setRingColorRGB(0.1F, 0.9F, 0.6F).setPhaseShift(0.3F).setRelativeSize(0.3519F).setRelativeDistanceFromCenter(new CelestialBody.ScalableDistance(0.45F, 0.45F)).setRelativeOrbitTime(1.86199F);
		ElipseCore.planetElpis.setBodyIcon(new ResourceLocation(ExoCore.ASSET_PREFIX, "textures/gui/celestialbodies/elpis.png"));
		ElipseCore.planetElpis.setDimensionInfo(ConfigManagerElipse.idDimensionElipse, WorldProviderElipse.class).setTierRequired(3);

		GalaxyRegistry.registerPlanet(ElipseCore.planetElpis);

		GalacticraftRegistry.registerTeleportType(WorldProviderElipse.class, new TeleportTypeElipse());

		GalacticraftRegistry.registerRocketGui(WorldProviderElipse.class, new ResourceLocation(ElipseCore.TEXTURE_PREFIX + "textures/gui/elipseRocketGui.png"));

		this.registerTileEntities();
		this.registerCreatures();
		this.registerOtherEntities();
	}

	this.proxy.init(event);
}
 
开发者ID:4Space,项目名称:4Space-1.7,代码行数:21,代码来源:ElipseCore.java

示例6: init

import micdoodle8.mods.galacticraft.api.GalacticraftRegistry; //导入方法依赖的package包/类
@EventHandler
public void init(FMLInitializationEvent event){
		
	PixelGalaxyMod.lostPixel = new SolarSystem("lostpixel","milkyWay").setMapPosition(new Vector3(0.25F,0.25F));
	Star pixelSun = (Star) new Star("pixel").setParentSolarSystem(PixelGalaxyMod.lostPixel).setTierRequired(-1);
	pixelSun.setBodyIcon(new ResourceLocation(Constants.ASSET_PREFIX, "textures/gui/celestialbodies/pixelsun.png"));
       PixelGalaxyMod.lostPixel.setMainStar(pixelSun);
       
       PixelGalaxyMod.greenPixel = new Planet("greenpixel").setParentSolarSystem(PixelGalaxyMod.lostPixel);//GalacticraftCore.solarSystemSol
       PixelGalaxyMod.greenPixel.setTierRequired(3).setRingColorRGB(0.1F, 0.9F, 0.6F).setPhaseShift(0.0F).setRelativeDistanceFromCenter(new CelestialBody.ScalableDistance(0.25F, 0.25F));
       PixelGalaxyMod.greenPixel.setBodyIcon(new ResourceLocation(Constants.ASSET_PREFIX, "textures/gui/celestialbodies/greenPixel.png"));
       PixelGalaxyMod.greenPixel.atmosphereComponent(IAtmosphericGas.NITROGEN).atmosphereComponent(IAtmosphericGas.OXYGEN).atmosphereComponent(IAtmosphericGas.ARGON).atmosphereComponent(IAtmosphericGas.WATER);
       PixelGalaxyMod.greenPixel.setDimensionInfo(10, WorldProviderGreenPixel.class);
       
       wrapper = NetworkRegistry.INSTANCE.newSimpleChannel("PixelGalaxyMod");
       
       wrapper.registerMessage(PacketEHandPos.Handler.class, PacketEHandPos.class, 9, Side.SERVER);
       
       GalaxyRegistry.registerSolarSystem(lostPixel);
       GalaxyRegistry.registerPlanet(greenPixel);
       GalacticraftRegistry.registerTeleportType(WorldProviderGreenPixel.class, new TeleportTypeGreenPixel());
       GalacticraftRegistry.registerRocketGui(WorldProviderGreenPixel.class, new ResourceLocation(Constants.ASSET_PREFIX, "textures/gui/greenRocketGui.png"));
}
 
开发者ID:RamiLego4Game,项目名称:GalacticraftPixelGalaxy,代码行数:24,代码来源:PixelGalaxyMod.java

示例7: init

import micdoodle8.mods.galacticraft.api.GalacticraftRegistry; //导入方法依赖的package包/类
@Override
public void init(FMLInitializationEvent event)
{
    this.registerMicroBlocks();
	SchematicRegistry.registerSchematicRecipe(new SchematicTier2Rocket());
    SchematicRegistry.registerSchematicRecipe(new SchematicCargoRocket());

    GalacticraftCore.packetPipeline.addDiscriminator(6, PacketSimpleMars.class);

    this.registerTileEntities();
    this.registerCreatures();
    this.registerOtherEntities();

    MarsModule.planetMars = (Planet) new Planet("mars").setParentSolarSystem(GalacticraftCore.solarSystemSol).setRingColorRGB(0.67F, 0.1F, 0.1F).setPhaseShift(0.1667F).setRelativeSize(0.5319F).setRelativeDistanceFromCenter(new CelestialBody.ScalableDistance(1.25F, 1.25F)).setRelativeOrbitTime(1.8811610076670317634173055859803F);
    MarsModule.planetMars.setBodyIcon(new ResourceLocation(GalacticraftCore.ASSET_PREFIX, "textures/gui/celestialbodies/mars.png"));
    MarsModule.planetMars.setDimensionInfo(ConfigManagerMars.dimensionIDMars, WorldProviderMars.class).setTierRequired(2);
    MarsModule.planetMars.atmosphereComponent(IAtmosphericGas.CO2).atmosphereComponent(IAtmosphericGas.ARGON).atmosphereComponent(IAtmosphericGas.NITROGEN);

    GalaxyRegistry.registerPlanet(MarsModule.planetMars);
    GalacticraftRegistry.registerTeleportType(WorldProviderMars.class, new TeleportTypeMars());
    GalacticraftRegistry.registerRocketGui(WorldProviderMars.class, new ResourceLocation(MarsModule.ASSET_PREFIX, "textures/gui/marsRocketGui.png"));
    GalacticraftRegistry.addDungeonLoot(2, new ItemStack(MarsItems.schematic, 1, 0));
    GalacticraftRegistry.addDungeonLoot(2, new ItemStack(MarsItems.schematic, 1, 1));
    GalacticraftRegistry.addDungeonLoot(2, new ItemStack(MarsItems.schematic, 1, 2));
    GalacticraftRegistry.addDungeonLoot(3, new ItemStack(MarsItems.schematic, 1, 2));

    CompressorRecipes.addShapelessRecipe(new ItemStack(MarsItems.marsItemBasic, 1, 3), new ItemStack(GCItems.heavyPlatingTier1), new ItemStack(GCItems.meteoricIronIngot, 1, 1));
    CompressorRecipes.addShapelessRecipe(new ItemStack(MarsItems.marsItemBasic, 1, 5), new ItemStack(MarsItems.marsItemBasic, 1, 2));
}
 
开发者ID:4Space,项目名称:4Space-5,代码行数:30,代码来源:MarsModule.java

示例8: registerMoon

import micdoodle8.mods.galacticraft.api.GalacticraftRegistry; //导入方法依赖的package包/类
/**
 * Registers the moon with Galacticraft.
 */
public void registerMoon() {
	moon = getNewMoon();
	moon.setParentPlanet(getParent());
	GalaxyRegistry.registerMoon(moon);
	
	if (worldProvider != null) {
		GalacticraftRegistry.registerTeleportType(worldProvider.getClass(), teleportType);
		GalacticraftRegistry.registerRocketGui(worldProvider.getClass(), new ResourceLocation(prefixTexture + rocketGuiLocation));
	}
}
 
开发者ID:4Space,项目名称:4Space-5,代码行数:14,代码来源:ICoreMoon.java

示例9: registerPlanet

import micdoodle8.mods.galacticraft.api.GalacticraftRegistry; //导入方法依赖的package包/类
/**
 * Registers the planet with Galacticraft.
 */
public void registerPlanet() {
	planet = getNewPlanet();
	
	if (planet != null) {
		GalaxyRegistry.registerPlanet(planet);
		
		if (worldProvider != null) {
			GalacticraftRegistry.registerTeleportType(worldProvider.getClass(), teleportType);
			GalacticraftRegistry.registerRocketGui(worldProvider.getClass(), new ResourceLocation(prefixTexture + rocketGuiLocation));
		}
	}
}
 
开发者ID:4Space,项目名称:4Space-5,代码行数:16,代码来源:ICorePlanet.java

示例10: init

import micdoodle8.mods.galacticraft.api.GalacticraftRegistry; //导入方法依赖的package包/类
@EventHandler
public void init(FMLInitializationEvent event) {
	if (ConfigManagerVenus.idVenusEnabled) {
		VenusBlocks.init();
		VenusItems.init();

		VenusCore.planetVenus = (Planet) new Planet("venus").setParentSolarSystem(GalacticraftCore.solarSystemSol).setRingColorRGB(0.1F, 0.9F, 0.6F).setPhaseShift(2.0F).setRelativeSize(0.5319F).setRelativeDistanceFromCenter(new CelestialBody.ScalableDistance(0.75F, 0.75F)).setRelativeOrbitTime(0.61527929901423877327491785323111F);
		VenusCore.planetVenus.setBodyIcon(new ResourceLocation(GalacticraftCore.ASSET_PREFIX, "textures/gui/celestialbodies/venus.png"));
		VenusCore.planetVenus.setDimensionInfo(ConfigManagerVenus.idDimensionVenus, WorldProviderVenus.class).setTierRequired(2);
		VenusCore.planetVenus.atmosphereComponent(IAtmosphericGas.CO2).atmosphereComponent(IAtmosphericGas.HELIUM).atmosphereComponent(IAtmosphericGas.ARGON);

		GalaxyRegistry.registerPlanet(VenusCore.planetVenus);

		GalacticraftRegistry.registerTeleportType(WorldProviderVenus.class, new TeleportTypeVenus());

		GalacticraftRegistry.registerRocketGui(WorldProviderVenus.class, new ResourceLocation(VenusCore.TEXTURE_PREFIX + "textures/gui/venusRocketGui.png"));

		CompressorRecipes.addShapelessRecipe(new ItemStack(VenusItems.venusBasicItem, 2, 5), new ItemStack(VenusItems.venusBasicItem, 1, 0));
		CompressorRecipes.addShapelessRecipe(new ItemStack(VenusItems.venusBasicItem, 1, 5), new ItemStack(VenusItems.venusBasicItem, 1, 1));
		CompressorRecipes.addShapelessRecipe(new ItemStack(VenusItems.venusBasicItem, 1, 6), new ItemStack(VenusItems.venusBasicItem, 1, 2));
		CompressorRecipes.addShapelessRecipe(new ItemStack(VenusItems.venusBasicItem, 1, 7), new ItemStack(VenusItems.venusBasicItem, 1, 3));

		CompressorRecipes.addShapelessRecipe(new ItemStack(VenusItems.venusBasicItem, 3, 8), new ItemStack(VenusItems.venusBasicItem, 1, 5), new ItemStack(VenusItems.venusBasicItem, 1, 6), new ItemStack(VenusItems.venusBasicItem, 1, 7));

		this.registerTileEntities();
		this.registerCreatures();
		this.registerOtherEntities();
	}

	this.proxy.init(event);
}
 
开发者ID:4Space,项目名称:4Space-1.7,代码行数:32,代码来源:VenusCore.java

示例11: init

import micdoodle8.mods.galacticraft.api.GalacticraftRegistry; //导入方法依赖的package包/类
@EventHandler
public void init(FMLInitializationEvent event) {
	if (ConfigManagerPluto.idPlutoEnabled) {
		PlutoCore.planetPluto = (Planet) new Planet("pluto").setParentSolarSystem(GalacticraftCore.solarSystemSol).setRingColorRGB(0.1F, 0.9F, 0.6F).setPhaseShift(2.0F).setRelativeSize(0.5319F).setRelativeDistanceFromCenter(new CelestialBody.ScalableDistance(2.5F, 2.0F)).setRelativeOrbitTime(194.84118291347207009857612267251F);
		PlutoCore.planetPluto.setBodyIcon(new ResourceLocation(PlutoCore.ASSET_PREFIX, "textures/gui/celestialbodies/pluto.png"));
		PlutoCore.planetPluto.setDimensionInfo(ConfigManagerPluto.idDimensionPluto, WorldProviderPluto.class).setTierRequired(3); // 5
		PlutoCore.planetPluto.atmosphereComponent(IAtmosphericGas.CO2).atmosphereComponent(IAtmosphericGas.HELIUM).atmosphereComponent(IAtmosphericGas.ARGON);

		GalaxyRegistry.registerPlanet(PlutoCore.planetPluto);

		GalacticraftRegistry.registerTeleportType(WorldProviderPluto.class, new TeleportTypePluto());

		GalacticraftRegistry.registerRocketGui(WorldProviderPluto.class, new ResourceLocation(PlutoCore.TEXTURE_PREFIX + "textures/gui/plutoRocketGui.png"));

		CompressorRecipes.addShapelessRecipe(new ItemStack(PlutoItems.plutoBasicItem, 2, 3), new ItemStack(PlutoItems.plutoBasicItem, 1, 0));
		CompressorRecipes.addShapelessRecipe(new ItemStack(PlutoItems.plutoBasicItem, 1, 4), new ItemStack(PlutoItems.plutoBasicItem, 1, 2));
		CompressorRecipes.addShapelessRecipe(new ItemStack(PlutoItems.plutoBasicItem, 1, 5), new ItemStack(PlutoItems.plutoBasicItem, 1, 1));

		CompressorRecipes.addShapelessRecipe(new ItemStack(PlutoItems.plutoBasicItem, 3, 6), new ItemStack(PlutoItems.plutoBasicItem, 1, 3), new ItemStack(PlutoItems.plutoBasicItem, 1, 5), new ItemStack(PlutoItems.plutoBasicItem, 1, 4));

		this.registerTileEntities();
		this.registerCreatures();
		this.registerOtherEntities();
	}

	this.proxy.init(event);
}
 
开发者ID:4Space,项目名称:4Space-1.7,代码行数:28,代码来源:PlutoCore.java

示例12: 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

示例13: 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

示例14: 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

示例15: 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


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