public class CommandUtils
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
bestMatch() |
static com.fs.starfarer.api.campaign.FactionAPI |
findBestFactionMatch() |
static com.fs.starfarer.api.loading.IndustrySpecAPI |
findBestIndustryMatch() |
static com.fs.starfarer.api.campaign.LocationAPI |
findBestLocationMatch() |
static com.fs.starfarer.api.characters.MarketConditionSpecAPI |
findBestMarketConditionMatch() |
static com.fs.starfarer.api.campaign.econ.MarketAPI |
findBestMarketMatch() |
static com.fs.starfarer.api.characters.OfficerDataAPI |
findBestOfficerMatch() |
static java.lang.String |
findBestStringMatch() |
static java.util.Map.Entry<java.lang.String,java.util.Collection> |
findBestStringMatch() |
static java.util.Map.Entry<java.lang.String,java.lang.Double> |
findBestStringMatchWithSimularity() |
static com.fs.starfarer.api.campaign.StarSystemAPI |
findBestSystemMatch() |
static com.fs.starfarer.api.campaign.SectorEntityToken |
findBestTokenMatch() |
static com.fs.starfarer.api.campaign.SectorEntityToken |
findTokenInLocation() |
static java.lang.String |
format() |
static java.lang.String |
format() |
static java.util.List<com.fs.starfarer.api.campaign.SectorEntityToken> |
getEntitiesWithTags() |
static java.lang.String |
getFactionName() |
static com.fs.starfarer.api.campaign.CargoAPI |
getUsableCargo() |
static java.lang.String |
indent()
Indents and word-wraps a String to fit within the console's overlay.
|
static java.lang.String |
indent()
Indents and word-wraps a String to fit within the console's overlay.
|
static boolean |
isDouble() |
static boolean |
isFloat() |
static boolean |
isInteger() |
static boolean |
isLong() |
public static java.lang.String findBestStringMatch()
public static java.util.Map.Entry<java.lang.String,java.util.Collection> findBestStringMatch()
id
(or null if no match was found), and whose value contains the Collection the match came from, if one was found.public static java.util.Map.Entry<java.lang.String,java.lang.Double> findBestStringMatchWithSimularity()
public static java.lang.String bestMatch()
public static boolean isInteger()
public static boolean isLong()
public static boolean isFloat()
public static boolean isDouble()
public static java.lang.String format()
public static java.lang.String format()
public static java.lang.String indent()
Indents and word-wraps a String to fit within the console's overlay.
message
, indented and word-wrapped to fit within the console overlay.public static java.lang.String indent()
Indents and word-wraps a String to fit within the console's overlay.
message
, indented and word-wrapped to fit within the console overlay.public static com.fs.starfarer.api.campaign.FactionAPI findBestFactionMatch()
public static com.fs.starfarer.api.campaign.econ.MarketAPI findBestMarketMatch()
public static com.fs.starfarer.api.characters.MarketConditionSpecAPI findBestMarketConditionMatch()
public static com.fs.starfarer.api.loading.IndustrySpecAPI findBestIndustryMatch()
public static com.fs.starfarer.api.campaign.LocationAPI findBestLocationMatch()
public static com.fs.starfarer.api.campaign.StarSystemAPI findBestSystemMatch()
public static com.fs.starfarer.api.campaign.SectorEntityToken findBestTokenMatch()
public static com.fs.starfarer.api.characters.OfficerDataAPI findBestOfficerMatch()
public static java.util.List<com.fs.starfarer.api.campaign.SectorEntityToken> getEntitiesWithTags()
public static com.fs.starfarer.api.campaign.SectorEntityToken findTokenInLocation()
public static java.lang.String getFactionName()
public static com.fs.starfarer.api.campaign.CargoAPI getUsableCargo()