Record Class Message

java.lang.Object
java.lang.Record
net.flectone.pulse.config.Message
All Implemented Interfaces:
EnableSetting

public record Message(Boolean enable, Message.Afk afk, Message.Anvil anvil, Message.Auto auto, Message.Book book, Message.Bossbar bossbar, Message.Brand brand, Message.Bubble bubble, Message.Chat chat, Message.Format format, Message.Greeting greeting, Message.Join join, Message.Quit quit, Message.Rightclick rightclick, Message.Scoreboard scoreboard, Message.Serverlink serverlink, Message.Sidebar sidebar, Message.Sign sign, Message.Status status, Message.Tab tab, Message.Update update, Message.Vanilla vanilla) extends Record implements EnableSetting
Configuration for message features in FlectonePulse. Contains settings for chat, formatting, visual elements, and notifications.
Since:
1.7.1
  • Constructor Details

    • Message

      public Message(@JsonPropertyDescription(" https://flectone.net/pulse/docs/message") Boolean enable, @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/afk") Message.Afk afk, @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/anvil") Message.Anvil anvil, @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/auto") Message.Auto auto, @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/book") Message.Book book, @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/bossbar") Message.Bossbar bossbar, @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/brand") Message.Brand brand, @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/bubble") Message.Bubble bubble, @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/chat") Message.Chat chat, @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/format") Message.Format format, @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/greeting") Message.Greeting greeting, @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/join") Message.Join join, @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/quit") Message.Quit quit, @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/rightclick") Message.Rightclick rightclick, @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/scoreboard") Message.Scoreboard scoreboard, @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/serverlink") Message.Serverlink serverlink, @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/sidebar") Message.Sidebar sidebar, @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/sign") Message.Sign sign, @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/status") Message.Status status, @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/tab") Message.Tab tab, @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/update") Message.Update update, @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/vanilla") Message.Vanilla vanilla)
      Creates an instance of a Message record class.
      Parameters:
      enable - the value for the enable record component
      afk - the value for the afk record component
      anvil - the value for the anvil record component
      auto - the value for the auto record component
      book - the value for the book record component
      bossbar - the value for the bossbar record component
      brand - the value for the brand record component
      bubble - the value for the bubble record component
      chat - the value for the chat record component
      format - the value for the format record component
      greeting - the value for the greeting record component
      join - the value for the join record component
      quit - the value for the quit record component
      rightclick - the value for the rightclick record component
      scoreboard - the value for the scoreboard record component
      serverlink - the value for the serverlink record component
      sidebar - the value for the sidebar record component
      sign - the value for the sign record component
      status - the value for the status record component
      tab - the value for the tab record component
      update - the value for the update record component
      vanilla - the value for the vanilla record component
  • Method Details

    • builder

      public static Message.MessageBuilder builder()
    • toBuilder

      public Message.MessageBuilder toBuilder()
    • withEnable

      public Message withEnable(Boolean enable)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withAfk

      public Message withAfk(Message.Afk afk)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withAnvil

      public Message withAnvil(Message.Anvil anvil)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withAuto

      public Message withAuto(Message.Auto auto)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withBook

      public Message withBook(Message.Book book)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withBossbar

      public Message withBossbar(Message.Bossbar bossbar)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withBrand

      public Message withBrand(Message.Brand brand)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withBubble

      public Message withBubble(Message.Bubble bubble)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withChat

      public Message withChat(Message.Chat chat)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withFormat

      public Message withFormat(Message.Format format)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withGreeting

      public Message withGreeting(Message.Greeting greeting)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withJoin

      public Message withJoin(Message.Join join)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withQuit

      public Message withQuit(Message.Quit quit)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withRightclick

      public Message withRightclick(Message.Rightclick rightclick)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withScoreboard

      public Message withScoreboard(Message.Scoreboard scoreboard)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withServerlink

      public Message withServerlink(Message.Serverlink serverlink)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withSidebar

      public Message withSidebar(Message.Sidebar sidebar)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withSign

      public Message withSign(Message.Sign sign)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withStatus

      public Message withStatus(Message.Status status)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withTab

      public Message withTab(Message.Tab tab)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withUpdate

      public Message withUpdate(Message.Update update)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withVanilla

      public Message withVanilla(Message.Vanilla vanilla)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • enable

      @JsonPropertyDescription(" https://flectone.net/pulse/docs/message") public Boolean enable()
      Returns the value of the enable record component.
      Specified by:
      enable in interface EnableSetting
      Returns:
      the value of the enable record component
    • afk

      @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/afk") public Message.Afk afk()
      Returns the value of the afk record component.
      Returns:
      the value of the afk record component
    • anvil

      @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/anvil") public Message.Anvil anvil()
      Returns the value of the anvil record component.
      Returns:
      the value of the anvil record component
    • auto

      @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/auto") public Message.Auto auto()
      Returns the value of the auto record component.
      Returns:
      the value of the auto record component
    • book

      @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/book") public Message.Book book()
      Returns the value of the book record component.
      Returns:
      the value of the book record component
    • bossbar

      @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/bossbar") public Message.Bossbar bossbar()
      Returns the value of the bossbar record component.
      Returns:
      the value of the bossbar record component
    • brand

      @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/brand") public Message.Brand brand()
      Returns the value of the brand record component.
      Returns:
      the value of the brand record component
    • bubble

      @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/bubble") public Message.Bubble bubble()
      Returns the value of the bubble record component.
      Returns:
      the value of the bubble record component
    • chat

      @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/chat") public Message.Chat chat()
      Returns the value of the chat record component.
      Returns:
      the value of the chat record component
    • format

      @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/format") public Message.Format format()
      Returns the value of the format record component.
      Returns:
      the value of the format record component
    • greeting

      @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/greeting") public Message.Greeting greeting()
      Returns the value of the greeting record component.
      Returns:
      the value of the greeting record component
    • join

      @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/join") public Message.Join join()
      Returns the value of the join record component.
      Returns:
      the value of the join record component
    • quit

      @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/quit") public Message.Quit quit()
      Returns the value of the quit record component.
      Returns:
      the value of the quit record component
    • rightclick

      @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/rightclick") public Message.Rightclick rightclick()
      Returns the value of the rightclick record component.
      Returns:
      the value of the rightclick record component
    • scoreboard

      @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/scoreboard") public Message.Scoreboard scoreboard()
      Returns the value of the scoreboard record component.
      Returns:
      the value of the scoreboard record component
    • serverlink

      @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/serverlink") public Message.Serverlink serverlink()
      Returns the value of the serverlink record component.
      Returns:
      the value of the serverlink record component
    • sidebar

      @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/sidebar") public Message.Sidebar sidebar()
      Returns the value of the sidebar record component.
      Returns:
      the value of the sidebar record component
    • sign

      @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/sign") public Message.Sign sign()
      Returns the value of the sign record component.
      Returns:
      the value of the sign record component
    • status

      @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/status") public Message.Status status()
      Returns the value of the status record component.
      Returns:
      the value of the status record component
    • tab

      @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/tab") public Message.Tab tab()
      Returns the value of the tab record component.
      Returns:
      the value of the tab record component
    • update

      @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/update") public Message.Update update()
      Returns the value of the update record component.
      Returns:
      the value of the update record component
    • vanilla

      @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/vanilla") public Message.Vanilla vanilla()
      Returns the value of the vanilla record component.
      Returns:
      the value of the vanilla record component