public class CargoUtils
extends Object
Modifier and Type | Method and Description |
---|---|
static float |
getSpaceTakenByCargo(CargoAPI cargo)
Returns the amount of space taken by all cargo types in a
CargoAPI . |
static float |
getSpaceTakenByCrew(CargoAPI cargo)
Returns the amount of space taken by crew in a
CargoAPI . |
static float |
getSpaceTakenByFuel(CargoAPI cargo)
Returns the amount of space taken by fuel in a
CargoAPI . |
static float |
getSpaceTakenByResources(CargoAPI cargo)
Returns the amount of space taken by all resources in a
CargoAPI . |
static float |
getSpaceTakenBySupplies(CargoAPI cargo)
Returns the amount of space taken by supplies in a
CargoAPI . |
static float |
getSpaceTakenByWeapons(CargoAPI cargo)
Returns the amount of space taken by weapons in a
CargoAPI . |
static void |
moveCargo(CargoAPI from,
CargoAPI to)
Moves all
CargoStackAPI s from one CargoAPI to another. |
static void |
moveMothballedShips(CargoAPI from,
CargoAPI to)
Moves all mothballed
FleetMemberAPI s from one CargoAPI to
another. |
static void |
moveStack(CargoStackAPI stack,
CargoAPI to)
Moves an entire
CargoStackAPI from its current location to
another CargoAPI . |
static void |
moveStack(CargoStackAPI stack,
SectorEntityToken to)
Moves an entire
CargoStackAPI from its current location to the
CargoAPI of another SectorEntityToken . |
public static void moveStack(CargoStackAPI stack, CargoAPI to)
CargoStackAPI
from its current location to
another CargoAPI
.stack
- The CargoStackAPI
to be moved.to
- The destination CargoAPI
.
public static void moveStack(CargoStackAPI stack, SectorEntityToken to)
CargoStackAPI
from its current location to the
CargoAPI
of another SectorEntityToken
.stack
- The CargoStackAPI
to be moved.to
- The destination SectorEntityToken
.
public static void moveMothballedShips(CargoAPI from, CargoAPI to)
FleetMemberAPI
s from one CargoAPI
to
another.
from
- The CargoAPI
to be emptied.to
- The destination CargoAPI
.
public static void moveCargo(CargoAPI from, CargoAPI to)
CargoStackAPI
s from one CargoAPI
to another.from
- The CargoAPI
to be emptied.to
- The destination CargoAPI
.
moveStack(com.fs.starfarer.api.campaign.CargoStackAPI,
com.fs.starfarer.api.campaign.CargoAPI)
public static float getSpaceTakenByWeapons(CargoAPI cargo)
CargoAPI
.cargo
- The CargoAPI
to analyze.
cargo
.
public static float getSpaceTakenByCrew(CargoAPI cargo)
CargoAPI
.cargo
- The CargoAPI
to analyze.
cargo
.
public static float getSpaceTakenBySupplies(CargoAPI cargo)
CargoAPI
.cargo
- The CargoAPI
to analyze.
cargo
.
public static float getSpaceTakenByFuel(CargoAPI cargo)
CargoAPI
.cargo
- The CargoAPI
to analyze.
cargo
.
public static float getSpaceTakenByResources(CargoAPI cargo)
CargoAPI
.cargo
- The CargoAPI
to analyze.
cargo
.
public static float getSpaceTakenByCargo(CargoAPI cargo)
CargoAPI
.cargo
- The CargoAPI
to analyze.
cargo
.