Record Class BotConnectionFactory
java.lang.Object
java.lang.Record
com.soulfiremc.server.bot.BotConnectionFactory
public record BotConnectionFactory(InstanceManager instanceManager, InstanceSettingsSource settingsSource, MinecraftAccount minecraftAccount, com.viaversion.viaversion.api.protocol.version.ProtocolVersion protocolVersion, net.minecraft.client.multiplayer.resolver.ServerAddress serverAddress, @Nullable SFProxy proxyData, io.netty.channel.EventLoopGroup eventLoopGroup)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionBotConnectionFactory(InstanceManager instanceManager, InstanceSettingsSource settingsSource, MinecraftAccount minecraftAccount, com.viaversion.viaversion.api.protocol.version.ProtocolVersion protocolVersion, net.minecraft.client.multiplayer.resolver.ServerAddress serverAddress, @Nullable SFProxy proxyData, io.netty.channel.EventLoopGroup eventLoopGroup) Creates an instance of aBotConnectionFactoryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.io.netty.channel.EventLoopGroupReturns the value of theeventLoopGrouprecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theinstanceManagerrecord component.Returns the value of theminecraftAccountrecord component.static net.minecraft.client.multiplayer.resolver.ServerAddressparseAddress(String address, com.viaversion.viaversion.api.protocol.version.ProtocolVersion protocolVersion) prepareConnection(boolean isStatusPing) com.viaversion.viaversion.api.protocol.version.ProtocolVersionReturns the value of theprotocolVersionrecord component.@Nullable SFProxyReturns the value of theproxyDatarecord component.net.minecraft.client.multiplayer.resolver.ServerAddressReturns the value of theserverAddressrecord component.Returns the value of thesettingsSourcerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BotConnectionFactory
public BotConnectionFactory(InstanceManager instanceManager, InstanceSettingsSource settingsSource, MinecraftAccount minecraftAccount, com.viaversion.viaversion.api.protocol.version.ProtocolVersion protocolVersion, net.minecraft.client.multiplayer.resolver.ServerAddress serverAddress, @Nullable SFProxy proxyData, io.netty.channel.EventLoopGroup eventLoopGroup) Creates an instance of aBotConnectionFactoryrecord class.- Parameters:
instanceManager- the value for theinstanceManagerrecord componentsettingsSource- the value for thesettingsSourcerecord componentminecraftAccount- the value for theminecraftAccountrecord componentprotocolVersion- the value for theprotocolVersionrecord componentserverAddress- the value for theserverAddressrecord componentproxyData- the value for theproxyDatarecord componenteventLoopGroup- the value for theeventLoopGrouprecord component
-
-
Method Details
-
prepareConnection
-
parseAddress
public static net.minecraft.client.multiplayer.resolver.ServerAddress parseAddress(String address, com.viaversion.viaversion.api.protocol.version.ProtocolVersion protocolVersion) -
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). -
instanceManager
Returns the value of theinstanceManagerrecord component.- Returns:
- the value of the
instanceManagerrecord component
-
settingsSource
Returns the value of thesettingsSourcerecord component.- Returns:
- the value of the
settingsSourcerecord component
-
minecraftAccount
Returns the value of theminecraftAccountrecord component.- Returns:
- the value of the
minecraftAccountrecord component
-
protocolVersion
public com.viaversion.viaversion.api.protocol.version.ProtocolVersion protocolVersion()Returns the value of theprotocolVersionrecord component.- Returns:
- the value of the
protocolVersionrecord component
-
serverAddress
public net.minecraft.client.multiplayer.resolver.ServerAddress serverAddress()Returns the value of theserverAddressrecord component.- Returns:
- the value of the
serverAddressrecord component
-
proxyData
Returns the value of theproxyDatarecord component.- Returns:
- the value of the
proxyDatarecord component
-
eventLoopGroup
public io.netty.channel.EventLoopGroup eventLoopGroup()Returns the value of theeventLoopGrouprecord component.- Returns:
- the value of the
eventLoopGrouprecord component
-