Interface IUpgradeAcceptor


@Deprecated(forRemoval=true) public interface IUpgradeAcceptor
Deprecated, for removal: This API element is subject to removal in a future version.
no longer required; superceded by functionality in IUpgradeRegistry
Indicates that the implementor can accept PneumaticCraft upgrades. Could be implemented by anything; implementations should be registered through IItemRegistry.registerUpgradeAcceptor(IUpgradeAcceptor)
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
    This method is called as soon as an instance of this interface is registered, be aware.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Get a translation key for this upgrade acceptor.
  • Method Details

    • getApplicableUpgrades

      Map<PNCUpgrade,Integer> getApplicableUpgrades()
      Deprecated, for removal: This API element is subject to removal in a future version.
      This method is called as soon as an instance of this interface is registered, be aware. It should return a map which maps the collection of accepted upgrades for this machine/item to the maximum number of each upgrade which can be inserted.
      Returns:
      a map of the accepted upgrades and their maximum count
    • getUpgradeAcceptorTranslationKey

      String getUpgradeAcceptorTranslationKey()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Get a translation key for this upgrade acceptor. This is used to display the acceptor in relevant upgrades' tooltip texts.
      Returns:
      a translation key