本文整理汇总了Java中micdoodle8.mods.galacticraft.api.GalacticraftRegistry.getSpaceStationData方法的典型用法代码示例。如果您正苦于以下问题:Java GalacticraftRegistry.getSpaceStationData方法的具体用法?Java GalacticraftRegistry.getSpaceStationData怎么用?Java GalacticraftRegistry.getSpaceStationData使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类micdoodle8.mods.galacticraft.api.GalacticraftRegistry
的用法示例。
在下文中一共展示了GalacticraftRegistry.getSpaceStationData方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getSpaceStationRecipe
import micdoodle8.mods.galacticraft.api.GalacticraftRegistry; //导入方法依赖的package包/类
public static SpaceStationRecipe getSpaceStationRecipe(int planetID)
{
for (SpaceStationType type : GalacticraftRegistry.getSpaceStationData())
{
if (type.getWorldToOrbitID() == planetID)
{
return type.getRecipeForSpaceStation();
}
}
return null;
}
示例2: getSpaceStationRecipe
import micdoodle8.mods.galacticraft.api.GalacticraftRegistry; //导入方法依赖的package包/类
public static SpaceStationRecipe getSpaceStationRecipe(int planetID)
/* */ {
/* 845 */ for (SpaceStationType type : GalacticraftRegistry.getSpaceStationData())
/* */ {
/* 847 */ if (type.getWorldToOrbitID() == planetID)
/* */ {
/* 849 */ return type.getRecipeForSpaceStation();
/* */ }
/* */ }
/* */
/* 853 */ return null;
/* */ }
示例3: canCreateSpaceStation
import micdoodle8.mods.galacticraft.api.GalacticraftRegistry; //导入方法依赖的package包/类
protected boolean canCreateSpaceStation(CelestialBody atBody)
{
if (this.mapMode || ConfigManagerCore.disableSpaceStationCreation)
{
return false;
}
if (!atBody.getReachable() || (this.possibleBodies != null && !this.possibleBodies.contains(atBody)))
{
// If parent body is unreachable, the satellite is also unreachable
return false;
}
boolean foundRecipe = false;
for (SpaceStationType type : GalacticraftRegistry.getSpaceStationData())
{
if (type.getWorldToOrbitID() == atBody.getDimensionID())
{
foundRecipe = true;
}
}
if (!foundRecipe)
{
return false;
}
if (!ClientProxyCore.clientSpaceStationID.containsKey(atBody.getDimensionID()))
{
return true;
}
int resultID = ClientProxyCore.clientSpaceStationID.get(atBody.getDimensionID());
if (resultID != 0 && resultID != -1)
// if (ClientProxyCore.clientSpaceStationID != 0 && ClientProxyCore.clientSpaceStationID != -1)
{
return false;
}
return true;
}