Class Placeholder
java.lang.Object
tfagaming.projects.minecraft.homestead.tools.java.Placeholder
Class holder for creating placeholders for a string.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Placeholder
public Placeholder()
-
-
Method Details
-
add
Add a replacement string to the list of placeholders.
Example usage:Placeholder plcd = new Placeholder(); plcd.add("{message}", "Hello World!"); plcd.add("{count}", 48); plcd.add("{current-state}", true); -
build
Convert the placeholder class to aMap<String, String>. If a placeholder value isnull, it will replace it with"NULL"instead.
-