Skip to content

Commit 4b1a30c

Browse files
authored
Adds an ARGB method to the Color API (SkriptLang#8120)
* Adds an ARGB method to color api * Update src/main/java/ch/njol/skript/util/Color.java
1 parent f2ab36d commit 4b1a30c

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/main/java/ch/njol/skript/util/Color.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,11 @@ public interface Color extends YggdrasilExtendedSerializable {
4444
*/
4545
String getName();
4646

47+
/**
48+
* @return the color as an ARGB integer.
49+
*/
50+
default int asARGB() {
51+
return asBukkitColor().asARGB();
52+
}
53+
4754
}

0 commit comments

Comments
 (0)