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
Fields -
Method Summary
Modifier and TypeMethodDescriptionintintGets the animation id associated with this pathing entity.intReturns the combat level of the PathingEntity.@NotNull CoordinateGets the singular Coordinate that the Entity occupies on the world graph.intGets the current health of the entity.floatGets the direction in which the player is facingfloatGets the second direction in which the player is facing@Nullable PathingEntity<?>Returns a non-null of Headbar objects.Returns a non-null of Hitmark objectsintgetId()Gets the id of the Entity.gets the spot animations related to this entityintReturns the maximum health of the entity.@NotNull StringgetName()Returns the name of the PathingEntity.@NotNull StringReturns the overhead text of the PathingEntity.int@NotNull ScenePositiongetScene()Returns the scene position.Gets the server coordinate of the entityintGets the players walking/running stance animationintbooleanbooleaninCombat()booleanisMoving()Returns whether the PathingEntity is currently moving or not.Methods inherited from class net.botwithus.rs3.game.scene.entities.characters.player.Player
getArea, getDefaultMapperMethods inherited from class net.botwithus.rs3.game.scene.entities.characters.PathingEntity
equals, getAnimationType, getFollowingIndex, getFollowingType, getOptions, hashCode, interact, interact, setAnimationId, validateMethods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.botwithus.rs3.game.annotations.Interactable
interact, interact, interactMethods inherited from interface net.botwithus.rs3.game.Locatable
distanceTo, isReachable
-
Field Details
-
LOCAL_PLAYER
-
-
Method Details
-
getId
public int getId()Description copied from class:EntityGets the id of the Entity.- Specified by:
getIdin interfaceIdentifiable- Overrides:
getIdin classEntity- Returns:
- the id of the Entity
-
getCombatLevel
public int getCombatLevel()Description copied from class:PathingEntityReturns the combat level of the PathingEntity.- Overrides:
getCombatLevelin classPathingEntity<PlayerAction>- Returns:
- The combat level of the PathingEntity.
-
getFollowing
- Overrides:
getFollowingin classPathingEntity<PlayerAction>
-
getName
Description copied from class:PathingEntityReturns the name of the PathingEntity.- Specified by:
getNamein interfaceOnymous- Overrides:
getNamein classPathingEntity<PlayerAction>- Returns:
- The name of the PathingEntity.
-
getOverheadText
Description copied from class:PathingEntityReturns the overhead text of the PathingEntity.- Overrides:
getOverheadTextin classPathingEntity<PlayerAction>- Returns:
- The overhead text of the PathingEntity.
-
isMoving
public boolean isMoving()Description copied from class:PathingEntityReturns whether the PathingEntity is currently moving or not.- Overrides:
isMovingin classPathingEntity<PlayerAction>- Returns:
- true if the PathingEntity is currently moving, false otherwise
-
getCoordinate
Description copied from class:EntityGets the singular Coordinate that the Entity occupies on the world graph.- Specified by:
getCoordinatein interfaceLocatable- Overrides:
getCoordinatein classEntity- Returns:
- the entities position as a Coordinate if available, otherwise null.
-
getScene
Description copied from class:EntityReturns the scene position. -
getHeadbars
Description copied from class:PathingEntityReturns a non-null of Headbar objects.- Overrides:
getHeadbarsin classPathingEntity<PlayerAction>- Returns:
- a non-null of Headbar objects.
-
getHitmarks
Description copied from class:PathingEntityReturns a non-null of Hitmark objects- Overrides:
getHitmarksin classPathingEntity<PlayerAction>- Returns:
- a non-null list of Hitmark objects
-
getAnimationId
public int getAnimationId()Description copied from class:PathingEntityGets the animation id associated with this pathing entity.- Overrides:
getAnimationIdin classPathingEntity<PlayerAction>- Returns:
- The animation id associated with this pathing entity.
-
hasTarget
public boolean hasTarget() -
getTarget
-
getDirection1
public float getDirection1()Description copied from class:PathingEntityGets the direction in which the player is facing- Overrides:
getDirection1in classPathingEntity<PlayerAction>- Returns:
- the direction represented as a float
-
getDirection2
public float getDirection2()Description copied from class:PathingEntityGets the second direction in which the player is facing- Overrides:
getDirection2in classPathingEntity<PlayerAction>- Returns:
- the second direction represented as a float
-
getStanceId
public int getStanceId()Description copied from class:PathingEntityGets the players walking/running stance animation- Overrides:
getStanceIdin classPathingEntity<PlayerAction>- Returns:
- the animation id
-
getCurrentHealth
public int getCurrentHealth()Description copied from class:PathingEntityGets the current health of the entity.- Overrides:
getCurrentHealthin classPathingEntity<PlayerAction>- Returns:
- The current health of the entity.
-
getMaximumHealth
public int getMaximumHealth()Description copied from class:PathingEntityReturns the maximum health of the entity.- Overrides:
getMaximumHealthin classPathingEntity<PlayerAction>- Returns:
- The maximum health of the entity.
-
getLinkedSpotAnims
Description copied from class:PathingEntitygets the spot animations related to this entity- Overrides:
getLinkedSpotAnimsin classPathingEntity<PlayerAction>- Returns:
- The spot animations
-
getServerCoordinate
Description copied from class:PathingEntityGets the server coordinate of the entity- Overrides:
getServerCoordinatein classPathingEntity<PlayerAction>- Returns:
- The server coordinate
-
getAdrenaline
public int getAdrenaline() -
getSummoningPoints
public int getSummoningPoints() -
getPrayerPoints
public int getPrayerPoints() -
inCombat
public boolean inCombat()
-