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
  • 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 a Format record class.
      Parameters:
      enable - the value for the enable record component
      convertLegacyColor - the value for the convertLegacyColor record component
      adventureTags - the value for the adventureTags record component
      animation - the value for the animation record component
      condition - the value for the condition record component
      fading - the value for the fading record component
      fcolor - the value for the fcolor record component
      fixation - the value for the fixation record component
      mention - the value for the mention record component
      moderation - the value for the moderation record component
      names - the value for the names record component
      object - the value for the object record component
      padding - the value for the padding record component
      questionAnswer - the value for the questionAnswer record component
      replacement - the value for the replacement record component
      translate - the value for the translate record component
      world - the value for the world record component
  • Method Details

    • builder

      public static Message.Format.FormatBuilder builder()
    • toBuilder

      public Message.Format.FormatBuilder toBuilder()
    • withEnable

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

      public Message.Format withConvertLegacyColor(Boolean convertLegacyColor)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withAdventureTags

      public Message.Format withAdventureTags(List<AdventureTag> adventureTags)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withAnimation

      public Message.Format withAnimation(Message.Format.Animation animation)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withCondition

      public Message.Format withCondition(Message.Format.Condition condition)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withFading

      public Message.Format withFading(Message.Format.Fading fading)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withFcolor

      public Message.Format withFcolor(Message.Format.FColor fcolor)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withFixation

      public Message.Format withFixation(Message.Format.Fixation fixation)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withMention

      public Message.Format withMention(Message.Format.Mention mention)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withModeration

      public Message.Format withModeration(Message.Format.Moderation moderation)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withNames

      public Message.Format withNames(Message.Format.Names names)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withObject

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

      public Message.Format withPadding(Message.Format.Padding padding)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withQuestionAnswer

      public Message.Format withQuestionAnswer(Message.Format.QuestionAnswer questionAnswer)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withReplacement

      public Message.Format withReplacement(Message.Format.Replacement replacement)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withTranslate

      public Message.Format withTranslate(Message.Format.Translate translate)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withWorld

      public Message.Format withWorld(Message.Format.World world)
      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

      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
    • convertLegacyColor

      public Boolean convertLegacyColor()
      Returns the value of the convertLegacyColor record component.
      Returns:
      the value of the convertLegacyColor record component
    • adventureTags

      public List<AdventureTag> adventureTags()
      Returns the value of the adventureTags record component.
      Returns:
      the value of the adventureTags record component
    • animation

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

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

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

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

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

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

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

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

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

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

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

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

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

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