Class CachedPlayer

java.lang.Object
net.ME1312.SubServers.Client.Common.Network.API.RemotePlayer
net.ME1312.SubServers.Velocity.Server.CachedPlayer

public class CachedPlayer extends RemotePlayer
Cached RemotePlayer Data Class
  • Constructor Details

    • CachedPlayer

      public CachedPlayer(Player player)
      Convert a Local Player to a Cached Remote Player
      Parameters:
      player - Local Player
    • CachedPlayer

      public CachedPlayer(ObjectMap<String> raw)
      Create a Cached Remote Player
      Parameters:
      raw - Raw representation of the Remote Player
  • Method Details

    • translate

      public static ObjectMap<String> translate(Player player)
      Convert a Local Player to a Cached Remote Player
      Parameters:
      player - Local Player
      Returns:
      Raw representation of the Remote Player
    • get

      public Player get()
      Get Local Player
      Returns:
      Local Player (or null when not local)
    • getServer

      public ServerInfo getServer()
      Gets the server this player is connected to.
      Returns:
      the server this player is connected to