Package com.fs.starfarer.api.campaign
Interface SpecialItemPlugin
- All Known Implementing Classes:
BaseSpecialItemPlugin
,FighterBlueprintItemPlugin
,GenericSpecialItemPlugin
,IndustryBlueprintItemPlugin
,JanusDevicePlugin
,ModSpecItemPlugin
,MultiBlueprintItemPlugin
,ShipBlueprintItemPlugin
,ShroudedHullmodItemPlugin
,ShroudedSubstratePlugin
,WeaponBlueprintItemPlugin
,WormholeAnchorPlugin
,WormholeScannerPlugin
public interface SpecialItemPlugin
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
static interface
-
Method Summary
Modifier and TypeMethodDescriptionvoid
createTooltip
(TooltipMakerAPI tooltip, boolean expanded, CargoTransferHandlerAPI transferHandler, Object stackSource) getName()
int
getPrice
(MarketAPI market, SubmarketAPI submarket) getSpec()
float
boolean
void
init
(CargoStackAPI stack) boolean
void
void
void
render
(float x, float y, float w, float h, float alphaMult, float glowMult, SpecialItemPlugin.SpecialItemRendererAPI renderer) resolveDropParamsToSpecificItemData
(String params, Random random) Return null to have this item turn into nothing, or an empty string if it has no parameters.void
Called before init().boolean
-
Method Details
-
setId
Called before init(). init() may not be called if there's no stack.- Parameters:
id
-
-
init
-
getName
String getName() -
getPrice
-
hasRightClickAction
boolean hasRightClickAction() -
performRightClickAction
void performRightClickAction() -
performRightClickAction
-
shouldRemoveOnRightClickAction
boolean shouldRemoveOnRightClickAction() -
isTooltipExpandable
boolean isTooltipExpandable() -
getTooltipWidth
float getTooltipWidth() -
createTooltip
void createTooltip(TooltipMakerAPI tooltip, boolean expanded, CargoTransferHandlerAPI transferHandler, Object stackSource) -
render
void render(float x, float y, float w, float h, float alphaMult, float glowMult, SpecialItemPlugin.SpecialItemRendererAPI renderer) -
resolveDropParamsToSpecificItemData
String resolveDropParamsToSpecificItemData(String params, Random random) throws org.json.JSONException Return null to have this item turn into nothing, or an empty string if it has no parameters.- Parameters:
params
-- Returns:
- Throws:
org.json.JSONException
-
getDesignType
String getDesignType() -
getSpec
SpecialItemSpecAPI getSpec()
-