Package ch.njol.skript.util
Interface Color
- All Superinterfaces:
YggdrasilSerializable
,YggdrasilSerializable.YggdrasilExtendedSerializable
- All Known Implementing Classes:
ColorRGB
,SkriptColor
-
Nested Class Summary
Nested classes/interfaces inherited from interface ch.njol.yggdrasil.YggdrasilSerializable
YggdrasilSerializable.YggdrasilExtendedSerializable, YggdrasilSerializable.YggdrasilRobustEnum, YggdrasilSerializable.YggdrasilRobustSerializable
-
Method Summary
Methods inherited from interface ch.njol.yggdrasil.YggdrasilSerializable.YggdrasilExtendedSerializable
deserialize, serialize
-
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.
-