Record Class Message.Tab

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

public static record Message.Tab(Boolean enable, Message.Tab.Header header, Message.Tab.Footer footer, Message.Tab.Playerlistname playerlistname) extends Record implements EnableSetting
Since:
1.7.1
  • Constructor Details

    • Tab

      public Tab(Boolean enable, @JsonPropertyDescription("https://flectone.net/pulse/docs/message/tab/header") Message.Tab.Header header, @JsonPropertyDescription("https://flectone.net/pulse/docs/message/tab/footer") Message.Tab.Footer footer, @JsonPropertyDescription("https://flectone.net/pulse/docs/message/tab/playerlistname") Message.Tab.Playerlistname playerlistname)
      Creates an instance of a Tab record class.
      Parameters:
      enable - the value for the enable record component
      header - the value for the header record component
      footer - the value for the footer record component
      playerlistname - the value for the playerlistname record component
  • Method Details

    • builder

      public static Message.Tab.TabBuilder builder()
    • toBuilder

      public Message.Tab.TabBuilder toBuilder()
    • withEnable

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

      public Message.Tab withHeader(Message.Tab.Header header)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withFooter

      public Message.Tab withFooter(Message.Tab.Footer footer)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withPlayerlistname

      public Message.Tab withPlayerlistname(Message.Tab.Playerlistname playerlistname)
      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
    • header

      @JsonPropertyDescription("https://flectone.net/pulse/docs/message/tab/header") public Message.Tab.Header header()
      Returns the value of the header record component.
      Returns:
      the value of the header record component
    • footer

      @JsonPropertyDescription("https://flectone.net/pulse/docs/message/tab/footer") public Message.Tab.Footer footer()
      Returns the value of the footer record component.
      Returns:
      the value of the footer record component
    • playerlistname

      @JsonPropertyDescription("https://flectone.net/pulse/docs/message/tab/playerlistname") public Message.Tab.Playerlistname playerlistname()
      Returns the value of the playerlistname record component.
      Returns:
      the value of the playerlistname record component