Interface ComponentMessageContext

All Superinterfaces:
MessageContext

public interface ComponentMessageContext extends MessageContext
A message context that also carries a ready-made component that should be inserted as-is.
  • Method Details

    • builder

      static net.flectone.pulse.model.event.message.context.ComponentMessageContextImpl.ComponentMessageContextImplBuilder builder()
      Starts building this context.
      Returns:
      a new builder
    • component

      @NonNull net.kyori.adventure.text.Component component()
      The extra value carried alongside the message.
      Returns:
      the component
    • withComponent

      ComponentMessageContext withComponent(@NonNull net.kyori.adventure.text.Component component)
      Returns a copy carrying a different value.
      Parameters:
      component - the new value
      Returns:
      the copy