Package com.fs.starfarer.api.campaign
Interface PlanetAPI
- All Superinterfaces:
HasMemory
,SectorEntityToken
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.fs.starfarer.api.campaign.SectorEntityToken
SectorEntityToken.VisibilityLevel
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Applies any changes made using getSpec().setXXX to the planet's graphics.void
changeType
(String type, Random random) getSpec()
The object returned by this method can be changed to control how this specific planet looks, without affecting other planets of the same type.boolean
hasCondition
(String id) boolean
boolean
boolean
isMoon()
boolean
Star, not a black hole or a pulsar or a nebula center.boolean
isStar()
void
setDescriptionIdOverride
(String descriptionIdOverride) void
setLightColorOverrideIfStar
(Color lightColorOverrideIfStar) void
setRadius
(float radius) void
setSecondLight
(org.lwjgl.util.vector.Vector3f location, Color color) void
Methods inherited from interface com.fs.starfarer.api.campaign.SectorEntityToken
addAbility, addDropRandom, addDropRandom, addDropRandom, addDropValue, addDropValue, addFloatingText, addFloatingText, addScript, addTag, advance, autoUpdateHyperLocationBasedOnInSystemEntityAtRadius, clearAbilities, clearFloatingText, clearTags, fadeInIndicator, fadeOutIndicator, forceOutIndicator, forceSensorContactFaderBrightness, forceSensorFaderBrightness, forceSensorFaderOut, getAbilities, getAbility, getActivePerson, getAlwaysUseSensorFaderBrightness, getAutogenJumpPointNameInHyper, getBaseSensorRangeToDetect, getCargo, getCircularOrbitAngle, getCircularOrbitPeriod, getCircularOrbitRadius, getConstellation, getContainingLocation, getCustomData, getCustomDescriptionId, getCustomEntitySpec, getCustomEntityType, getCustomInteractionDialogImageVisual, getCustomPlugin, getDetectedRangeMod, getDetectionRangeDetailsOverrideMult, getDiscoveryXP, getDropRandom, getDropValue, getExtendedDetectedAtRange, getFacing, getFaction, getFullName, getId, getIndicatorColor, getLightColor, getLightSource, getLocation, getLocationInHyperspace, getMarket, getMaxSensorRangeToDetect, getMemory, getMemoryWithoutUpdate, getName, getOrbit, getOrbitFocus, getRadius, getSalvageXP, getScripts, getSensorContactFaderBrightness, getSensorFaderBrightness, getSensorProfile, getSensorRangeMod, getSensorStrength, getStarSystem, getTags, getVelocity, getVisibilityLevelOfPlayerFleet, getVisibilityLevelTo, getVisibilityLevelToPlayerFleet, hasAbility, hasDiscoveryXP, hasSalvageXP, hasScriptOfClass, hasSensorProfile, hasSensorStrength, hasTag, isAlive, isDiscoverable, isExpired, isFreeTransfer, isInCurrentLocation, isInHyperspace, isInOrNearSystem, isPlayerFleet, isSkipForJumpPointAutoGen, isSystemCenter, isTransponderOn, isVisibleToPlayerFleet, isVisibleToSensorsOf, removeAbility, removeScript, removeScriptsOfClass, removeTag, setActivePerson, setAlwaysUseSensorFaderBrightness, setAutogenJumpPointNameInHyper, setCircularOrbit, setCircularOrbitAngle, setCircularOrbitPointingDown, setCircularOrbitWithSpin, setContainingLocation, setCustomDescriptionId, setCustomInteractionDialogImageVisual, setDetectionRangeDetailsOverrideMult, setDiscoverable, setDiscoveryXP, setExpired, setExtendedDetectedAtRange, setFacing, setFaction, setFixedLocation, setFreeTransfer, setId, setInteractionImage, setLightSource, setLocation, setMarket, setMemory, setName, setOrbit, setOrbitFocus, setSalvageXP, setSensorProfile, setSensorStrength, setSkipForJumpPointAutoGen, setTransponderOn
-
Method Details
-
getTypeId
String getTypeId() -
isStar
boolean isStar()- Specified by:
isStar
in interfaceSectorEntityToken
-
isNormalStar
boolean isNormalStar()Star, not a black hole or a pulsar or a nebula center.- Returns:
-
isGasGiant
boolean isGasGiant() -
isMoon
boolean isMoon() -
getSpec
PlanetSpecAPI getSpec()The object returned by this method can be changed to control how this specific planet looks, without affecting other planets of the same type. applySpecChanges() must be called for the changes to take effect.- Returns:
-
applySpecChanges
void applySpecChanges()Applies any changes made using getSpec().setXXX to the planet's graphics. -
setRadius
void setRadius(float radius) -
getLightColorOverrideIfStar
Color getLightColorOverrideIfStar() -
setLightColorOverrideIfStar
-
getTypeNameWithWorld
String getTypeNameWithWorld() -
getTypeNameWithLowerCaseWorld
String getTypeNameWithLowerCaseWorld() -
setTypeId
-
hasCondition
-
setSecondLight
-
getTypeNameWithWorldLowerCase
String getTypeNameWithWorldLowerCase() -
changeType
-
getDescriptionIdOverride
String getDescriptionIdOverride() -
setDescriptionIdOverride
-
isBlackHole
boolean isBlackHole()
-