Interface VanillaMessageContext
- All Superinterfaces:
MessageContext, VanishMessageContext
A vanilla server message the plugin re-renders.
Builds on
VanishMessageContext.-
Nested Class Summary
Nested classes/interfaces inherited from interface MessageContext
MessageContext.CacheKey -
Method Summary
Modifier and TypeMethodDescriptionstatic net.flectone.pulse.module.message.vanilla.model.VanillaMessageContextImpl.VanillaMessageContextImplBuilderbuilder()Starts building this context.@Nullable ParsedComponentThe message broken into its translation key and arguments, or null if it could not be parsed.withParsedComponent(@Nullable ParsedComponent parsedComponent) Returns a copy carrying a different value.Methods inherited from interface MessageContext
addFlag, addFlags, addTagResolver, addTagResolvers, base, createCacheKey, flags, isFlag, message, receiver, sender, tagResolver, toBuilder, uuid, withBase, withFlags, withMessage, withReceiver, withSender, withTagResolver, withUuidMethods inherited from interface VanishMessageContext
fakeMessage, vanished, withFakeMessage, withVanished
-
Method Details
-
builder
static net.flectone.pulse.module.message.vanilla.model.VanillaMessageContextImpl.VanillaMessageContextImplBuilder builder()Starts building this context.- Returns:
- a new builder
-
parsedComponent
@Nullable ParsedComponent parsedComponent()The message broken into its translation key and arguments, or null if it could not be parsed.- Returns:
- the message broken into its translation key and arguments, or null if it could not be parsed
-
withParsedComponent
Returns a copy carrying a different value.- Parameters:
parsedComponent- the message broken into its translation key and arguments, or null if it could not be parsed- Returns:
- the copy
-