Enum Class CalculationStrategy

java.lang.Object
java.lang.Enum<CalculationStrategy>
appeng.api.networking.crafting.CalculationStrategy
All Implemented Interfaces:
Serializable, Comparable<CalculationStrategy>, Constable

public enum CalculationStrategy extends Enum<CalculationStrategy>
  • Enum Constant Details

    • REPORT_MISSING_ITEMS

      public static final CalculationStrategy REPORT_MISSING_ITEMS
      If the exact requested amount cannot be crafted, create a ICraftingPlan containing the missing items.
    • CRAFT_LESS

      public static final CalculationStrategy CRAFT_LESS
      Try to craft less items than requested. Will try to craft as many items as possible. If even 1 cannot be crafted, fall back to REPORT_MISSING_ITEMS.
  • Method Details

    • values

      public static CalculationStrategy[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static CalculationStrategy valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null