Package com.soulfiremc.server.bot
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 aBotConnectionFactory
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.io.netty.channel.EventLoopGroup
Returns the value of theeventLoopGroup
record component.final int
hashCode()
Returns a hash code value for this object.Returns the value of theinstanceManager
record component.Returns the value of theminecraftAccount
record component.static net.minecraft.client.multiplayer.resolver.ServerAddress
parseAddress
(String address, com.viaversion.viaversion.api.protocol.version.ProtocolVersion protocolVersion) prepareConnection
(boolean isStatusPing) com.viaversion.viaversion.api.protocol.version.ProtocolVersion
Returns the value of theprotocolVersion
record component.@Nullable SFProxy
Returns the value of theproxyData
record component.net.minecraft.client.multiplayer.resolver.ServerAddress
Returns the value of theserverAddress
record component.Returns the value of thesettingsSource
record component.final String
toString()
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 aBotConnectionFactory
record class.- Parameters:
instanceManager
- the value for theinstanceManager
record componentsettingsSource
- the value for thesettingsSource
record componentminecraftAccount
- the value for theminecraftAccount
record componentprotocolVersion
- the value for theprotocolVersion
record componentserverAddress
- the value for theserverAddress
record componentproxyData
- the value for theproxyData
record componenteventLoopGroup
- the value for theeventLoopGroup
record 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
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)
. -
instanceManager
Returns the value of theinstanceManager
record component.- Returns:
- the value of the
instanceManager
record component
-
settingsSource
Returns the value of thesettingsSource
record component.- Returns:
- the value of the
settingsSource
record component
-
minecraftAccount
Returns the value of theminecraftAccount
record component.- Returns:
- the value of the
minecraftAccount
record component
-
protocolVersion
public com.viaversion.viaversion.api.protocol.version.ProtocolVersion protocolVersion()Returns the value of theprotocolVersion
record component.- Returns:
- the value of the
protocolVersion
record component
-
serverAddress
public net.minecraft.client.multiplayer.resolver.ServerAddress serverAddress()Returns the value of theserverAddress
record component.- Returns:
- the value of the
serverAddress
record component
-
proxyData
Returns the value of theproxyData
record component.- Returns:
- the value of the
proxyData
record component
-
eventLoopGroup
public io.netty.channel.EventLoopGroup eventLoopGroup()Returns the value of theeventLoopGroup
record component.- Returns:
- the value of the
eventLoopGroup
record component
-