Interface Color

All Superinterfaces:
YggdrasilSerializable, YggdrasilSerializable.YggdrasilExtendedSerializable
All Known Implementing Classes:
ColorRGB, SkriptColor

  • Method Details

    • asBukkitColor

      org.bukkit.Color asBukkitColor()
      Gets Bukkit color representing this color.
      Returns:
      Bukkit color.
    • getAlpha

      int getAlpha()
      Returns:
      The alpha component of this color.
    • getRed

      int getRed()
      Returns:
      The red component of this color.
    • getGreen

      int getGreen()
      Returns:
      The green component of this color.
    • getBlue

      int getBlue()
      Returns:
      The blue component of this color.
    • asDyeColor

      @Nullable @Nullable org.bukkit.DyeColor asDyeColor()
      Gets Bukkit dye color representing this color, if one exists.
      Returns:
      Dye color or null.
    • getName

      String getName()
      Returns:
      Name of the color.