Class MessageComponent

java.lang.Object
ch.njol.skript.util.chat.MessageComponent

@Deprecated(since="2.15", forRemoval=true) public class MessageComponent extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
Component for chat messages. This can be serialized with GSON and then sent to client.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static class 
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static class 
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    Makes text bold.
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    @Nullable net.md_5.bungee.api.ChatColor
    Deprecated, for removal: This API element is subject to removal in a future version.
    Color of this text.
    @Nullable String
    Deprecated, for removal: This API element is subject to removal in a future version.
    Font of the component.
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    @Nullable String
    Deprecated, for removal: This API element is subject to removal in a future version.
    Value of this, if present, will appended on what player is currently writing to chat.
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    Makes text italic.
    @Nullable String
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    Makes text obfuscated, i.e.
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    Tells that this component is supposed to reset styling.
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    Makes text strikethrough
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    @Nullable String
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    Makes texxt underlined.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • text

      public String text
      Deprecated, for removal: This API element is subject to removal in a future version.
    • reset

      public boolean reset
      Deprecated, for removal: This API element is subject to removal in a future version.
      Tells that this component is supposed to reset styling.
    • bold

      public boolean bold
      Deprecated, for removal: This API element is subject to removal in a future version.
      Makes text bold.
    • italic

      public boolean italic
      Deprecated, for removal: This API element is subject to removal in a future version.
      Makes text italic.
    • underlined

      public boolean underlined
      Deprecated, for removal: This API element is subject to removal in a future version.
      Makes texxt underlined.
    • strikethrough

      public boolean strikethrough
      Deprecated, for removal: This API element is subject to removal in a future version.
      Makes text strikethrough
    • obfuscated

      public boolean obfuscated
      Deprecated, for removal: This API element is subject to removal in a future version.
      Makes text obfuscated, i.e. each tick the client will scramble all letters with random ones.
    • color

      @Nullable public @Nullable net.md_5.bungee.api.ChatColor color
      Deprecated, for removal: This API element is subject to removal in a future version.
      Color of this text. Defaults to reseting it.
    • insertion

      @Nullable public @Nullable String insertion
      Deprecated, for removal: This API element is subject to removal in a future version.
      Value of this, if present, will appended on what player is currently writing to chat.
    • clickEvent

      @Nullable public @Nullable MessageComponent.ClickEvent clickEvent
      Deprecated, for removal: This API element is subject to removal in a future version.
    • font

      @Nullable public @Nullable String font
      Deprecated, for removal: This API element is subject to removal in a future version.
      Font of the component. 1.16+. Null for BaseComponents means default font.
    • translation

      @Nullable public @Nullable String translation
      Deprecated, for removal: This API element is subject to removal in a future version.
    • keybind

      @Nullable public @Nullable String keybind
      Deprecated, for removal: This API element is subject to removal in a future version.
    • hoverEvent

      @Nullable public @Nullable MessageComponent.HoverEvent hoverEvent
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Constructor Details

    • MessageComponent

      public MessageComponent()
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • copy

      public MessageComponent copy()
      Deprecated, for removal: This API element is subject to removal in a future version.