Class RemotePlayer.StaticImpl

java.lang.Object
net.ME1312.SubServers.Client.Common.Network.API.RemotePlayer.StaticImpl
Enclosing class:
RemotePlayer

protected static class RemotePlayer.StaticImpl extends Object
RemotePlayer Static Implementation Class
  • Constructor Details

    • StaticImpl

      protected StaticImpl()
  • Method Details

    • construct

      protected final RemotePlayer construct(ObjectMap<String> raw)
      Create an API representation of a Remote Player
      Parameters:
      raw - Raw representation of the Remote Player
    • construct

      protected RemotePlayer construct(DataClient client, ObjectMap<String> raw)
      Create an API representation of a Remote Player
      Parameters:
      client - SubData connection
      raw - 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 Connection
      players - Players to send to
      messages - Messages to send
      response - Success Status
    • sendRawMessage

      protected void sendRawMessage(SubDataClient client, UUID[] players, String[] messages, IntConsumer response)
      Sends JSON format messages to this player
      Parameters:
      client - SubData Connection
      players - Players to send to
      messages - Messages to send
      response - Success Status
    • transfer

      protected void transfer(SubDataClient client, UUID[] players, String server, IntConsumer response)
      Transfers this player to another server
      Parameters:
      client - SubData Connection
      players - Players to send to
      server - Target server
      response - Success Status
    • disconnect

      protected void disconnect(SubDataClient client, UUID[] players, String reason, IntConsumer response)
      Disconnects this player from the network
      Parameters:
      client - SubData Connection
      players - Players to send to
      reason - Disconnect Reason
      response - Success status