本文整理汇总了Java中micdoodle8.mods.galacticraft.api.GalacticraftRegistry类的典型用法代码示例。如果您正苦于以下问题:Java GalacticraftRegistry类的具体用法?Java GalacticraftRegistry怎么用?Java GalacticraftRegistry使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
GalacticraftRegistry类属于micdoodle8.mods.galacticraft.api包,在下文中一共展示了GalacticraftRegistry类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: registerPlanetClient
import micdoodle8.mods.galacticraft.api.GalacticraftRegistry; //导入依赖的package包/类
public static void registerPlanetClient(Integer dimID, int providerIndex)
{
int providerID = GalacticraftRegistry.getProviderID(providerIndex);
if (providerID == 0)
{
GCLog.severe("Server dimension " + dimID + " has no match on client due to earlier registration problem.");
}
else
{
if (!WorldUtil.registeredPlanets.contains(dimID))
{
WorldUtil.registeredPlanets.add(dimID);
DimensionManager.registerDimension(dimID, providerID);
}
else
{
GCLog.severe("Dimension already registered to another mod: unable to register planet dimension " + dimID);
}
}
}
示例2: 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);
}
示例3: 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);
}
示例4: 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);
}
示例5: 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);
}
示例6: 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);
}
示例7: 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"));
}
示例8: getGuaranteedLoot
import micdoodle8.mods.galacticraft.api.GalacticraftRegistry; //导入依赖的package包/类
public ItemStack getGuaranteedLoot(Random rand)
{
List<ItemStack> stackList = GalacticraftRegistry.getDungeonLoot(2);
int range = 2;
//If player seems to have Tier 3 rocket already then add Astro Miner to the loot
final EntityPlayer player = this.worldObj.getClosestPlayer(this.posX, this.posY, this.posZ, 20.0);
if (player != null)
{
GCPlayerStats stats = GCPlayerStats.get((EntityPlayerMP) player);
if (stats != null)
{
for (ISchematicPage page : stats.unlockedSchematics)
{
if (page.getPageID() == ConfigManagerAsteroids.idSchematicRocketT3)
{
range = 3;
break;
}
}
if (stats.rocketItem == AsteroidsItems.tier3Rocket)
range = 3;
}
if (range == 2)
{
SpaceRace race = SpaceRaceManager.getSpaceRaceFromPlayer(player.getGameProfile().getName());
if (race != null && race.getCelestialBodyStatusList().containsKey(AsteroidsModule.planetAsteroids))
range = 3;
}
}
return stackList.get(rand.nextInt(range)).copy();
}
示例9: findMatchingSpaceshipT2Recipe
import micdoodle8.mods.galacticraft.api.GalacticraftRegistry; //导入依赖的package包/类
public static ItemStack findMatchingSpaceshipT2Recipe(InventorySchematicTier2Rocket inventoryRocketBench)
{
for (INasaWorkbenchRecipe recipe : GalacticraftRegistry.getRocketT2Recipes())
{
if (recipe.matches(inventoryRocketBench))
{
return recipe.getRecipeOutput();
}
}
return null;
}
示例10: findMatchingCargoRocketRecipe
import micdoodle8.mods.galacticraft.api.GalacticraftRegistry; //导入依赖的package包/类
public static ItemStack findMatchingCargoRocketRecipe(InventorySchematicCargoRocket inventoryRocketBench)
{
for (INasaWorkbenchRecipe recipe : GalacticraftRegistry.getCargoRocketRecipes())
{
if (recipe.matches(inventoryRocketBench))
{
return recipe.getRecipeOutput();
}
}
return null;
}
示例11: findMatchingSpaceshipT3Recipe
import micdoodle8.mods.galacticraft.api.GalacticraftRegistry; //导入依赖的package包/类
public static ItemStack findMatchingSpaceshipT3Recipe(InventorySchematicTier3Rocket inventoryRocketBench)
{
for (INasaWorkbenchRecipe recipe : GalacticraftRegistry.getRocketT3Recipes())
{
if (recipe.matches(inventoryRocketBench))
{
return recipe.getRecipeOutput();
}
}
return null;
}
示例12: findMatchingAstroMinerRecipe
import micdoodle8.mods.galacticraft.api.GalacticraftRegistry; //导入依赖的package包/类
public static ItemStack findMatchingAstroMinerRecipe (InventorySchematicAstroMiner craftMatrix)
{
for (INasaWorkbenchRecipe recipe : GalacticraftRegistry.getAstroMinerRecipes())
{
if (recipe.matches(craftMatrix))
{
return recipe.getRecipeOutput();
}
}
return null;
}
示例13: 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));
}
示例14: changeChannel
import micdoodle8.mods.galacticraft.api.GalacticraftRegistry; //导入依赖的package包/类
/**
* Cycle through different screen contents
*/
public void changeChannel()
{
if (!this.worldObj.isRemote)
{
if (++this.imageType >= GalacticraftRegistry.getMaxScreenTypes())
this.imageType = 0;
boolean flag = false;
if (!this.connectedRight && this.canJoinRight())
{
this.joinRight();
flag = true;
}
else if (!this.connectedLeft && this.canJoinLeft())
{
this.joinLeft();
flag = true;
}
else if (!this.connectedUp && this.canJoinUp())
{
this.joinUp();
flag = true;
}
else if (!this.connectedDown && this.canJoinDown())
{
this.joinDown();
flag = true;
}
this.refreshConnections(true);
this.markDirty();
this.updateClients();
}
}
示例15: doDraw
import micdoodle8.mods.galacticraft.api.GalacticraftRegistry; //导入依赖的package包/类
private void doDraw(int type, float ticks)
{
float lightMapSaveX = OpenGlHelper.lastBrightnessX;
float lightMapSaveY = OpenGlHelper.lastBrightnessY;
OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, 240F, 240F);
if (type > 0) GL11.glDisable(GL11.GL_LIGHTING);
GalacticraftRegistry.getGameScreen(type).render(type, ticks, scaleX, scaleZ, this);
if (type > 0) GL11.glEnable(GL11.GL_LIGHTING);
OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, lightMapSaveX, lightMapSaveY);
}