Enum Class ProductionQuantity

java.lang.Object
java.lang.Enum<ProductionQuantity>
net.storm.api.widgets.ProductionQuantity
All Implemented Interfaces:
Serializable, Comparable<ProductionQuantity>, Constable

public enum ProductionQuantity extends Enum<ProductionQuantity>
Enumeration of quantity options available in production interfaces.

Production interfaces (such as those for crafting, smithing, cooking, etc.) provide several preset quantity options that determine how many items to produce. This enum represents these options and provides methods to interact with them.

See Also:
  • Enum Constant Details

  • Method Details

    • values

      public static ProductionQuantity[] 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 ProductionQuantity 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
    • isVisible

      public boolean isVisible()
      Checks if this quantity option is currently visible in the production interface.
      Returns:
      true if the quantity option is visible, false otherwise
    • select

      public boolean select()
      Selects this quantity option by clicking on it.
      Returns:
      true if the option was successfully selected, false if not visible
    • isSelected

      public boolean isSelected()
      Checks if this quantity option is currently selected (highlighted) in the interface.
      Returns:
      true if this option is selected, false otherwise