Class ClientNetworkSession

java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
io.netty.channel.SimpleChannelInboundHandler<Packet>
org.geysermc.mcprotocollib.network.session.NetworkSession
org.geysermc.mcprotocollib.network.session.ClientNetworkSession
All Implemented Interfaces:
io.netty.channel.ChannelHandler, io.netty.channel.ChannelInboundHandler, ClientSession, Session

public class ClientNetworkSession extends NetworkSession implements ClientSession
  • Field Details

  • Constructor Details

  • Method Details

    • connect

      public void connect(boolean wait)
      Description copied from interface: ClientSession
      Connects this session to its host and port.
      Specified by:
      connect in interface ClientSession
      Parameters:
      wait - Whether to wait for the connection to be established before returning.
    • getProxy

      public @Nullable ProxyInfo getProxy()
      Description copied from interface: ClientSession
      Get the proxy used by this session.
      Specified by:
      getProxy in interface ClientSession
      Returns:
      The proxy used by this session.
    • getCodecHelper

      public PacketCodecHelper getCodecHelper()
      Description copied from interface: Session
      Gets the session's PacketCodecHelper.
      Specified by:
      getCodecHelper in interface Session
      Returns:
      The session's packet codec helper.
    • getEventLoopGroup

      protected io.netty.channel.EventLoopGroup getEventLoopGroup()
    • getChannelFactory

      protected io.netty.channel.ChannelFactory<? extends io.netty.channel.Channel> getChannelFactory()
    • setOptions

      protected void setOptions(io.netty.bootstrap.Bootstrap bootstrap)
    • getChannelHandler

      protected io.netty.channel.ChannelHandler getChannelHandler()
    • newThreadFactory

      protected static ThreadFactory newThreadFactory()