Enum Style.Merge

java.lang.Object
java.lang.Enum<Style.Merge>
net.kyori.adventure.text.format.Style.Merge
All Implemented Interfaces:
Serializable, Comparable<Style.Merge>
Enclosing interface:
Style

public static enum Style.Merge
extends Enum<Style.Merge>
A merge choice.
Since:
4.0.0
  • Enum Constant Details

  • Method Details

    • values

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

      public static Style.Merge valueOf​(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null
    • all

      public static @Unmodifiable @NonNull Set<Style.Merge> all()
      Gets a merge set of all merge types.
      Returns:
      a merge set
      Since:
      4.0.0
    • colorAndDecorations

      public static @Unmodifiable @NonNull Set<Style.Merge> colorAndDecorations()
      Gets a merge set containing COLOR and DECORATIONS.
      Returns:
      a merge set
      Since:
      4.0.0
    • of

      public static @Unmodifiable @NonNull Set<Style.Merge> of​(Style.Merge @NonNull ... merges)
      Creates a merge set.
      Parameters:
      merges - the merge parts
      Returns:
      a merge set
      Since:
      4.0.0