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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final recordstatic final recordstatic final recordstatic final recordstatic final recordstatic final recordstatic final recordstatic final recordstatic final recordstatic final recordstatic classstatic final recordstatic final recordstatic final recordstatic final recordstatic final recordstatic final recordstatic final recordstatic final recordstatic final recordstatic final record -
Constructor Summary
ConstructorsConstructorDescriptionMessage(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) Creates an instance of aMessagerecord class. -
Method Summary
Modifier and TypeMethodDescriptionafk()Returns the value of theafkrecord component.anvil()Returns the value of theanvilrecord component.auto()Returns the value of theautorecord component.book()Returns the value of thebookrecord component.bossbar()Returns the value of thebossbarrecord component.brand()Returns the value of thebrandrecord component.bubble()Returns the value of thebubblerecord component.static Message.MessageBuilderbuilder()chat()Returns the value of thechatrecord component.enable()Returns the value of theenablerecord component.final booleanIndicates whether some other object is "equal to" this one.format()Returns the value of theformatrecord component.greeting()Returns the value of thegreetingrecord component.final inthashCode()Returns a hash code value for this object.join()Returns the value of thejoinrecord component.quit()Returns the value of thequitrecord component.Returns the value of therightclickrecord component.Returns the value of thescoreboardrecord component.Returns the value of theserverlinkrecord component.sidebar()Returns the value of thesidebarrecord component.sign()Returns the value of thesignrecord component.status()Returns the value of thestatusrecord component.tab()Returns the value of thetabrecord component.final StringtoString()Returns a string representation of this record class.update()Returns the value of theupdaterecord component.vanilla()Returns the value of thevanillarecord component.withAfk(Message.Afk afk) withAnvil(Message.Anvil anvil) withAuto(Message.Auto auto) withBook(Message.Book book) withBossbar(Message.Bossbar bossbar) withBrand(Message.Brand brand) withBubble(Message.Bubble bubble) withChat(Message.Chat chat) withEnable(Boolean enable) withFormat(Message.Format format) withGreeting(Message.Greeting greeting) withJoin(Message.Join join) withQuit(Message.Quit quit) withRightclick(Message.Rightclick rightclick) withScoreboard(Message.Scoreboard scoreboard) withServerlink(Message.Serverlink serverlink) withSidebar(Message.Sidebar sidebar) withSign(Message.Sign sign) withStatus(Message.Status status) withTab(Message.Tab tab) withUpdate(Message.Update update) withVanilla(Message.Vanilla vanilla)
-
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 aMessagerecord class.- Parameters:
enable- the value for theenablerecord componentafk- the value for theafkrecord componentanvil- the value for theanvilrecord componentauto- the value for theautorecord componentbook- the value for thebookrecord componentbossbar- the value for thebossbarrecord componentbrand- the value for thebrandrecord componentbubble- the value for thebubblerecord componentchat- the value for thechatrecord componentformat- the value for theformatrecord componentgreeting- the value for thegreetingrecord componentjoin- the value for thejoinrecord componentquit- the value for thequitrecord componentrightclick- the value for therightclickrecord componentscoreboard- the value for thescoreboardrecord componentserverlink- the value for theserverlinkrecord componentsidebar- the value for thesidebarrecord componentsign- the value for thesignrecord componentstatus- the value for thestatusrecord componenttab- the value for thetabrecord componentupdate- the value for theupdaterecord componentvanilla- the value for thevanillarecord component
-
-
Method Details
-
builder
-
toBuilder
-
withEnable
-
withAfk
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withAnvil
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withAuto
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withBook
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withBossbar
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withBrand
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withBubble
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withChat
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withFormat
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withGreeting
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withJoin
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withQuit
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withRightclick
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withScoreboard
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withServerlink
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withSidebar
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withSign
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withStatus
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withTab
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withUpdate
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withVanilla
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
toString
-
hashCode
-
equals
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 withObjects::equals(Object,Object). -
enable
Returns the value of theenablerecord component.- Specified by:
enablein interfaceEnableSetting- Returns:
- the value of the
enablerecord component
-
afk
Returns the value of theafkrecord component.- Returns:
- the value of the
afkrecord component
-
anvil
@JsonPropertyDescription(" https://flectone.net/pulse/docs/message/anvil") public Message.Anvil anvil()Returns the value of theanvilrecord component.- Returns:
- the value of the
anvilrecord component
-
auto
@JsonPropertyDescription(" https://flectone.net/pulse/docs/message/auto") public Message.Auto auto()Returns the value of theautorecord component.- Returns:
- the value of the
autorecord component
-
book
@JsonPropertyDescription(" https://flectone.net/pulse/docs/message/book") public Message.Book book()Returns the value of thebookrecord component.- Returns:
- the value of the
bookrecord component
-
bossbar
@JsonPropertyDescription(" https://flectone.net/pulse/docs/message/bossbar") public Message.Bossbar bossbar()Returns the value of thebossbarrecord component.- Returns:
- the value of the
bossbarrecord component
-
brand
@JsonPropertyDescription(" https://flectone.net/pulse/docs/message/brand") public Message.Brand brand()Returns the value of thebrandrecord component.- Returns:
- the value of the
brandrecord component
-
bubble
@JsonPropertyDescription(" https://flectone.net/pulse/docs/message/bubble") public Message.Bubble bubble()Returns the value of thebubblerecord component.- Returns:
- the value of the
bubblerecord component
-
chat
@JsonPropertyDescription(" https://flectone.net/pulse/docs/message/chat") public Message.Chat chat()Returns the value of thechatrecord component.- Returns:
- the value of the
chatrecord component
-
format
@JsonPropertyDescription(" https://flectone.net/pulse/docs/message/format") public Message.Format format()Returns the value of theformatrecord component.- Returns:
- the value of the
formatrecord component
-
greeting
@JsonPropertyDescription(" https://flectone.net/pulse/docs/message/greeting") public Message.Greeting greeting()Returns the value of thegreetingrecord component.- Returns:
- the value of the
greetingrecord component
-
join
@JsonPropertyDescription(" https://flectone.net/pulse/docs/message/join") public Message.Join join()Returns the value of thejoinrecord component.- Returns:
- the value of the
joinrecord component
-
quit
@JsonPropertyDescription(" https://flectone.net/pulse/docs/message/quit") public Message.Quit quit()Returns the value of thequitrecord component.- Returns:
- the value of the
quitrecord component
-
rightclick
@JsonPropertyDescription(" https://flectone.net/pulse/docs/message/rightclick") public Message.Rightclick rightclick()Returns the value of therightclickrecord component.- Returns:
- the value of the
rightclickrecord component
-
scoreboard
@JsonPropertyDescription(" https://flectone.net/pulse/docs/message/scoreboard") public Message.Scoreboard scoreboard()Returns the value of thescoreboardrecord component.- Returns:
- the value of the
scoreboardrecord component
-
serverlink
@JsonPropertyDescription(" https://flectone.net/pulse/docs/message/serverlink") public Message.Serverlink serverlink()Returns the value of theserverlinkrecord component.- Returns:
- the value of the
serverlinkrecord component
-
sidebar
@JsonPropertyDescription(" https://flectone.net/pulse/docs/message/sidebar") public Message.Sidebar sidebar()Returns the value of thesidebarrecord component.- Returns:
- the value of the
sidebarrecord component
-
sign
@JsonPropertyDescription(" https://flectone.net/pulse/docs/message/sign") public Message.Sign sign()Returns the value of thesignrecord component.- Returns:
- the value of the
signrecord component
-
status
@JsonPropertyDescription(" https://flectone.net/pulse/docs/message/status") public Message.Status status()Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
tab
Returns the value of thetabrecord component.- Returns:
- the value of the
tabrecord component
-
update
@JsonPropertyDescription(" https://flectone.net/pulse/docs/message/update") public Message.Update update()Returns the value of theupdaterecord component.- Returns:
- the value of the
updaterecord component
-
vanilla
@JsonPropertyDescription(" https://flectone.net/pulse/docs/message/vanilla") public Message.Vanilla vanilla()Returns the value of thevanillarecord component.- Returns:
- the value of the
vanillarecord component
-