public class InitialHandler extends PacketHandler implements PendingConnection
Connection.Unsafe
Constructor and Description |
---|
InitialHandler() |
Modifier and Type | Method and Description |
---|---|
void |
connected(ChannelWrapper channel) |
void |
disconnect(net.md_5.bungee.api.chat.BaseComponent... reason) |
void |
disconnect(net.md_5.bungee.api.chat.BaseComponent reason) |
void |
disconnect(String reason) |
void |
exception(Throwable t) |
InetSocketAddress |
getAddress() |
String |
getName() |
SocketAddress |
getSocketAddress() |
String |
getUUID() |
int |
getVersion() |
void |
handle(EncryptionResponse encryptResponse) |
void |
handle(Handshake handshake) |
void |
handle(LegacyHandshake legacyHandshake) |
void |
handle(LegacyPing ping) |
void |
handle(LoginPayloadResponse response) |
void |
handle(LoginRequest loginRequest) |
void |
handle(PacketWrapper packet) |
void |
handle(PingPacket ping) |
void |
handle(PluginMessage pluginMessage) |
void |
handle(StatusRequest statusRequest) |
boolean |
isConnected() |
void |
setOnlineMode(boolean onlineMode) |
void |
setUniqueId(UUID uuid) |
boolean |
shouldHandle(PacketWrapper packet) |
String |
toString() |
Connection.Unsafe |
unsafe() |
disconnected, writabilityChanged
handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getListener, getUniqueId, getVirtualHost, isLegacy, isOnlineMode
public boolean shouldHandle(PacketWrapper packet) throws Exception
shouldHandle
in class PacketHandler
Exception
public void connected(ChannelWrapper channel) throws Exception
connected
in class PacketHandler
Exception
public void exception(Throwable t) throws Exception
exception
in class PacketHandler
Exception
public void handle(PacketWrapper packet) throws Exception
handle
in class PacketHandler
Exception
public void handle(PluginMessage pluginMessage) throws Exception
handle
in class AbstractPacketHandler
Exception
public void handle(LegacyHandshake legacyHandshake) throws Exception
handle
in class AbstractPacketHandler
Exception
public void handle(LegacyPing ping) throws Exception
handle
in class AbstractPacketHandler
Exception
public void handle(StatusRequest statusRequest) throws Exception
handle
in class AbstractPacketHandler
Exception
public void handle(PingPacket ping) throws Exception
handle
in class AbstractPacketHandler
Exception
public void handle(Handshake handshake) throws Exception
handle
in class AbstractPacketHandler
Exception
public void handle(LoginRequest loginRequest) throws Exception
handle
in class AbstractPacketHandler
Exception
public void handle(EncryptionResponse encryptResponse) throws Exception
handle
in class AbstractPacketHandler
Exception
public void handle(LoginPayloadResponse response) throws Exception
handle
in class AbstractPacketHandler
Exception
public void disconnect(String reason)
disconnect
in interface Connection
public void disconnect(net.md_5.bungee.api.chat.BaseComponent... reason)
disconnect
in interface Connection
public void disconnect(net.md_5.bungee.api.chat.BaseComponent reason)
disconnect
in interface Connection
public String getName()
getName
in interface PendingConnection
public int getVersion()
getVersion
in interface PendingConnection
public InetSocketAddress getAddress()
getAddress
in interface Connection
public SocketAddress getSocketAddress()
getSocketAddress
in interface Connection
public Connection.Unsafe unsafe()
unsafe
in interface Connection
public void setOnlineMode(boolean onlineMode)
setOnlineMode
in interface PendingConnection
public void setUniqueId(UUID uuid)
setUniqueId
in interface PendingConnection
public String getUUID()
getUUID
in interface PendingConnection
public String toString()
toString
in class PacketHandler
public boolean isConnected()
isConnected
in interface Connection
Copyright © 2012–2020 SpigotMC. All rights reserved.