Record Class ChannelsSettings.BuildableChannel
java.lang.Object
java.lang.Record
ovh.mythmc.social.api.configuration.section.settings.ChannelsSettings.BuildableChannel
- Enclosing class:
ChannelsSettings
public static record ChannelsSettings.BuildableChannel(@NotNull String name, @NotNull TextComponent icon, @NotNull TextComponent description, @NotNull String color, @Nullable String inherit, @Nullable List<ChannelsSettings.ConfiguredInjectableValue> injections, @Nullable List<ChannelsSettings.BuildableComponent> builder)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionBuildableChannel(@NotNull String name, @NotNull TextComponent icon, @NotNull TextComponent description, @NotNull String color, @Nullable String inherit, @Nullable List<ChannelsSettings.ConfiguredInjectableValue> injections, @Nullable List<ChannelsSettings.BuildableComponent> builder) Creates an instance of aBuildableChannelrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Returns the value of thebuilderrecord component.color()Returns the value of thecolorrecord component.Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.icon()Returns the value of theiconrecord component.inherit()Returns the value of theinheritrecord component.Returns the value of theinjectionsrecord component.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BuildableChannel
public BuildableChannel(@NotNull @NotNull String name, @NotNull @NotNull TextComponent icon, @NotNull @NotNull TextComponent description, @NotNull @NotNull String color, @Nullable @Nullable String inherit, @Nullable @Nullable List<ChannelsSettings.ConfiguredInjectableValue> injections, @Nullable @Nullable List<ChannelsSettings.BuildableComponent> builder) Creates an instance of aBuildableChannelrecord class.- Parameters:
name- the value for thenamerecord componenticon- the value for theiconrecord componentdescription- the value for thedescriptionrecord componentcolor- the value for thecolorrecord componentinherit- the value for theinheritrecord componentinjections- the value for theinjectionsrecord componentbuilder- the value for thebuilderrecord component
-
-
Method Details
-
toChannel
-
toFormatBuilder
-
getSuperInherit
-
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
-
icon
Returns the value of theiconrecord component.- Returns:
- the value of the
iconrecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
color
Returns the value of thecolorrecord component.- Returns:
- the value of the
colorrecord component
-
inherit
Returns the value of theinheritrecord component.- Returns:
- the value of the
inheritrecord component
-
injections
Returns the value of theinjectionsrecord component.- Returns:
- the value of the
injectionsrecord component
-
builder
Returns the value of thebuilderrecord component.- Returns:
- the value of the
builderrecord component
-