Interface ExternalPlaceholderEngine
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Hook for integrating external placeholder engines.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ExternalPlaceholderEngineNo-op placeholder engine implementation. -
Method Summary
Modifier and TypeMethodDescriptiondefault net.kyori.adventure.audience.AudienceadventureAudience(Audience audience) Returns a Kyori audience wrapper for the platform audience.Applies external placeholder processing to plain text.default net.kyori.adventure.text.ComponentapplyComponent(Audience audience, net.kyori.adventure.text.Component component) Applies external placeholder processing to a component.default net.kyori.adventure.text.minimessage.tag.resolver.TagResolvertagResolver(Audience audience) Returns a tag resolver for MiniMessage parsing.
-
Field Details
-
NOOP
No-op placeholder engine implementation.
-
-
Method Details
-
apply
-
tagResolver
default net.kyori.adventure.text.minimessage.tag.resolver.TagResolver tagResolver(Audience audience) Returns a tag resolver for MiniMessage parsing.- Parameters:
audience- audience context- Returns:
- tag resolver
-
adventureAudience
Returns a Kyori audience wrapper for the platform audience.- Parameters:
audience- audience context- Returns:
- adventure audience or null
-
applyComponent
default net.kyori.adventure.text.Component applyComponent(Audience audience, net.kyori.adventure.text.Component component) Applies external placeholder processing to a component.- Parameters:
audience- audience contextcomponent- component to process- Returns:
- processed component
-