Package org.spongepowered.api.adventure
Class ResolveOperations
java.lang.Object
org.spongepowered.api.adventure.ResolveOperations
Types of rendering that can be applied to components.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final DefaultedRegistryReference<ResolveOperation>
Resolve contextual components.static final DefaultedRegistryReference<ResolveOperation>
Apply custom translations. -
Method Summary
-
Field Details
-
CONTEXTUAL_COMPONENTS
Resolve contextual components.Some components (Selectors, NBT, and Score) must be resolved based on server information before being sent to the client. This performs that resolution.
-
CUSTOM_TRANSLATIONS
Apply custom translations.These are translations registered by plugins, not Vanilla or resource pack-provided translations. Those translations are already resolved clientside, so the information is not loaded on the server.
In normal message sending to players and consoles, custom translations are automatically resolved. This resolution operation is primarily intended for performing analysis of components before (or without) sending.
- See Also:
-
-
Method Details
-
registry
-