Starsector API
Loading...
Searching...
No Matches
MutableCommodityQuantity.java
Go to the documentation of this file.
1
4package com.fs.starfarer.api.campaign.econ;
5
6import com.fs.starfarer.api.Global;
7import com.fs.starfarer.api.combat.MutableStat;
8
10 private String commodityId;
11 private MutableStat quantity = new MutableStat(0);
12
13 public MutableCommodityQuantity(String commodityId) {
14 this.commodityId = commodityId;
15 }
16
18 return Global.getSettings().getCommoditySpec(commodityId);
19 }
20
21 public String getCommodityId() {
22 return commodityId;
23 }
24
25 public MutableStat getQuantity() {
26 return quantity;
27 }
28}
static SettingsAPI getSettings()
Definition Global.java:51
CommoditySpecAPI getCommoditySpec(String commodityId)