Record Class Permission.Message.Format

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

  • Constructor Details

    • Format

      public Format(String name, Permission.Type type, Permission.PermissionEntry legacyColors, Map<AdventureTag, Permission.PermissionEntry> adventureTags, @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/format/animation") Permission.Message.Format.Animation animation, @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/format/condition") Permission.Message.Format.Condition condition, @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/format/fading") Permission.Message.Format.Fading fading, @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/format/fcolor") Permission.Message.Format.FColor fcolor, @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/format/fixation") Permission.Message.Format.Fixation fixation, @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/format/mention") Permission.Message.Format.Mention mention, @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/format/moderation") Permission.Message.Format.Moderation moderation, @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/format/names") Permission.Message.Format.Names names, @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/format/object") Permission.Message.Format.Object object, @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/format/padding") Permission.Message.Format.Padding padding, @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/format/questionanswer") Permission.Message.Format.QuestionAnswer questionAnswer, @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/format/replacement") Permission.Message.Format.Replacement replacement, @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/format/translate") Permission.Message.Format.Translate translate, @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/format/world") Permission.Message.Format.World world)
      Creates an instance of a Format record class.
      Parameters:
      name - the value for the name record component
      type - the value for the type record component
      legacyColors - the value for the legacyColors 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 Permission.Message.Format.FormatBuilder builder()
    • toBuilder

    • withName

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

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

      public Permission.Message.Format withLegacyColors(Permission.PermissionEntry legacyColors)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withAdventureTags

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      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:
    • legacyColors

      public Permission.PermissionEntry legacyColors()
      Returns the value of the legacyColors record component.
      Returns:
      the value of the legacyColors record component
    • adventureTags

      public Map<AdventureTag, Permission.PermissionEntry> 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 Permission.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 Permission.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 Permission.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 Permission.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 Permission.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 Permission.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 Permission.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 Permission.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 Permission.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 Permission.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 Permission.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 Permission.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 Permission.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 Permission.Message.Format.World world()
      Returns the value of the world record component.
      Returns:
      the value of the world record component