Class CachedPlayer
java.lang.Object
net.ME1312.SubServers.Client.Common.Network.API.RemotePlayer
net.ME1312.SubServers.Velocity.Server.CachedPlayer
Cached RemotePlayer Data Class
-
Nested Class Summary
Nested classes/interfaces inherited from class net.ME1312.SubServers.Client.Common.Network.API.RemotePlayer
RemotePlayer.StaticImpl
-
Field Summary
Fields inherited from class net.ME1312.SubServers.Client.Common.Network.API.RemotePlayer
instance
-
Constructor Summary
ConstructorDescriptionCachedPlayer
(Player player) Convert a Local Player to a Cached Remote PlayerCachedPlayer
(ObjectMap<String> raw) Create a Cached Remote Player -
Method Summary
Methods inherited from class net.ME1312.SubServers.Client.Common.Network.API.RemotePlayer
broadcastMessage, broadcastMessage, broadcastMessage, broadcastRawMessage, broadcastRawMessage, broadcastRawMessage, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, equals, getAddress, getName, getProxy, getProxyName, getRaw, getServer, getServerName, getTimestamp, getUniqueId, refresh, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendRawMessage, sendRawMessage, sendRawMessage, sendRawMessage, sendRawMessage, sendRawMessage, transfer, transfer, transfer, transfer
-
Constructor Details
-
CachedPlayer
Convert a Local Player to a Cached Remote Player- Parameters:
player
- Local Player
-
CachedPlayer
Create a Cached Remote Player- Parameters:
raw
- Raw representation of the Remote Player
-
-
Method Details
-
translate
Convert a Local Player to a Cached Remote Player- Parameters:
player
- Local Player- Returns:
- Raw representation of the Remote Player
-
get
Get Local Player- Returns:
- Local Player (or null when not local)
-
getServer
Gets the server this player is connected to.- Returns:
- the server this player is connected to
-