Record Class Message.Format
java.lang.Object
java.lang.Record
net.flectone.pulse.config.Message.Format
- All Implemented Interfaces:
EnableSetting
- Enclosing class:
Message
public static record Message.Format(Boolean enable, Boolean convertLegacyColor, List<AdventureTag> adventureTags, Message.Format.Animation animation, Message.Format.Condition condition, Message.Format.Fading fading, Message.Format.FColor fcolor, Message.Format.Fixation fixation, Message.Format.Mention mention, Message.Format.Moderation moderation, Message.Format.Names names, Message.Format.Object object, Message.Format.Padding padding, Message.Format.QuestionAnswer questionAnswer, Message.Format.Replacement replacement, Message.Format.Translate translate, Message.Format.World world)
extends Record
implements EnableSetting
- Since:
- 1.7.1
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic 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 record -
Constructor Summary
ConstructorsConstructorDescriptionFormat(Boolean enable, Boolean convertLegacyColor, List<AdventureTag> adventureTags, Message.Format.Animation animation, Message.Format.Condition condition, Message.Format.Fading fading, Message.Format.FColor fcolor, Message.Format.Fixation fixation, Message.Format.Mention mention, Message.Format.Moderation moderation, Message.Format.Names names, Message.Format.Object object, Message.Format.Padding padding, Message.Format.QuestionAnswer questionAnswer, Message.Format.Replacement replacement, Message.Format.Translate translate, Message.Format.World world) Creates an instance of aFormatrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theadventureTagsrecord component.Returns the value of theanimationrecord component.static Message.Format.FormatBuilderbuilder()Returns the value of theconditionrecord component.Returns the value of theconvertLegacyColorrecord component.enable()Returns the value of theenablerecord component.final booleanIndicates whether some other object is "equal to" this one.fading()Returns the value of thefadingrecord component.fcolor()Returns the value of thefcolorrecord component.fixation()Returns the value of thefixationrecord component.final inthashCode()Returns a hash code value for this object.mention()Returns the value of thementionrecord component.Returns the value of themoderationrecord component.names()Returns the value of thenamesrecord component.object()Returns the value of theobjectrecord component.padding()Returns the value of thepaddingrecord component.Returns the value of thequestionAnswerrecord component.Returns the value of thereplacementrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetranslaterecord component.withAdventureTags(List<AdventureTag> adventureTags) withAnimation(Message.Format.Animation animation) withCondition(Message.Format.Condition condition) withConvertLegacyColor(Boolean convertLegacyColor) withEnable(Boolean enable) withFading(Message.Format.Fading fading) withFcolor(Message.Format.FColor fcolor) withFixation(Message.Format.Fixation fixation) withMention(Message.Format.Mention mention) withModeration(Message.Format.Moderation moderation) withNames(Message.Format.Names names) withObject(Message.Format.Object object) withPadding(Message.Format.Padding padding) withQuestionAnswer(Message.Format.QuestionAnswer questionAnswer) withReplacement(Message.Format.Replacement replacement) withTranslate(Message.Format.Translate translate) withWorld(Message.Format.World world) world()Returns the value of theworldrecord component.
-
Constructor Details
-
Format
public Format(Boolean enable, Boolean convertLegacyColor, List<AdventureTag> adventureTags, @JsonPropertyDescription("https://flectone.net/pulse/docs/message/format/animation") Message.Format.Animation animation, @JsonPropertyDescription("https://flectone.net/pulse/docs/message/format/condition") Message.Format.Condition condition, @JsonPropertyDescription("https://flectone.net/pulse/docs/message/format/fading") Message.Format.Fading fading, @JsonPropertyDescription("https://flectone.net/pulse/docs/message/format/fcolor") Message.Format.FColor fcolor, @JsonPropertyDescription("https://flectone.net/pulse/docs/message/format/fixation") Message.Format.Fixation fixation, @JsonPropertyDescription("https://flectone.net/pulse/docs/message/format/mention") Message.Format.Mention mention, @JsonPropertyDescription("https://flectone.net/pulse/docs/message/format/moderation") Message.Format.Moderation moderation, @JsonPropertyDescription("https://flectone.net/pulse/docs/message/format/names") Message.Format.Names names, @JsonPropertyDescription("https://flectone.net/pulse/docs/message/format/object") Message.Format.Object object, @JsonPropertyDescription("https://flectone.net/pulse/docs/message/format/padding") Message.Format.Padding padding, @JsonPropertyDescription("https://flectone.net/pulse/docs/message/format/questionanswer") Message.Format.QuestionAnswer questionAnswer, @JsonPropertyDescription("https://flectone.net/pulse/docs/message/format/replacement") Message.Format.Replacement replacement, @JsonPropertyDescription("https://flectone.net/pulse/docs/message/format/translate") Message.Format.Translate translate, @JsonPropertyDescription("https://flectone.net/pulse/docs/message/format/world") Message.Format.World world) Creates an instance of aFormatrecord class.- Parameters:
enable- the value for theenablerecord componentconvertLegacyColor- the value for theconvertLegacyColorrecord componentadventureTags- the value for theadventureTagsrecord componentanimation- the value for theanimationrecord componentcondition- the value for theconditionrecord componentfading- the value for thefadingrecord componentfcolor- the value for thefcolorrecord componentfixation- the value for thefixationrecord componentmention- the value for thementionrecord componentmoderation- the value for themoderationrecord componentnames- the value for thenamesrecord componentobject- the value for theobjectrecord componentpadding- the value for thepaddingrecord componentquestionAnswer- the value for thequestionAnswerrecord componentreplacement- the value for thereplacementrecord componenttranslate- the value for thetranslaterecord componentworld- the value for theworldrecord component
-
-
Method Details
-
builder
-
toBuilder
-
withEnable
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withConvertLegacyColor
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withAdventureTags
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withAnimation
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withCondition
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withFading
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withFcolor
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withFixation
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withMention
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withModeration
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withNames
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withObject
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withPadding
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withQuestionAnswer
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withReplacement
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withTranslate
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withWorld
- 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
-
convertLegacyColor
Returns the value of theconvertLegacyColorrecord component.- Returns:
- the value of the
convertLegacyColorrecord component
-
adventureTags
Returns the value of theadventureTagsrecord component.- Returns:
- the value of the
adventureTagsrecord component
-
animation
@JsonPropertyDescription("https://flectone.net/pulse/docs/message/format/animation") public Message.Format.Animation animation()Returns the value of theanimationrecord component.- Returns:
- the value of the
animationrecord component
-
condition
@JsonPropertyDescription("https://flectone.net/pulse/docs/message/format/condition") public Message.Format.Condition condition()Returns the value of theconditionrecord component.- Returns:
- the value of the
conditionrecord component
-
fading
@JsonPropertyDescription("https://flectone.net/pulse/docs/message/format/fading") public Message.Format.Fading fading()Returns the value of thefadingrecord component.- Returns:
- the value of the
fadingrecord component
-
fcolor
@JsonPropertyDescription("https://flectone.net/pulse/docs/message/format/fcolor") public Message.Format.FColor fcolor()Returns the value of thefcolorrecord component.- Returns:
- the value of the
fcolorrecord component
-
fixation
@JsonPropertyDescription("https://flectone.net/pulse/docs/message/format/fixation") public Message.Format.Fixation fixation()Returns the value of thefixationrecord component.- Returns:
- the value of the
fixationrecord component
-
mention
@JsonPropertyDescription("https://flectone.net/pulse/docs/message/format/mention") public Message.Format.Mention mention()Returns the value of thementionrecord component.- Returns:
- the value of the
mentionrecord component
-
moderation
@JsonPropertyDescription("https://flectone.net/pulse/docs/message/format/moderation") public Message.Format.Moderation moderation()Returns the value of themoderationrecord component.- Returns:
- the value of the
moderationrecord component
-
names
@JsonPropertyDescription("https://flectone.net/pulse/docs/message/format/names") public Message.Format.Names names()Returns the value of thenamesrecord component.- Returns:
- the value of the
namesrecord component
-
object
@JsonPropertyDescription("https://flectone.net/pulse/docs/message/format/object") public Message.Format.Object object()Returns the value of theobjectrecord component.- Returns:
- the value of the
objectrecord component
-
padding
@JsonPropertyDescription("https://flectone.net/pulse/docs/message/format/padding") public Message.Format.Padding padding()Returns the value of thepaddingrecord component.- Returns:
- the value of the
paddingrecord component
-
questionAnswer
@JsonPropertyDescription("https://flectone.net/pulse/docs/message/format/questionanswer") public Message.Format.QuestionAnswer questionAnswer()Returns the value of thequestionAnswerrecord component.- Returns:
- the value of the
questionAnswerrecord component
-
replacement
@JsonPropertyDescription("https://flectone.net/pulse/docs/message/format/replacement") public Message.Format.Replacement replacement()Returns the value of thereplacementrecord component.- Returns:
- the value of the
replacementrecord component
-
translate
@JsonPropertyDescription("https://flectone.net/pulse/docs/message/format/translate") public Message.Format.Translate translate()Returns the value of thetranslaterecord component.- Returns:
- the value of the
translaterecord component
-
world
@JsonPropertyDescription("https://flectone.net/pulse/docs/message/format/world") public Message.Format.World world()Returns the value of theworldrecord component.- Returns:
- the value of the
worldrecord component
-