Interface PlanetAPI

All Superinterfaces:
HasMemory, SectorEntityToken

public interface PlanetAPI extends SectorEntityToken
  • Method Details

    • getTypeId

      String getTypeId()
    • isStar

      boolean isStar()
      Specified by:
      isStar in interface SectorEntityToken
    • 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

      void setLightColorOverrideIfStar(Color lightColorOverrideIfStar)
    • getTypeNameWithWorld

      String getTypeNameWithWorld()
    • getTypeNameWithLowerCaseWorld

      String getTypeNameWithLowerCaseWorld()
    • setTypeId

      void setTypeId(String typeId)
    • hasCondition

      boolean hasCondition(String id)
    • setSecondLight

      void setSecondLight(org.lwjgl.util.vector.Vector3f location, Color color)
    • getTypeNameWithWorldLowerCase

      String getTypeNameWithWorldLowerCase()
    • changeType

      void changeType(String type, Random random)
    • getDescriptionIdOverride

      String getDescriptionIdOverride()
    • setDescriptionIdOverride

      void setDescriptionIdOverride(String descriptionIdOverride)
    • isBlackHole

      boolean isBlackHole()