-
-
Notifications
You must be signed in to change notification settings - Fork 416
Adds an ARGB method to the Color API #8120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adds an ARGB method to the Color API #8120
Conversation
EquipableMC
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where is the check regarding if ARGB is even supported? Not all versions have this, and this will throw a NoClassDefFoundError exception.
It's existed before Skript's supported MC version 1.19.4 |
Co-authored-by: Efnilite <35348263+Efnilite@users.noreply.github.com>
* Adds an ARGB method to color api * Update src/main/java/ch/njol/skript/util/Color.java
* Adds an ARGB method to color api * Update src/main/java/ch/njol/skript/util/Color.java
Problem
Minecraft internally in NMS uses ARGB frequently. Skript base Color class doesn't have a quick method for getting the ARGB of a color without being a SkriptColor
Solution
Adds a method to allow overriding ARGB in your custom implementation Color class.
Completes: none
Related: none