Enum Class AmountFormat

java.lang.Object
java.lang.Enum<AmountFormat>
appeng.api.stacks.AmountFormat
All Implemented Interfaces:
Serializable, Comparable<AmountFormat>, Constable

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

    • FULL

      public static final AmountFormat FULL
      Display the full amount.
    • SLOT

      public static final AmountFormat SLOT
      Display the summary with the regular font, for example "1.23K" instead of 1234. This should fit in a slot.
    • SLOT_LARGE_FONT

      public static final AmountFormat SLOT_LARGE_FONT
      Display the summary with a large font, for example "1.2K" instead of 1234. This should also fit in a slot. Should be shorter than SLOT as the font is larger.
  • Method Details

    • values

      public static AmountFormat[] 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 AmountFormat 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