Package dev.demeng.pluginbase.model
Class Placeholders
java.lang.Object
dev.demeng.pluginbase.model.Placeholders
- All Implemented Interfaces:
DynamicPlaceholders
A shorthand version of
DynamicPlaceholders, allowing for string placeholders to be easily
applied on strings, lists, and item stacks.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull StringsetPlaceholders(@NotNull String str) Sets the placeholders in the string.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.demeng.pluginbase.DynamicPlaceholders
replace, replace, replace, toFunction, toOperator
-
Constructor Details
-
Placeholders
public Placeholders()
-
-
Method Details
-
setPlaceholders
Description copied from interface:DynamicPlaceholdersSets the placeholders in the string.- Specified by:
setPlaceholdersin interfaceDynamicPlaceholders- Parameters:
str- The string to replace- Returns:
- The replaced string
-