toggle menu
levelledmobs-plugin
4.0.3.1
jvm
switch theme
search in API
levelledmobs-plugin
/
io.github.arcaneplugins.levelledmobs.misc
/
StringReplacer
String
Replacer
class
StringReplacer
(
var
text
:
String
)
Holds a string and provides methods to run various string replacement operations
Author
stumper66
Since
3.13.2
Members
Constructors
String
Replacer
Link copied to clipboard
constructor
(
text
:
String
)
Properties
is
Empty
Link copied to clipboard
val
isEmpty
:
Boolean
text
Link copied to clipboard
var
text
:
String
Functions
contains
Link copied to clipboard
fun
contains
(
s
:
CharSequence
)
:
Boolean
replace
Link copied to clipboard
fun
replace
(
replace
:
String
,
replaceWith
:
Double
)
fun
replace
(
replace
:
String
,
replaceWith
:
Int
)
fun
replace
(
replace
:
String
,
replaceWith
:
String
?
)
:
StringReplacer
replace
If
Exists
Link copied to clipboard
fun
replaceIfExists
(
target
:
String
,
operation
:
Supplier
<
String
?
>
?
)
to
String
Link copied to clipboard
open
override
fun
toString
(
)
:
String