public final class StringReplacerApplier extends Object
| Modifier and Type | Field and Description |
|---|---|
static me.hsgamer.hscore.common.interfaces.StringReplacer |
COLORIZE
A replacer to colorize the string
|
| Modifier and Type | Method and Description |
|---|---|
static me.hsgamer.hscore.bukkit.item.ItemBuilder |
apply(me.hsgamer.hscore.bukkit.item.ItemBuilder itemBuilder,
boolean useGlobalVariableManager)
Apply the string replacers to the item builder
|
static me.hsgamer.hscore.bukkit.item.ItemBuilder |
apply(me.hsgamer.hscore.bukkit.item.ItemBuilder itemBuilder,
Menu menu)
Apply the string replacers to the item builder
|
static me.hsgamer.hscore.bukkit.item.ItemBuilder |
apply(me.hsgamer.hscore.bukkit.item.ItemBuilder itemBuilder,
MenuElement menuElement)
Apply the string replacers to the item builder
|
static LinkedHashMap<String,me.hsgamer.hscore.common.interfaces.StringReplacer> |
getStringReplacerMap()
Get a mutable map of string replacers
|
static String |
replace(String string,
UUID uuid,
boolean useGlobalVariableManager)
Apply the string replacers to the string
|
static String |
replace(String string,
UUID uuid,
Menu menu)
Apply the string replacers to the string
|
static String |
replace(String string,
UUID uuid,
MenuElement menuElement)
Apply the string replacers to the string
|
public static final me.hsgamer.hscore.common.interfaces.StringReplacer COLORIZE
public static LinkedHashMap<String,me.hsgamer.hscore.common.interfaces.StringReplacer> getStringReplacerMap()
public static me.hsgamer.hscore.bukkit.item.ItemBuilder apply(me.hsgamer.hscore.bukkit.item.ItemBuilder itemBuilder,
boolean useGlobalVariableManager)
itemBuilder - the item builderuseGlobalVariableManager - whether to use the global variable managerpublic static me.hsgamer.hscore.bukkit.item.ItemBuilder apply(me.hsgamer.hscore.bukkit.item.ItemBuilder itemBuilder,
Menu menu)
itemBuilder - the item buildermenu - the menupublic static me.hsgamer.hscore.bukkit.item.ItemBuilder apply(me.hsgamer.hscore.bukkit.item.ItemBuilder itemBuilder,
MenuElement menuElement)
itemBuilder - the item buildermenuElement - the menu elementpublic static String replace(String string, UUID uuid, boolean useGlobalVariableManager)
string - the stringuuid - the unique iduseGlobalVariableManager - whether to use the global variable managerpublic static String replace(String string, UUID uuid, Menu menu)
string - the stringuuid - the unique idmenu - the menupublic static String replace(String string, UUID uuid, MenuElement menuElement)
string - the stringuuid - the unique idmenuElement - the menu elementCopyright © 2023. All rights reserved.