Record Class ChatSettings.Channel

java.lang.Object
java.lang.Record
ovh.mythmc.social.api.configuration.section.settings.ChatSettings.Channel
Enclosing class:
ChatSettings

public static record ChatSettings.Channel(String name, String alias, String inherit, String color, String permission, List<String> commands, String icon, Boolean showHoverText, List<String> hoverText, String nicknameColor, String textDivider, String textColor, Boolean joinByDefault) extends Record
  • Constructor Details

    • Channel

      public Channel(String name, String alias, String inherit, String color, String permission, List<String> commands, String icon, Boolean showHoverText, List<String> hoverText, String nicknameColor, String textDivider, String textColor, Boolean joinByDefault)
      Creates an instance of a Channel record class.
      Parameters:
      name - the value for the name record component
      alias - the value for the alias record component
      inherit - the value for the inherit record component
      color - the value for the color record component
      permission - the value for the permission record component
      commands - the value for the commands record component
      icon - the value for the icon record component
      showHoverText - the value for the showHoverText record component
      hoverText - the value for the hoverText record component
      nicknameColor - the value for the nicknameColor record component
      textDivider - the value for the textDivider record component
      textColor - the value for the textColor record component
      joinByDefault - the value for the joinByDefault record component
  • Method Details

    • 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.
      Returns:
      the value of the name record component
    • alias

      public String alias()
      Returns the value of the alias record component.
      Returns:
      the value of the alias record component
    • inherit

      public String inherit()
      Returns the value of the inherit record component.
      Returns:
      the value of the inherit record component
    • color

      public String color()
      Returns the value of the color record component.
      Returns:
      the value of the color record component
    • permission

      public String permission()
      Returns the value of the permission record component.
      Returns:
      the value of the permission record component
    • commands

      public List<String> commands()
      Returns the value of the commands record component.
      Returns:
      the value of the commands record component
    • icon

      public String icon()
      Returns the value of the icon record component.
      Returns:
      the value of the icon record component
    • showHoverText

      public Boolean showHoverText()
      Returns the value of the showHoverText record component.
      Returns:
      the value of the showHoverText record component
    • hoverText

      public List<String> hoverText()
      Returns the value of the hoverText record component.
      Returns:
      the value of the hoverText record component
    • nicknameColor

      public String nicknameColor()
      Returns the value of the nicknameColor record component.
      Returns:
      the value of the nicknameColor record component
    • textDivider

      public String textDivider()
      Returns the value of the textDivider record component.
      Returns:
      the value of the textDivider record component
    • textColor

      public String textColor()
      Returns the value of the textColor record component.
      Returns:
      the value of the textColor record component
    • joinByDefault

      public Boolean joinByDefault()
      Returns the value of the joinByDefault record component.
      Returns:
      the value of the joinByDefault record component