-
Notifications
You must be signed in to change notification settings - Fork 1
Color stuff
Labyrinth has the ability to create gradient colors. This in the scheme of things means that we also fully support hexadecimal. Note that hex utility will only work in versions marked new such as (1.16, 1.17+)
You can find a small amount of native colors from the common module of laby.
DefaultColor.MANGO
DefaultColor.VELVET
DefaultColor.GALAXY
DefaultColor.RANDOM
Each of these objects represents that of a GradientColor object. An object designed specifically for color creation using hexadecimal formats.
So we have our colors now cool, but how do we use them? Its as easy as providing context and translating.
String context = "Hello jim.";
String wrapped = DefaultColor.GALAXY.context(context).translate();
Our text is now wrapped in our color selection.
Every GradientColor is an inherent sub type of CustomColor. You have easy access to the creation of custom colors through the constructor of a GradientColor or the StringUtils class
String colored = StringUtils.use("Hello Jim.").gradient("HEX1", "HEX2").translate();
-
- AFK Player Utility
- Command Builder
- Command Utility
- Complete GUI Builder
- Complete Head Database/Locator
- Cooldown Abstraction
- Custom Gradient Color Interface
- Custom ID Generation
- Directional Enumeration
- Economy Interface Wrapper
- Entity Creation Tools
- File Management
- Item Recipe Builder
- Item Modification Builder
- Legacy Safe NamespacedKey
- Listing Collections
- Material Matcher
- Message Formatter
- String Utility
- Tab Completion Builder
- Task Scheduling
- Template Creation
- TextComponent Builder
- Vault Permission Interface Wrapper