Enum Class ItemTooltip.Mode

java.lang.Object
java.lang.Enum<ItemTooltip.Mode>
net.risingworld.api.ui.ItemTooltip.Mode
All Implemented Interfaces:
Serializable, Comparable<ItemTooltip.Mode>, Constable
Enclosing class:
ItemTooltip

public static enum ItemTooltip.Mode extends Enum<ItemTooltip.Mode>
Determines how the text of a section is combined with the original (vanilla) text
  • Enum Constant Details

    • Keep

      public static final ItemTooltip.Mode Keep
      Keep the original text
    • Replace

      public static final ItemTooltip.Mode Replace
      Replace the original text
    • Prepend

      public static final ItemTooltip.Mode Prepend
      Put the text in front of the original text
    • Append

      public static final ItemTooltip.Mode Append
      Put the text after the original text
    • Hide

      public static final ItemTooltip.Mode Hide
      Hide the section completely
  • Method Details

    • values

      public static ItemTooltip.Mode[] 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 ItemTooltip.Mode 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