Class CachedPlayer
java.lang.Object
net.ME1312.SubServers.Client.Common.Network.API.RemotePlayer
net.ME1312.SubServers.Sync.Server.CachedPlayer
- All Implemented Interfaces:
RemotePlayer
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
(ProxiedPlayer player) Convert a Local Player to a Cached Remote PlayerCachedPlayer
(ObjectMap<String> raw) Create a Cached Remote Player -
Method Summary
Modifier and TypeMethodDescriptionstatic void
broadcastMessage
(net.md_5.bungee.api.chat.BaseComponent... message) Sends a message to all playersstatic void
broadcastMessage
(net.md_5.bungee.api.chat.BaseComponent[]... messages) Sends a message to all playersstatic void
broadcastMessage
(net.md_5.bungee.api.chat.BaseComponent[][] messages, IntConsumer response) Sends a message to all playersstatic void
broadcastMessage
(net.md_5.bungee.api.chat.BaseComponent[] message, IntConsumer response) Sends a message to all playersstatic void
broadcastMessage
(net.md_5.bungee.api.chat.BaseComponent message, IntConsumer response) Sends a message to all playersget()
Get Local PlayerGets the server this player is connected to.static void
sendMessage
(UUID[] players, net.md_5.bungee.api.chat.BaseComponent... message) Sends a message to these playersstatic void
sendMessage
(UUID[] players, net.md_5.bungee.api.chat.BaseComponent[]... messages) Sends a message to these playersstatic void
sendMessage
(UUID[] players, net.md_5.bungee.api.chat.BaseComponent[][] messages, IntConsumer response) Sends a message to these playersstatic void
sendMessage
(UUID[] players, net.md_5.bungee.api.chat.BaseComponent[] message, IntConsumer response) Sends a message to these playersstatic void
sendMessage
(UUID[] players, net.md_5.bungee.api.chat.BaseComponent message, IntConsumer response) Sends a message to these playersstatic void
transfer
(UUID[] players, ServerInfo server) Transfers these players to another serverstatic void
transfer
(UUID[] players, ServerInfo server, IntConsumer response) Transfers these players to another servertranslate
(ProxiedPlayer player) Convert a Local Player to a Cached Remote PlayerMethods 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
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.ME1312.SubServers.Bungee.Library.Compatibility.RemotePlayer
disconnect, disconnect, disconnect, disconnect, getAddress, getName, getProxyName, getServerName, getUniqueId, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, 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
Description copied from interface:RemotePlayer
Get Local Player- Specified by:
get
in interfaceRemotePlayer
- Returns:
- Local Player (or null when not local)
-
getServer
Description copied from interface:RemotePlayer
Gets the server this player is connected to.- Specified by:
getServer
in interfaceRemotePlayer
- Returns:
- the server this player is connected to
-
broadcastMessage
public static void broadcastMessage(net.md_5.bungee.api.chat.BaseComponent... message) Description copied from interface:RemotePlayer
Sends a message to all players- Parameters:
message
- Message to send
-
broadcastMessage
public static void broadcastMessage(net.md_5.bungee.api.chat.BaseComponent message, IntConsumer response) Description copied from interface:RemotePlayer
Sends a message to all players- Parameters:
message
- Message to sendresponse
- Success Status
-
broadcastMessage
public static void broadcastMessage(net.md_5.bungee.api.chat.BaseComponent[] message, IntConsumer response) Description copied from interface:RemotePlayer
Sends a message to all players- Parameters:
message
- Message to sendresponse
- Success Status
-
broadcastMessage
public static void broadcastMessage(net.md_5.bungee.api.chat.BaseComponent[]... messages) Description copied from interface:RemotePlayer
Sends a message to all players- Parameters:
messages
- Message to send
-
broadcastMessage
public static void broadcastMessage(net.md_5.bungee.api.chat.BaseComponent[][] messages, IntConsumer response) Description copied from interface:RemotePlayer
Sends a message to all players- Parameters:
messages
- Message to sendresponse
- Success Status
-
sendMessage
Description copied from interface:RemotePlayer
Sends a message to these players- Parameters:
players
- Players to selectmessage
- Message to send
-
sendMessage
public static void sendMessage(UUID[] players, net.md_5.bungee.api.chat.BaseComponent message, IntConsumer response) Description copied from interface:RemotePlayer
Sends a message to these players- Parameters:
players
- Players to selectmessage
- Message to sendresponse
- Success Status
-
sendMessage
public static void sendMessage(UUID[] players, net.md_5.bungee.api.chat.BaseComponent[] message, IntConsumer response) Description copied from interface:RemotePlayer
Sends a message to these players- Parameters:
players
- Players to selectmessage
- Message to sendresponse
- Success Status
-
sendMessage
public static void sendMessage(UUID[] players, net.md_5.bungee.api.chat.BaseComponent[]... messages) Description copied from interface:RemotePlayer
Sends a message to these players- Parameters:
players
- Players to selectmessages
- Message to send
-
sendMessage
public static void sendMessage(UUID[] players, net.md_5.bungee.api.chat.BaseComponent[][] messages, IntConsumer response) Description copied from interface:RemotePlayer
Sends a message to these players- Parameters:
players
- Players to selectmessages
- Message to sendresponse
- Success Status
-
transfer
Description copied from interface:RemotePlayer
Transfers these players to another server- Parameters:
players
- Players to selectserver
- Target server
-
transfer
Description copied from interface:RemotePlayer
Transfers these players to another server- Parameters:
players
- Players to selectserver
- Target serverresponse
- Success status
-