Interface VanillaMessageContext

All Superinterfaces:
MessageContext, VanishMessageContext

public interface VanillaMessageContext extends VanishMessageContext
A vanilla server message the plugin re-renders. Builds on VanishMessageContext.
  • 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

      VanillaMessageContext withParsedComponent(@Nullable ParsedComponent parsedComponent)
      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