public class NetworkHandlerAdapter extends Object implements NetworkHandler
| Constructor and Description |
|---|
NetworkHandlerAdapter() |
| Modifier and Type | Method and Description |
|---|---|
void |
onCloudNetworkUpdate(CloudNetwork cloudNetwork)
Called if the cloudnetwork object is updated
|
void |
onCustomChannelMessageReceive(String channel,
String message,
Document document)
Called if a custom channel message was received
|
void |
onCustomSubChannelMessageReceive(String channel,
String message,
Document document)
Called if a custom channel message was received
|
void |
onOfflinePlayerUpdate(OfflinePlayer offlinePlayer)
Called if a OfflinePlayer was updated
|
void |
onPlayerDisconnectNetwork(CloudPlayer cloudPlayer)
Called if a Player Disconnect to the network from cloudnet
|
void |
onPlayerDisconnectNetwork(UUID uniqueId)
Called if a Player Disconnect to the network from cloudnet
|
void |
onPlayerLoginNetwork(CloudPlayer cloudPlayer)
Called if a Player Login to the network from the cloudnet successfully
|
void |
onPlayerUpdate(CloudPlayer cloudPlayer)
Called if a Player was updated on network
|
void |
onProxyAdd(ProxyInfo proxyInfo)
Called if one proxy server was add into the network
|
void |
onProxyInfoUpdate(ProxyInfo proxyInfo)
Called if the proxyinfo from some proxy server was updated
|
void |
onProxyRemove(ProxyInfo proxyInfo)
Called if some proxy server is disconnected from network
|
void |
onServerAdd(ServerInfo serverInfo)
Called if a new server was add into the network
|
void |
onServerInfoUpdate(ServerInfo serverInfo)
Called if the ServerInfo is updated from a game server
|
void |
onServerRemove(ServerInfo serverInfo)
Called if a game server was removed
|
void |
onUpdateOnlineCount(int onlineCount)
Called if the player online count was changed
|
public void onServerAdd(ServerInfo serverInfo)
NetworkHandleronServerAdd in interface NetworkHandlerpublic void onServerInfoUpdate(ServerInfo serverInfo)
NetworkHandleronServerInfoUpdate in interface NetworkHandlerpublic void onServerRemove(ServerInfo serverInfo)
NetworkHandleronServerRemove in interface NetworkHandlerpublic void onProxyAdd(ProxyInfo proxyInfo)
NetworkHandleronProxyAdd in interface NetworkHandlerpublic void onProxyInfoUpdate(ProxyInfo proxyInfo)
NetworkHandleronProxyInfoUpdate in interface NetworkHandlerpublic void onProxyRemove(ProxyInfo proxyInfo)
NetworkHandleronProxyRemove in interface NetworkHandlerpublic void onCloudNetworkUpdate(CloudNetwork cloudNetwork)
NetworkHandleronCloudNetworkUpdate in interface NetworkHandlerpublic void onCustomChannelMessageReceive(String channel, String message, Document document)
NetworkHandleronCustomChannelMessageReceive in interface NetworkHandlerpublic void onCustomSubChannelMessageReceive(String channel, String message, Document document)
NetworkHandleronCustomSubChannelMessageReceive in interface NetworkHandlerpublic void onPlayerLoginNetwork(CloudPlayer cloudPlayer)
NetworkHandleronPlayerLoginNetwork in interface NetworkHandlerpublic void onPlayerDisconnectNetwork(CloudPlayer cloudPlayer)
NetworkHandleronPlayerDisconnectNetwork in interface NetworkHandlerpublic void onPlayerDisconnectNetwork(UUID uniqueId)
NetworkHandleronPlayerDisconnectNetwork in interface NetworkHandlerpublic void onPlayerUpdate(CloudPlayer cloudPlayer)
NetworkHandleronPlayerUpdate in interface NetworkHandlerpublic void onOfflinePlayerUpdate(OfflinePlayer offlinePlayer)
NetworkHandleronOfflinePlayerUpdate in interface NetworkHandlerpublic void onUpdateOnlineCount(int onlineCount)
NetworkHandleronUpdateOnlineCount in interface NetworkHandlerCopyright © 2020. All rights reserved.