MatrixColorAPI 图标

MatrixColorAPI

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 1.0.7
本资源为搬运资源,原资源地址: https://modrinth.com/mod/matrixcolorapi
资源信息

Minecraft 版本: 1.16.5 1.17 1.17.1 1.18 1.18.1 1.18.2 1.19 1.19.1 1.19.2 1.19.3 1.19.4 1.20 1.20.1 1.20.2 1.20.3 1.20.4 1.20.5 1.20.6 1.21 1.21.1

平台: bukkit bungeecord folia paper purpur spigot velocity waterfall

标签: decoration library utility

资源介绍

? MatrixColorAPI

MatrixColorAPI is a powerful and flexible library for processing and applying custom colors, gradients, and text decorations in Minecraft servers. It supports hex colors, legacy Minecraft color codes, and more advanced formatting like gradients and solid colors.

This library simplifies color management while allowing developers to build beautifully formatted text with ease!

Thumbnail

✨ Features

  • ? Hex and Legacy Color Code Support
  • ? Gradients: Apply smooth color transitions across text.
  • ? Solid Colors: Easily apply static colors to any text.
  • ?️ Text Decorations: Support for bold, italic, underlined, strikethrough, and obfuscated text styles.
  • ? Lightweight: Minimal impact on performance.
  • ? Easy to Use: Clean and simple API to integrate into your project.
  • ? Supports All Server Software: Compatible with Spigot, Paper, Bukkit, Minestom, Fabric, and more.
  • ?️ Works with Every Minecraft Version Starting from 1.16.5.
  • ?️ Open to Contributions: Licensed under Apache 2.0 License for open contributions, modifications, and commercial use!

? Getting Started

While MatrixColorAPI is designed to work with all Minecraft server software, it has currently been extensively tested only on Bukkit platforms. We encourage users on other platforms to try it out and report any issues they encounter. Your feedback is crucial in making MatrixColorAPI universally compatible!

Installation

API Version

MatrixColorAPI is hosted on Jitpack, making it easy to integrate with your Maven or Gradle projects. Follow the steps below to add it to your project:

Using Gradle

  1. Add the Jitpack repository to your build.gradle file (inside repositories block):

    repositories {
        maven { url 'https://jitpack.io' }
    }
  2. Add the dependency in your dependencies block:

    dependencies {
        implementation 'com.github.MatrixCreations:MatrixColorAPI:v1.0.7'
    }

Using Maven

  1. Add the Jitpack repository to your pom.xml:

     <repository>
         <id>jitpack.io</id>
         <url>https://jitpack.io</url>
     </repository>
  2. Add the dependency in your dependencies block:

    <dependency>
        <groupId>com.github.MatrixCreations</groupId>
        <artifactId>MatrixColorAPI</artifactId>
        <version>v1.0.7</version>
    </dependency>

Additional Information

  • For the latest version, please scroll up to know the latest api version.
  • Ensure you're using Java 16 or higher to avoid compatibility issues.

Example Usages

  • Solid Color Example:

Solid Color Example

String text = "<SOLID:#FFD700>This is yellow text";
String processed = MatrixColorAPI.process(text);
  • Gradient Example:

Gradient Color Example

String gradientText = "<GRADIENT:#FF0000>This is a red to yellow gradient</GRADIENT:#FFFF00>";
String processedGradient = MatrixColorAPI.process(gradientText);
  • Legacy Code Support:

Legacy Color Example

String legacyText = "&aThis is a green text with &lBOLD";
String processedLegacy = MatrixColorAPI.process(legacyText);
  • Hex Code Support:

Hex Color Example

String hexText = "&#FFD700This is a yellow text with &lBOLD";
String processedLegacy = MatrixColorAPI.process(hexText);

?️ Available Methods

  • process(String text): Process a single string for color codes, gradients, and formatting.
  • process(List<String> texts): Process a list of strings for color codes and formatting.

? Contributing

We welcome contributions! To get started:

  1. Fork the repository.
  2. Create a new branch for your feature or bugfix.
  3. Submit a pull request with a clear explanation of your changes.

Make sure to follow the coding standards and include tests where appropriate.

? License

This project is licensed under the Apache 2.0 License. See the LICENSE file for details.

? Acknowledgments

Thanks to everyone contributing to this project! Your support and feedback help make MatrixColorAPI even better.

? Contact

For any questions or feedback, feel free to open an issue or reach out to us on our discord server.

下载太慢?试试 墨喵加速站,支持 Modrinth 和外网直链高速下载! 用的人越多,下载的越快!
下载与版本
评论(0)
登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

🔥 相关推荐
Cyborg Robot Chicken: Returns

价格:0 墨喵币
下载量:0

查看详情
Justy - just for players!

价格:0 墨喵币
下载量:0

查看详情
Craftable bundle

价格:0 墨喵币
下载量:0

查看详情
Chat Toggle

价格:0 墨喵币
下载量:0

查看详情