Class RemotePlayer.StaticImpl
java.lang.Object
net.ME1312.SubServers.Client.Common.Network.API.RemotePlayer.StaticImpl
- Enclosing class:
- RemotePlayer
RemotePlayer Static Implementation Class
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final RemotePlayerCreate an API representation of a Remote Playerprotected RemotePlayerconstruct(DataClient client, ObjectMap<String> raw) Create an API representation of a Remote Playerprotected voiddisconnect(SubDataClient client, UUID[] players, String reason, IntConsumer response) Disconnects this player from the networkprotected voidsendMessage(SubDataClient client, UUID[] players, String[] messages, IntConsumer response) Sends messages to this playerprotected voidsendRawMessage(SubDataClient client, UUID[] players, String[] messages, IntConsumer response) Sends JSON format messages to this playerprotected voidtransfer(SubDataClient client, UUID[] players, String server, IntConsumer response) Transfers this player to another server
-
Constructor Details
-
StaticImpl
protected StaticImpl()
-
-
Method Details
-
construct
Create an API representation of a Remote Player- Parameters:
raw- Raw representation of the Remote Player
-
construct
Create an API representation of a Remote Player- Parameters:
client- SubData connectionraw- Raw representation of the Remote Player
-
sendMessage
protected void sendMessage(SubDataClient client, UUID[] players, String[] messages, IntConsumer response) Sends messages to this player- Parameters:
client- SubData Connectionplayers- Players to send tomessages- Messages to sendresponse- Success Status
-
sendRawMessage
protected void sendRawMessage(SubDataClient client, UUID[] players, String[] messages, IntConsumer response) Sends JSON format messages to this player- Parameters:
client- SubData Connectionplayers- Players to send tomessages- Messages to sendresponse- Success Status
-
transfer
Transfers this player to another server- Parameters:
client- SubData Connectionplayers- Players to send toserver- Target serverresponse- Success Status
-
disconnect
protected void disconnect(SubDataClient client, UUID[] players, String reason, IntConsumer response) Disconnects this player from the network- Parameters:
client- SubData Connectionplayers- Players to send toreason- Disconnect Reasonresponse- Success status
-