Class PlaceholderModuleManager<E>
java.lang.Object
com.guflimc.brick.placeholders.api.module.PlaceholderModuleResolver<E>
com.guflimc.brick.placeholders.api.manager.PlaceholderModuleManager<E>
- All Implemented Interfaces:
PlaceholderManager<E>
,PlaceholderResolver<E>
public class PlaceholderModuleManager<E>
extends PlaceholderModuleResolver<E>
implements PlaceholderManager<E>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
net.kyori.adventure.text.Component
replace
(@NotNull String text, @NotNull PlaceholderResolveContext<E> context) Replace placeholders.net.kyori.adventure.text.Component
replace
(@NotNull net.kyori.adventure.text.Component component, @NotNull PlaceholderResolveContext<E> context) Replace placeholders.Methods inherited from class com.guflimc.brick.placeholders.api.module.PlaceholderModuleResolver
modules, register, register, resolve, unregister
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.guflimc.brick.placeholders.api.manager.PlaceholderManager
register, replace, replace, resolve, resolve, unregister
-
Constructor Details
-
PlaceholderModuleManager
public PlaceholderModuleManager()
-
-
Method Details
-
registerOperators
public void registerOperators() -
replace
public net.kyori.adventure.text.Component replace(@NotNull @NotNull String text, @NotNull @NotNull PlaceholderResolveContext<E> context) Description copied from interface:PlaceholderManager
Replace placeholders.- Specified by:
replace
in interfacePlaceholderManager<E>
- Parameters:
text
- to replace placeholders in- Returns:
- the component with placeholders replaced
-
replace
public net.kyori.adventure.text.Component replace(@NotNull @NotNull net.kyori.adventure.text.Component component, @NotNull @NotNull PlaceholderResolveContext<E> context) Description copied from interface:PlaceholderManager
Replace placeholders.- Specified by:
replace
in interfacePlaceholderManager<E>
- Parameters:
component
- to replace placeholders in- Returns:
- the component with placeholders replaced
-