Enum Class NPC.Color

java.lang.Object
java.lang.Enum<NPC.Color>
dev.sergiferry.playernpc.api.NPC.Color
All Implemented Interfaces:
Serializable, Comparable<NPC.Color>, Constable
Enclosing class:
NPC

public static enum NPC.Color extends Enum<NPC.Color>
Since:
2022.2
  • Enum Constant Details

    • BLACK

      public static final NPC.Color BLACK
    • DARK_BLUE

      public static final NPC.Color DARK_BLUE
    • DARK_GREEN

      public static final NPC.Color DARK_GREEN
    • DARK_AQUA

      public static final NPC.Color DARK_AQUA
    • DARK_RED

      public static final NPC.Color DARK_RED
    • DARK_PURPLE

      public static final NPC.Color DARK_PURPLE
    • GOLD

      public static final NPC.Color GOLD
    • GRAY

      public static final NPC.Color GRAY
    • DARK_GRAY

      public static final NPC.Color DARK_GRAY
    • BLUE

      public static final NPC.Color BLUE
    • GREEN

      public static final NPC.Color GREEN
    • AQUA

      public static final NPC.Color AQUA
    • RED

      public static final NPC.Color RED
    • LIGHT_PURPLE

      public static final NPC.Color LIGHT_PURPLE
    • YELLOW

      public static final NPC.Color YELLOW
    • WHITE

      public static final NPC.Color WHITE
  • Method Details

    • values

      public static NPC.Color[] 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 NPC.Color 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
    • getChatColor

      public org.bukkit.ChatColor getChatColor()
    • getColor

      public static NPC.Color getColor(org.bukkit.ChatColor chatColor)