Class PlaceholderModuleResolver<E>
java.lang.Object
com.guflimc.brick.placeholders.api.module.PlaceholderModuleResolver<E>
- All Implemented Interfaces:
PlaceholderResolver<E>
- Direct Known Subclasses:
PlaceholderModuleManager
,PlaceholderTreeModule
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionmodules()
void
register
(@NotNull PlaceholderModule<E> module) <R> void
register
(@NotNull String name, @NotNull PlaceholderResolver<E> resolver) net.kyori.adventure.text.Component
resolve
(@NotNull String placeholder, @NotNull PlaceholderResolveContext<E> context) void
unregister
(@NotNull PlaceholderModule<E> module)
-
Constructor Details
-
PlaceholderModuleResolver
public PlaceholderModuleResolver()
-
-
Method Details
-
modules
-
register
public <R> void register(@NotNull @NotNull String name, @NotNull @NotNull PlaceholderResolver<E> resolver) -
register
-
unregister
-
resolve
public net.kyori.adventure.text.Component resolve(@NotNull @NotNull String placeholder, @NotNull @NotNull PlaceholderResolveContext<E> context) - Specified by:
resolve
in interfacePlaceholderResolver<E>
-