Record Class Permission.Message

java.lang.Object
java.lang.Record
net.flectone.pulse.config.Permission.Message
All Implemented Interfaces:
PermissionSetting
Enclosing class:
Permission

  • Constructor Details

    • Message

      public Message(String name, Permission.Type type, @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/afk") Permission.Message.Afk afk, @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/anvil") Permission.Message.Anvil anvil, @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/auto") Permission.Message.Auto auto, @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/book") Permission.Message.Book book, @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/bossbar") Permission.Message.Bossbar bossbar, @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/brand") Permission.Message.Brand brand, @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/bubble") Permission.Message.Bubble bubble, @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/chat") Permission.Message.Chat chat, @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/format") Permission.Message.Format format, @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/greeting") Permission.Message.Greeting greeting, @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/join") Permission.Message.Join join, @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/quit") Permission.Message.Quit quit, @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/rightclick") Permission.Message.Rightclick rightclick, @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/scoreboard") Permission.Message.Scoreboard scoreboard, @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/serverlink") Permission.Message.Serverlink serverlink, @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/sidebar") Permission.Message.Sidebar sidebar, @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/sign") Permission.Message.Sign sign, @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/status") Permission.Message.Status status, @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/tab") Permission.Message.Tab tab, @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/update") Permission.Message.Update update, @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/vanilla") Permission.Message.Vanilla vanilla)
      Creates an instance of a Message record class.
      Parameters:
      name - the value for the name record component
      type - the value for the type 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 Permission.Message.MessageBuilder builder()
    • toBuilder

    • withName

      public Permission.Message withName(String name)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withType

      public Permission.Message withType(Permission.Type type)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withAfk

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public Permission.Message withVanilla(Permission.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.
    • name

      public String name()
      Returns the value of the name record component.
      Specified by:
      name in interface PermissionSetting
      Returns:
      the value of the name record component
    • type

      public Permission.Type type()
      Returns the value of the type record component.
      Specified by:
      type in interface PermissionSetting
      Returns:
      the value of the type record component
      See Also:
    • afk

      @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/afk") public Permission.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 Permission.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 Permission.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 Permission.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 Permission.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 Permission.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 Permission.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 Permission.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 Permission.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 Permission.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 Permission.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 Permission.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 Permission.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 Permission.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 Permission.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 Permission.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 Permission.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 Permission.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 Permission.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 Permission.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 Permission.Message.Vanilla vanilla()
      Returns the value of the vanilla record component.
      Returns:
      the value of the vanilla record component