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

    Constructors
    Constructor
    Description
    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 a BotConnectionFactory record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    Indicates whether some other object is "equal to" this one.
    io.netty.channel.EventLoopGroup
    Returns the value of the eventLoopGroup record component.
    final int
    Returns a hash code value for this object.
    Returns the value of the instanceManager record component.
    Returns the value of the minecraftAccount 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 the protocolVersion record component.
    @Nullable SFProxy
    Returns the value of the proxyData record component.
    net.minecraft.client.multiplayer.resolver.ServerAddress
    Returns the value of the serverAddress record component.
    Returns the value of the settingsSource record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 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 a BotConnectionFactory record class.
      Parameters:
      instanceManager - the value for the instanceManager record component
      settingsSource - the value for the settingsSource record component
      minecraftAccount - the value for the minecraftAccount record component
      protocolVersion - the value for the protocolVersion record component
      serverAddress - the value for the serverAddress record component
      proxyData - the value for the proxyData record component
      eventLoopGroup - the value for the eventLoopGroup record component
  • Method Details

    • prepareConnection

      public BotConnection prepareConnection(boolean isStatusPing)
    • parseAddress

      public static net.minecraft.client.multiplayer.resolver.ServerAddress parseAddress(String address, com.viaversion.viaversion.api.protocol.version.ProtocolVersion protocolVersion)
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • instanceManager

      public InstanceManager instanceManager()
      Returns the value of the instanceManager record component.
      Returns:
      the value of the instanceManager record component
    • settingsSource

      public InstanceSettingsSource settingsSource()
      Returns the value of the settingsSource record component.
      Returns:
      the value of the settingsSource record component
    • minecraftAccount

      public MinecraftAccount minecraftAccount()
      Returns the value of the minecraftAccount record component.
      Returns:
      the value of the minecraftAccount record component
    • protocolVersion

      public com.viaversion.viaversion.api.protocol.version.ProtocolVersion protocolVersion()
      Returns the value of the protocolVersion record component.
      Returns:
      the value of the protocolVersion record component
    • serverAddress

      public net.minecraft.client.multiplayer.resolver.ServerAddress serverAddress()
      Returns the value of the serverAddress record component.
      Returns:
      the value of the serverAddress record component
    • proxyData

      public @Nullable SFProxy proxyData()
      Returns the value of the proxyData record component.
      Returns:
      the value of the proxyData record component
    • eventLoopGroup

      public io.netty.channel.EventLoopGroup eventLoopGroup()
      Returns the value of the eventLoopGroup record component.
      Returns:
      the value of the eventLoopGroup record component