Class InitialHandler

java.lang.Object
net.md_5.bungee.protocol.packet.AbstractPacketHandler
net.md_5.bungee.netty.PacketHandler
net.md_5.bungee.connection.InitialHandler
All Implemented Interfaces:
net.md_5.bungee.api.connection.Connection, net.md_5.bungee.api.connection.PendingConnection

public class InitialHandler extends PacketHandler implements net.md_5.bungee.api.connection.PendingConnection
  • Constructor Details

    • InitialHandler

      public InitialHandler()
  • Method Details

    • connected

      public void connected(ChannelWrapper channel) throws Exception
      Overrides:
      connected in class PacketHandler
      Throws:
      Exception
    • exception

      public void exception(Throwable t) throws Exception
      Overrides:
      exception in class PacketHandler
      Throws:
      Exception
    • handle

      public void handle(net.md_5.bungee.protocol.packet.PacketF9BungeeMessage pluginMessage) throws Exception
      Overrides:
      handle in class net.md_5.bungee.protocol.packet.AbstractPacketHandler
      Throws:
      Exception
    • handle

      public void handle(net.md_5.bungee.protocol.packet.Packet1Login login) throws Exception
      Overrides:
      handle in class net.md_5.bungee.protocol.packet.AbstractPacketHandler
      Throws:
      Exception
    • handle

      public void handle(net.md_5.bungee.protocol.packet.Packet2Handshake handshake) throws Exception
      Overrides:
      handle in class net.md_5.bungee.protocol.packet.AbstractPacketHandler
      Throws:
      Exception
    • disconnect

      public void disconnect(String reason)
      Specified by:
      disconnect in interface net.md_5.bungee.api.connection.Connection
    • getName

      public String getName()
      Specified by:
      getName in interface net.md_5.bungee.api.connection.PendingConnection
    • getVirtualHost

      public InetSocketAddress getVirtualHost()
      Specified by:
      getVirtualHost in interface net.md_5.bungee.api.connection.PendingConnection
    • getAddress

      public InetSocketAddress getAddress()
      Specified by:
      getAddress in interface net.md_5.bungee.api.connection.Connection
    • unsafe

      public net.md_5.bungee.api.connection.Connection.Unsafe unsafe()
      Specified by:
      unsafe in interface net.md_5.bungee.api.connection.Connection
    • toString

      public String toString()
      Specified by:
      toString in class PacketHandler