Record Class BotSettingsImpl
java.lang.Object
java.lang.Record
com.soulfiremc.server.settings.lib.BotSettingsImpl
- All Implemented Interfaces:
BotSettingsSource, SettingsSource<SettingsSource.Bot>
public record BotSettingsImpl(MinecraftAccount stem, InstanceSettingsSource instanceSettings)
extends Record
implements BotSettingsSource
-
Nested Class Summary
Nested classes/interfaces inherited from interface SettingsSource
SettingsSource.Bot, SettingsSource.CustomIntSupplier, SettingsSource.Instance, SettingsSource.Server, SettingsSource.SourceType, SettingsSource.Stem<S> -
Constructor Summary
ConstructorsConstructorDescriptionBotSettingsImpl(MinecraftAccount stem, InstanceSettingsSource instanceSettings) Creates an instance of aBotSettingsImplrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Optional<com.google.gson.JsonElement> get(Property<SettingsSource.Bot> property) final inthashCode()Returns a hash code value for this object.Returns the value of theinstanceSettingsrecord component.stem()Returns the value of thestemrecord component.final StringtoString()Returns a string representation of this record class.@NotNull BotSettingsImplwithInstanceSettings(InstanceSettingsSource instanceSettings) @NotNull BotSettingsImplwithStem(MinecraftAccount stem)
-
Constructor Details
-
BotSettingsImpl
Creates an instance of aBotSettingsImplrecord class.- Parameters:
stem- the value for thestemrecord componentinstanceSettings- the value for theinstanceSettingsrecord component
-
-
Method Details
-
get
- Specified by:
getin interfaceSettingsSource<SettingsSource.Bot>
-
withStem
- Returns:
this.
-
withInstanceSettings
@NotNull public @NotNull BotSettingsImpl withInstanceSettings(InstanceSettingsSource instanceSettings) - Returns:
this.
-
toString
-
hashCode
-
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). -
stem
Returns the value of thestemrecord component.- Specified by:
stemin interfaceBotSettingsSource- Specified by:
stemin interfaceSettingsSource<SettingsSource.Bot>- Returns:
- the value of the
stemrecord component
-
instanceSettings
Returns the value of theinstanceSettingsrecord component.- Specified by:
instanceSettingsin interfaceBotSettingsSource- Returns:
- the value of the
instanceSettingsrecord component
-