Record Class ChatSettings.Channel
java.lang.Object
java.lang.Record
ovh.mythmc.social.api.configuration.section.settings.ChatSettings.Channel
- Enclosing class:
ChatSettings
-
Constructor Summary
ConstructorsConstructorDescriptionChannel(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 aChannelrecord class. -
Method Summary
Modifier and TypeMethodDescriptionalias()Returns the value of thealiasrecord component.color()Returns the value of thecolorrecord component.commands()Returns the value of thecommandsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thehoverTextrecord component.icon()Returns the value of theiconrecord component.inherit()Returns the value of theinheritrecord component.Returns the value of thejoinByDefaultrecord component.name()Returns the value of thenamerecord component.Returns the value of thenicknameColorrecord component.Returns the value of thepermissionrecord component.Returns the value of theshowHoverTextrecord component.Returns the value of thetextColorrecord component.Returns the value of thetextDividerrecord component.final StringtoString()Returns a string representation of this record class.
-
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 aChannelrecord class.- Parameters:
name- the value for thenamerecord componentalias- the value for thealiasrecord componentinherit- the value for theinheritrecord componentcolor- the value for thecolorrecord componentpermission- the value for thepermissionrecord componentcommands- the value for thecommandsrecord componenticon- the value for theiconrecord componentshowHoverText- the value for theshowHoverTextrecord componenthoverText- the value for thehoverTextrecord componentnicknameColor- the value for thenicknameColorrecord componenttextDivider- the value for thetextDividerrecord componenttextColor- the value for thetextColorrecord componentjoinByDefault- the value for thejoinByDefaultrecord component
-
-
Method Details
-
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. -
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. -
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). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
alias
Returns the value of thealiasrecord component.- Returns:
- the value of the
aliasrecord component
-
inherit
Returns the value of theinheritrecord component.- Returns:
- the value of the
inheritrecord component
-
color
Returns the value of thecolorrecord component.- Returns:
- the value of the
colorrecord component
-
permission
Returns the value of thepermissionrecord component.- Returns:
- the value of the
permissionrecord component
-
commands
Returns the value of thecommandsrecord component.- Returns:
- the value of the
commandsrecord component
-
icon
Returns the value of theiconrecord component.- Returns:
- the value of the
iconrecord component
-
showHoverText
Returns the value of theshowHoverTextrecord component.- Returns:
- the value of the
showHoverTextrecord component
-
hoverText
Returns the value of thehoverTextrecord component.- Returns:
- the value of the
hoverTextrecord component
-
nicknameColor
Returns the value of thenicknameColorrecord component.- Returns:
- the value of the
nicknameColorrecord component
-
textDivider
Returns the value of thetextDividerrecord component.- Returns:
- the value of the
textDividerrecord component
-
textColor
Returns the value of thetextColorrecord component.- Returns:
- the value of the
textColorrecord component
-
joinByDefault
Returns the value of thejoinByDefaultrecord component.- Returns:
- the value of the
joinByDefaultrecord component
-