
TextAPI
TextAPI is a Kotlin-native Spigot text engine with a MiniMessage-like syntax, built-in placeholders, gradients, rainbow, 16 pride presets, click/hover/insert events, and a custom TPS ticker. All fully extensible at runtime via a clean handler-based API.
Links
Tags
Creators
Details
1.0.3
Compatibility
Changes
[1.0.3] - Runtime Tag Foundations
Added
- Runtime tag registration support through
TextTag.register(tag, handler) - Runtime tag unregistration support through
TextTag.unregister(tag) TextTag.TagHandlerfunctional interface for custom tag behaviorTextTag.registeredTags()to inspect all registered runtime tags- Public API exposure in
TextServiceandTextAPIfor tag registration/unregistration TextServiceImpldelegation for runtime tag APIs- Parser support for treating registered tag names as tag tokens instead of placeholders
- Command-side support groundwork for custom tag debugging and tab completion
Changed
TextParser.isKnownTag()now recognizes registered tags throughTextTag.isRegistered()TextRenderernow resolves custom runtime tags instead of passing them through as raw text- Tag registration moved from being a simple presence flag to a handled registry model
- Existing built-in styling system kept intact while becoming extensible for external custom tags
Fixed
- Runtime-registered tags now parse as tags instead of being misclassified as placeholders
- Custom tags can now be closed correctly using normal closing syntax
- Style inheritance continues to work correctly when runtime tags are nested with built-in tags
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle. To learn more about the Modrinth Maven API, click here.
Note: When available, you should use the creator's maven repo instead as it will have transitive dependency information that the Modrinth Maven API does not. You may also end up with duplicate dependencies if you use a mix of Modrinth and non-Modrinth Maven repositories for your dependencies, because the group identifier will be different when served through the Modrinth Maven API.
Maven coordinates:
Version ID:
build.gradle:
repositories {
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
// forRepositories(fg.repository) // Uncomment when using ForgeGradle
filter {
includeGroup "maven.modrinth"
}
}
}
// Standard Gradle dependency
dependencies {
implementation "maven.modrinth:NvPsOCVp:vcZROUOq"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:NvPsOCVp:vcZROUOq"
}
