Interface PlaceholderResolver<E>
- All Known Subinterfaces:
PlaceholderModule<E>
- All Known Implementing Classes:
OperatorIfPresentPlaceholderModule
,OperatorMapPlaceholderModule
,OperatorMapRangePlaceholderModule
,OperatorPlaceholderModule
,PlaceholderAPIHook
,PlaceholderModuleManager
,PlaceholderModuleResolver
,PlaceholderPluginHook
,PlaceholderTreeModule
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <E,
R> PlaceholderResolver<E> requireEntity
(@NotNull PlaceholderResolver<E> resolver) static <E,
R> PlaceholderResolver<E> requireViewer
(@NotNull PlaceholderResolver<E> resolver) @Nullable net.kyori.adventure.text.Component
resolve
(@NotNull String placeholder, @NotNull PlaceholderResolveContext<E> context)
-
Method Details
-
resolve
@Nullable @Nullable net.kyori.adventure.text.Component resolve(@NotNull @NotNull String placeholder, @NotNull @NotNull PlaceholderResolveContext<E> context) -
requireEntity
static <E,R> PlaceholderResolver<E> requireEntity(@NotNull @NotNull PlaceholderResolver<E> resolver) -
requireViewer
static <E,R> PlaceholderResolver<E> requireViewer(@NotNull @NotNull PlaceholderResolver<E> resolver)
-