Module net.botwithus.rs3
Class LocalPlayer
java.lang.Object
net.botwithus.rs3.game.scene.entities.Entity
net.botwithus.rs3.game.scene.entities.characters.PathingEntity<PlayerAction>
net.botwithus.rs3.game.scene.entities.characters.player.Player
net.botwithus.rs3.game.scene.entities.characters.player.LocalPlayer
- All Implemented Interfaces:
Identifiable
,Interactable<PlayerAction>
,Onymous
,Validatable
,Locatable
-
Nested Class Summary
Nested classes/interfaces inherited from class net.botwithus.rs3.game.scene.entities.Entity
Entity.Type
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
int
Gets the animation id associated with this pathing entity.int
Returns the combat level of the PathingEntity.@NotNull Coordinate
Gets the singular Coordinate that the Entity occupies on the world graph.int
Gets the current health of the entity.float
Gets the direction in which the player is facingfloat
Gets the second direction in which the player is facing@Nullable PathingEntity<?>
Returns a non-null of Headbar objects.Returns a non-null of Hitmark objectsint
getId()
Gets the id of the Entity.gets the spot animations related to this entityint
Returns the maximum health of the entity.@NotNull String
getName()
Returns the name of the PathingEntity.@NotNull String
Returns the overhead text of the PathingEntity.int
@NotNull ScenePosition
getScene()
Returns the scene position.Gets the server coordinate of the entityint
Gets the players walking/running stance animationint
boolean
boolean
inCombat()
boolean
isMoving()
Returns whether the PathingEntity is currently moving or not.Methods inherited from class net.botwithus.rs3.game.scene.entities.characters.player.Player
getArea, getDefaultMapper
Methods inherited from class net.botwithus.rs3.game.scene.entities.characters.PathingEntity
equals, getAnimationType, getFollowingIndex, getFollowingType, getOptions, hashCode, interact, interact, setAnimationId, validate
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.botwithus.rs3.game.annotations.Interactable
interact, interact, interact
Methods inherited from interface net.botwithus.rs3.game.Locatable
distanceTo, isReachable
-
Field Details
-
LOCAL_PLAYER
-
-
Method Details
-
getId
public int getId()Description copied from class:Entity
Gets the id of the Entity.- Specified by:
getId
in interfaceIdentifiable
- Overrides:
getId
in classEntity
- Returns:
- the id of the Entity
-
getCombatLevel
public int getCombatLevel()Description copied from class:PathingEntity
Returns the combat level of the PathingEntity.- Overrides:
getCombatLevel
in classPathingEntity<PlayerAction>
- Returns:
- The combat level of the PathingEntity.
-
getFollowing
- Overrides:
getFollowing
in classPathingEntity<PlayerAction>
-
getName
Description copied from class:PathingEntity
Returns the name of the PathingEntity.- Specified by:
getName
in interfaceOnymous
- Overrides:
getName
in classPathingEntity<PlayerAction>
- Returns:
- The name of the PathingEntity.
-
getOverheadText
Description copied from class:PathingEntity
Returns the overhead text of the PathingEntity.- Overrides:
getOverheadText
in classPathingEntity<PlayerAction>
- Returns:
- The overhead text of the PathingEntity.
-
isMoving
public boolean isMoving()Description copied from class:PathingEntity
Returns whether the PathingEntity is currently moving or not.- Overrides:
isMoving
in classPathingEntity<PlayerAction>
- Returns:
- true if the PathingEntity is currently moving, false otherwise
-
getCoordinate
Description copied from class:Entity
Gets the singular Coordinate that the Entity occupies on the world graph.- Specified by:
getCoordinate
in interfaceLocatable
- Overrides:
getCoordinate
in classEntity
- Returns:
- the entities position as a Coordinate if available, otherwise null.
-
getScene
Description copied from class:Entity
Returns the scene position. -
getHeadbars
Description copied from class:PathingEntity
Returns a non-null of Headbar objects.- Overrides:
getHeadbars
in classPathingEntity<PlayerAction>
- Returns:
- a non-null of Headbar objects.
-
getHitmarks
Description copied from class:PathingEntity
Returns a non-null of Hitmark objects- Overrides:
getHitmarks
in classPathingEntity<PlayerAction>
- Returns:
- a non-null list of Hitmark objects
-
getAnimationId
public int getAnimationId()Description copied from class:PathingEntity
Gets the animation id associated with this pathing entity.- Overrides:
getAnimationId
in classPathingEntity<PlayerAction>
- Returns:
- The animation id associated with this pathing entity.
-
hasTarget
public boolean hasTarget() -
getTarget
-
getDirection1
public float getDirection1()Description copied from class:PathingEntity
Gets the direction in which the player is facing- Overrides:
getDirection1
in classPathingEntity<PlayerAction>
- Returns:
- the direction represented as a float
-
getDirection2
public float getDirection2()Description copied from class:PathingEntity
Gets the second direction in which the player is facing- Overrides:
getDirection2
in classPathingEntity<PlayerAction>
- Returns:
- the second direction represented as a float
-
getStanceId
public int getStanceId()Description copied from class:PathingEntity
Gets the players walking/running stance animation- Overrides:
getStanceId
in classPathingEntity<PlayerAction>
- Returns:
- the animation id
-
getCurrentHealth
public int getCurrentHealth()Description copied from class:PathingEntity
Gets the current health of the entity.- Overrides:
getCurrentHealth
in classPathingEntity<PlayerAction>
- Returns:
- The current health of the entity.
-
getMaximumHealth
public int getMaximumHealth()Description copied from class:PathingEntity
Returns the maximum health of the entity.- Overrides:
getMaximumHealth
in classPathingEntity<PlayerAction>
- Returns:
- The maximum health of the entity.
-
getLinkedSpotAnims
Description copied from class:PathingEntity
gets the spot animations related to this entity- Overrides:
getLinkedSpotAnims
in classPathingEntity<PlayerAction>
- Returns:
- The spot animations
-
getServerCoordinate
Description copied from class:PathingEntity
Gets the server coordinate of the entity- Overrides:
getServerCoordinate
in classPathingEntity<PlayerAction>
- Returns:
- The server coordinate
-
getAdrenaline
public int getAdrenaline() -
getSummoningPoints
public int getSummoningPoints() -
getPrayerPoints
public int getPrayerPoints() -
inCombat
public boolean inCombat()
-