Interface ResourceCostPanelAPI


public interface ResourceCostPanelAPI
  • Method Details

    • isNumberOnlyMode

      boolean isNumberOnlyMode()
    • setNumberOnlyMode

      void setNumberOnlyMode(boolean numberOnlyMode)
    • isWithBorder

      boolean isWithBorder()
    • setWithBorder

      void setWithBorder(boolean withBorder)
    • isEnabled

      boolean isEnabled()
    • setEnabled

      void setEnabled(boolean enabled)
    • showResources

      void showResources(CargoAPI cargo, Color color, List<String> commodities, ResourceCostPanelAPI.ResourceColorGetter colorGetter)
    • addCost

      void addCost(String commodityId, int quantity, Color color)
    • addOrUpdateCost

      void addOrUpdateCost(String commodityId, int quantity, Color color)
    • flashCost

      void flashCost(String commodityId)
    • update

      void update()
    • getAlignment

      Alignment getAlignment()
    • setAlignment

      void setAlignment(Alignment alignment)
      Only MID, LMID, and RMID are supported.
      Parameters:
      alignment -
    • setSecondTitle

      void setSecondTitle(String secondTitle)
    • setSecondTitleColor

      void setSecondTitleColor(Color secondTitleColor)
    • addOrUpdateCost

      void addOrUpdateCost(String commodityId, int quantity)
    • addCost

      void addCost(String commodityId, int quantity)
    • setComWidthOverride

      void setComWidthOverride(float comWidthOverride)
    • addCost

      void addCost(String commodityId, String text)
    • addCost

      void addCost(String commodityId, String text, Color color)
    • setLastCostConsumed

      void setLastCostConsumed(boolean consumed)