Class ModuleTexts
java.lang.Object
com.ultikits.ultitools.text.internal.ModuleTexts
Plain, server-fallback text for framework callers that accept a module message path or a literal.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionModuleTexts(TextEngine engine, TextEngine.Prepared prepared) Binds to a module without publishing its prepared catalogue. -
Method Summary
Modifier and TypeMethodDescriptionprivate static booleanRenders a defined path as plain text, or returns empty for literals, missing entries or rendering failures.shippedTemplates(String name) Returns distinct plain texts in language-tag order from the module's bundled catalogues only.
-
Field Details
-
PATH
-
TEMPLATES
private static final net.kyori.adventure.text.minimessage.MiniMessage TEMPLATES -
SHIPPED
-
engine
-
prepared
-
-
Constructor Details
-
ModuleTexts
Binds to a module without publishing its prepared catalogue.
-
-
Method Details
-
resolve
Renders a defined path as plain text, or returns empty for literals, missing entries or rendering failures. The effective catalogue includes operator overrides. During construction only the prepared snapshot is available.- Parameters:
name- the message path or literal- Returns:
- the rendered text if a template is found in the server fallback or module source locale chain
-
shippedTemplates
-
isPath
-
plain
-