Interface JumpPointAPI

All Superinterfaces:
HasMemory, SectorEntityToken

public interface JumpPointAPI extends SectorEntityToken
  • Method Details

    • setRadius

      void setRadius(float radius)
    • addDestination

      void addDestination(JumpPointAPI.JumpDestination destination)
    • clearDestinations

      void clearDestinations()
    • removeDestination

      void removeDestination(SectorEntityToken destination)
    • getDestinations

    • setDestinationVisual

      void setDestinationVisual(String category, String id, SectorEntityToken entity)
      Also automatically sets the jump point size.
      Parameters:
      category - in settings.json
      id - under category in settings.json
      entity - can be null or a star/planet. Entity will be displayed at the end of the wormhole, above the background.
    • setStandardWormholeToStarOrPlanetVisual

      void setStandardWormholeToStarOrPlanetVisual(SectorEntityToken entity)
    • setStandardWormholeToHyperspaceVisual

      void setStandardWormholeToHyperspaceVisual()
    • setStandardWormholeToStarfieldVisual

      void setStandardWormholeToStarfieldVisual()
    • setStandardWormholeToNothingVisual

      void setStandardWormholeToNothingVisual()
    • isAutoCreateEntranceFromHyperspace

      boolean isAutoCreateEntranceFromHyperspace()
    • isStarAnchor

      boolean isStarAnchor()
      Returns:
      Whether the jump point leads to a star.
    • isGasGiantAnchor

      boolean isGasGiantAnchor()
      Returns:
      Whether the jump point leads to a gas giant.
    • setAutoCreateEntranceFromHyperspace

      void setAutoCreateEntranceFromHyperspace(boolean autoCreateEntrance)
    • getDestinationVisualEntity

      SectorEntityToken getDestinationVisualEntity()
    • getRelatedPlanet

      SectorEntityToken getRelatedPlanet()
    • setRelatedPlanet

      void setRelatedPlanet(SectorEntityToken relatedPlanet)
      This planet will be displayed by auto-generated jump points using this jump point as an exit. Should only be set for a jump point in the same location as the planet; only used for visuals. ONLY necessary if StatSystemAPI.autogenerateHyperspaceJumpPoints() is subsequently called.
      Parameters:
      relatedPlanet -
    • autoUpdateHyperJumpPointLocationBasedOnInSystemEntityAtRadius

      void autoUpdateHyperJumpPointLocationBasedOnInSystemEntityAtRadius(SectorEntityToken entity, float radius)
      May only be called after this jump point was added to the system, and also after StarSystemAPI.autogenerateHyperspaceAnchors() was called for the system, OR initStar() was called with the "location in hyperspace" parameters (which auto-generates the main hyperspace anchor).
      Parameters:
      entity -
      radius -
    • open

      void open()
      Purely visual.
    • close

      void close()
      Purely visual.
    • forceOpen

      void forceOpen()
      Skips animation.
    • forceClose

      void forceClose()
      Skips animation.
    • getDestinationStarSystem

      StarSystemAPI getDestinationStarSystem()
    • isWormhole

      boolean isWormhole()