Package com.kamikazejam.kamicommon.util
package com.kamikazejam.kamicommon.util
-
ClassDescriptionUtility for mapping
Stringobjects intoVersionedComponentobjects, handling both legacy color codes and modern MiniMessage format.
The format of a line is decided byColoredStringParser.detectFormat(String), which tests, in order: legacy section, legacy ampersand, MiniMessage, then plain text.A simple class for sending discord webhooks, supports basic embeds and suchStand-ins forStringmethods added after Java 8.Legacy methods related toChatColorand legacy color codes.A legacy color-code translator for Minecraft-style formatting codes.
Translates the alternate code character&into the legacy section sign (§) and optionally expands 1.16+ hex color codes of the form&#RRGGBBinto the §x§R§R§G§G§B§B sequence used by legacy clients.
Notes:
- This API is marked@Obsolete.A utility class for sending building messages built from a config.Utility class for helping with players You can give items (which drop near them if they are full), and clean their inventory (with or without armor)Some basic preconditions for when the Google preconditions are not available on the classpathA utility class for soft PlaceholderAPI integration
This class will utilize PlaceholderAPI if it is present on the server, safely ignoring replacements if it is not.Utility methods for working with text strings.Static helpers for rendering a duration and for resolving a wall-clock time to aDate.Static text helpers used throughout the command framework: joining collections, splitting camel case, prefix filtering for tab completion, turning enum constants into display names, and building the centred "titleized" lines that head command output.