Class LocalPlayer


  • public class LocalPlayer
    extends java.lang.Object
    A class representing the local player in the game, providing various methods to access player information and actions.
    • Constructor Summary

      Constructors 
      Constructor Description
      LocalPlayer()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Player get()
      Returns the local player.
      static RSPlayer getRSPlayer()
      Returns the RSPlayer object.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LocalPlayer

        public LocalPlayer()
    • Method Detail

      • get

        public static Player get()
        Returns the local player. If the local player does not exist or is different from the current player, a new player is created.
        Returns:
        the local player
      • getRSPlayer

        public static RSPlayer getRSPlayer()
        Returns the RSPlayer object.
        Returns:
        The RSPlayer object.