Class CodexDataV2

java.lang.Object
com.fs.starfarer.api.impl.codex.CodexDataV2

public class CodexDataV2 extends Object
  • Field Details

    • WITH_GAME_MECHANICS_CAT

      public static boolean WITH_GAME_MECHANICS_CAT
    • WITH_CUSTOM_EXAMPLE_CAT

      public static boolean WITH_CUSTOM_EXAMPLE_CAT
    • ROOT

      public static CodexEntryPlugin ROOT
    • ENTRIES

      public static Map<String,CodexEntryPlugin> ENTRIES
    • SEEN_STATION_MODULES

      public static Map<String,CodexEntryPlugin> SEEN_STATION_MODULES
    • TAG_EMPTY_MODULE

      public static String TAG_EMPTY_MODULE
    • CAT_ROOT

      public static String CAT_ROOT
    • CAT_SHIPS

      public static String CAT_SHIPS
    • CAT_STATIONS

      public static String CAT_STATIONS
    • CAT_FIGHTERS

      public static String CAT_FIGHTERS
    • CAT_WEAPONS

      public static String CAT_WEAPONS
    • CAT_HULLMODS

      public static String CAT_HULLMODS
    • CAT_SHIP_SYSTEMS

      public static String CAT_SHIP_SYSTEMS
    • CAT_SPECIAL_ITEMS

      public static String CAT_SPECIAL_ITEMS
    • CAT_INDUSTRIES

      public static String CAT_INDUSTRIES
    • CAT_STARS_AND_PLANETS

      public static String CAT_STARS_AND_PLANETS
    • CAT_PLANETARY_CONDITIONS

      public static String CAT_PLANETARY_CONDITIONS
    • CAT_COMMODITIES

      public static String CAT_COMMODITIES
    • CAT_SKILLS

      public static String CAT_SKILLS
    • CAT_ABILITIES

      public static String CAT_ABILITIES
    • CAT_GAME_MECHANICS

      public static String CAT_GAME_MECHANICS
    • CAT_CUSTOM_EXAMPLE

      public static String CAT_CUSTOM_EXAMPLE
    • UNKNOWN_ENTRY_ID

      public static String UNKNOWN_ENTRY_ID
    • ALL_TECHS

      public static String ALL_TECHS
    • ALL_APTITUDES

      public static String ALL_APTITUDES
    • ALL_SIZES

      public static String ALL_SIZES
    • ALL_TYPES

      public static String ALL_TYPES
    • ALL_DAMAGE_TYPES

      public static String ALL_DAMAGE_TYPES
    • HIGH_EXPLOSIVE

      public static String HIGH_EXPLOSIVE
    • KINETIC

      public static String KINETIC
    • DAM_ENERGY

      public static String DAM_ENERGY
    • FRAGMENTATION

      public static String FRAGMENTATION
    • FRIGATES

      public static String FRIGATES
    • DESTROYERS

      public static String DESTROYERS
    • CRUISERS

      public static String CRUISERS
    • CAPITALS

      public static String CAPITALS
    • COMBAT_SHIPS

      public static String COMBAT_SHIPS
    • PHASE_SHIPS

      public static String PHASE_SHIPS
    • CARRIERS

      public static String CARRIERS
    • CIVILIAN

      public static String CIVILIAN
    • SMALL

      public static String SMALL
    • MEDIUM

      public static String MEDIUM
    • LARGE

      public static String LARGE
    • FIGHTER_WEAPON

      public static String FIGHTER_WEAPON
    • BALLISTIC

      public static String BALLISTIC
    • MISSILE

      public static String MISSILE
    • ENERGY

      public static String ENERGY
    • HYBRID

      public static String HYBRID
    • COMPOSITE

      public static String COMPOSITE
    • SYNERGY

      public static String SYNERGY
    • UNIVERSAL

      public static String UNIVERSAL
    • BEAM

      public static String BEAM
    • FIGHTER

      public static String FIGHTER
    • BOMBER

      public static String BOMBER
    • INTERCEPTOR

      public static String INTERCEPTOR
    • OTHER

      public static String OTHER
    • DMODS

      public static String DMODS
    • INTRINSIC

      public static String INTRINSIC
    • PLANETS

      public static String PLANETS
    • STARS

      public static String STARS
    • GAS_GIANTS

      public static String GAS_GIANTS
    • HABITABLE

      public static String HABITABLE
    • COLONY

      public static String COLONY
    • AI_CORE

      public static String AI_CORE
    • BLUEPRINTS

      public static String BLUEPRINTS
    • INDUSTRIES

      public static String INDUSTRIES
    • STRUCTURES

      public static String STRUCTURES
    • STATIONS

      public static String STATIONS
    • RESOURCES

      public static String RESOURCES
    • PILOTED_SHIP

      public static String PILOTED_SHIP
  • Constructor Details

    • CodexDataV2

      public CodexDataV2()
  • Method Details

    • init

      public static void init()
    • addUnknownEntry

      public static void addUnknownEntry()
    • addCustomCodexEntryDetailPanelExample

      public static void addCustomCodexEntryDetailPanelExample()
    • setCatSort

      public static void setCatSort(CodexEntryPlugin root, Set<CodexEntryPlugin> seen)
    • createHullModsCategory

      public static CodexEntryV2 createHullModsCategory()
    • createGameMechanicsCategory

      public static CodexEntryV2 createGameMechanicsCategory()
    • createGalleryCategory

      public static CodexEntryV2 createGalleryCategory()
    • createCommoditiesCategory

      public static CodexEntryV2 createCommoditiesCategory()
    • createIndustriesCategory

      public static CodexEntryV2 createIndustriesCategory()
    • createSpecialItemsCategory

      public static CodexEntryV2 createSpecialItemsCategory()
    • createPlanetaryConditionsCategory

      public static CodexEntryV2 createPlanetaryConditionsCategory()
    • createStarsAndPlanetsCategory

      public static CodexEntryV2 createStarsAndPlanetsCategory()
    • createShipSystemsCategory

      public static CodexEntryV2 createShipSystemsCategory()
    • createFightersCategory

      public static CodexEntryV2 createFightersCategory()
    • createCustomExampleCategory

      public static CodexEntryV2 createCustomExampleCategory()
    • createWeaponsCategory

      public static CodexEntryV2 createWeaponsCategory()
    • createSkillsCategory

      public static CodexEntryV2 createSkillsCategory()
    • createAbilitiesCategory

      public static CodexEntryV2 createAbilitiesCategory()
    • createShipsCategory

      public static CodexEntryV2 createShipsCategory()
    • createStationsCategory

      public static CodexEntryV2 createStationsCategory()
    • populateShipsAndStations

      public static void populateShipsAndStations(CodexEntryPlugin ships, CodexEntryPlugin stations)
    • addModulesForVariant

      public static List<CodexEntryPlugin> addModulesForVariant(ShipVariantAPI variant, boolean isEmptyHull, CodexEntryPlugin entry, CodexEntryPlugin parent)
    • addModuleEntry

      public static CodexEntryPlugin addModuleEntry(CodexEntryPlugin parent, CodexEntryPlugin entryForParentShip, FleetMemberAPI member, boolean isEmptyHull)
    • populateShipSystems

      public static void populateShipSystems(CodexEntryPlugin parent, CodexEntryPlugin ships)
    • populateSkills

      public static void populateSkills(CodexEntryPlugin parent)
    • populateAbilities

      public static void populateAbilities(CodexEntryPlugin parent)
    • getAptitudeName

      public static String getAptitudeName(SkillSpecAPI spec)
    • sortSkillsCategory

      public static void sortSkillsCategory()
    • populateWeapons

      public static void populateWeapons(CodexEntryPlugin parent)
    • populateFighters

      public static void populateFighters(CodexEntryPlugin parent)
    • populateGallery

      public static void populateGallery(CodexEntryPlugin parent)
    • populateSpecialItems

      public static void populateSpecialItems(CodexEntryPlugin parent)
    • populateCommodities

      public static void populateCommodities(CodexEntryPlugin commodities, CodexEntryPlugin items)
    • populateHullMods

      public static void populateHullMods(CodexEntryPlugin parent)
    • populateIndustries

      public static void populateIndustries(CodexEntryPlugin parent)
    • populateStarsAndPlanets

      public static void populateStarsAndPlanets(CodexEntryPlugin parent)
    • populatePlanetaryConditions

      public static void populatePlanetaryConditions(CodexEntryPlugin parent)
    • linkRelatedEntries

      public static void linkRelatedEntries()
    • makeRelated

      public static void makeRelated(CodexEntryPlugin... plugins)
    • makeRelated

      public static void makeRelated(List<CodexEntryPlugin> plugins)
    • makeRelated

      public static void makeRelated(String... ids)
    • makeUnrelated

      public static void makeUnrelated(String... ids)
    • getBaseHullIdEvenIfNotRestorableTo

      public static String getBaseHullIdEvenIfNotRestorableTo(ShipHullSpecAPI spec)
    • getBaseHullId

      public static String getBaseHullId(ShipHullSpecAPI spec)
    • getFleetMemberEntryId

      public static String getFleetMemberEntryId(FleetMemberAPI member)
    • getFleetMemberBaseHullId

      public static String getFleetMemberBaseHullId(FleetMemberAPI member)
    • getShipEntryId

      public static String getShipEntryId(String shipId)
    • getWeaponEntryId

      public static String getWeaponEntryId(String weaponId)
    • getFighterEntryId

      public static String getFighterEntryId(String wingId)
    • getShipSystemEntryId

      public static String getShipSystemEntryId(String shipSystemId)
    • getHullmodEntryId

      public static String getHullmodEntryId(String hullModId)
    • getPlanetEntryId

      public static String getPlanetEntryId(String planetId)
    • getConditionEntryId

      public static String getConditionEntryId(String conditionId)
    • getItemEntryId

      public static String getItemEntryId(String itemId)
    • getIndustryEntryId

      public static String getIndustryEntryId(String industryId)
    • getCommodityEntryId

      public static String getCommodityEntryId(String commodityId)
    • getFactionEntryId

      public static String getFactionEntryId(String factionId)
    • getMechanicEntryId

      public static String getMechanicEntryId(String mechanicId)
    • getGalleryEntryId

      public static String getGalleryEntryId(String galleryId)
    • getSkillEntryId

      public static String getSkillEntryId(String skillId)
    • getAbilityEntryId

      public static String getAbilityEntryId(String abilityId)
    • getIcon

      public static String getIcon(String key)
    • getEntry

      public static CodexEntryPlugin getEntry(String id)
    • rebuildIdToEntryMap

      public static void rebuildIdToEntryMap()
    • rebuildIdToEntryMap

      public static void rebuildIdToEntryMap(CodexEntryPlugin curr)
    • codexFullyUnlocked

      public static boolean codexFullyUnlocked()
    • createTempFleetMemberEntry

      public static List<CodexEntryPlugin> createTempFleetMemberEntry(FleetMemberAPI member)
      Returns a list because it could be a station or a ship with modules.
      Parameters:
      member -
      Returns:
    • linkFleetMemberEntryToRelated

      public static void linkFleetMemberEntryToRelated(CodexEntryPlugin entry, FleetMemberAPI member, boolean linkCaptainSkills)
      This method assumes the entry is a specific fleet member with a loadout, and NOT an empty hull. Meaning, this entry was added on the fly such as e.g. from a tooltip of a fleet member. The linking for empty hull entries is done in the linkRelatedEntries() method.
      Parameters:
      entry -
      member -
      parentOfModuleEntry -
      parentOfModule -
    • hasUnlockedEntry

      public static boolean hasUnlockedEntry(String entryId)
    • hasUnlockedEntryForShip

      public static boolean hasUnlockedEntryForShip(String hullId)
    • unlinkAndRemoveTempEntry

      public static void unlinkAndRemoveTempEntry(CodexEntryPlugin entry)