Package dev.twilite.game.common
Class Text
java.lang.Object
dev.twilite.game.common.Text
Text normalization helpers for game strings.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanReturnstruewhen the value isnull, empty, or only whitespace.static StringremoveTags(String str) Removes game markup tags such as color tags.static Stringstandardise(String str) Removes tags, replaces non-breaking spaces, trims, and lowercases text for comparisons.
-
Constructor Details
-
Text
public Text()
-
-
Method Details
-
blank
Returnstruewhen the value isnull, empty, or only whitespace. -
removeTags
Removes game markup tags such as color tags. -
standardise
Removes tags, replaces non-breaking spaces, trims, and lowercases text for comparisons.
-