Class VelocityBrigadierMessage

java.lang.Object
com.velocitypowered.api.command.VelocityBrigadierMessage
All Implemented Interfaces:
com.mojang.brigadier.Message, ComponentLike

public final class VelocityBrigadierMessage extends Object implements com.mojang.brigadier.Message, ComponentLike
Represents an implementation of brigadier's Message, providing support for Component messages.
  • Method Details

    • tooltip

      public static VelocityBrigadierMessage tooltip(Component message)
    • asComponent

      @NotNull public @NotNull Component asComponent()
      Specified by:
      asComponent in interface ComponentLike
    • getString

      public String getString()
      Returns the message as a plain text.
      Specified by:
      getString in interface com.mojang.brigadier.Message
      Returns:
      message as plain text