Package net.storm.api.domain.actors
Interface IPlayer
- All Superinterfaces:
net.runelite.api.Actor,net.runelite.api.CameraFocusableEntity,IActor,Identifiable,Interactable,Locatable,Nameable,net.runelite.api.Node,net.runelite.api.Player,net.runelite.api.Renderable,RuneLiteWrapper<net.runelite.api.Actor>,SceneEntity
Represents a player character in the game world.
Players are actors controlled by users. This interface extends IActor
and provides player-specific functionality.
Example usage:
IPlayers players = Static.getPlayers();
IPlayer local = players.getLocal();
String myName = local.getName();
int myCombatLevel = local.getCombatLevel();
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidupdate(net.runelite.api.Player player) Updates this player's state with data from a RuneLite player object.Methods inherited from interface net.runelite.api.Actor
clearSpotAnims, createSpotAnim, getAnimation, getAnimationFrame, getAnimationHeightOffset, getCanvasImageLocation, getCanvasSpriteLocation, getCanvasTextLocation, getCanvasTilePoly, getConvexHull, getCurrentOrientation, getGraphic, getGraphicHeight, getHealthRatio, getHealthScale, getIdlePoseAnimation, getIdleRotateLeft, getIdleRotateRight, getLocalLocation, getLogicalHeight, getMinimapLocation, getName, getOrientation, getOverheadCycle, getOverheadText, getPoseAnimation, getPoseAnimationFrame, getRunAnimation, getSpotAnimFrame, getSpotAnims, getWalkAnimation, getWalkRotate180, getWalkRotateLeft, getWalkRotateRight, getWorldArea, getWorldLocation, getWorldView, hasSpotAnim, isDead, isInteracting, removeSpotAnim, setActionFrame, setAnimation, setAnimationFrame, setDead, setGraphic, setGraphicHeight, setIdlePoseAnimation, setIdleRotateLeft, setIdleRotateRight, setOverheadCycle, setOverheadText, setPoseAnimation, setPoseAnimationFrame, setRunAnimation, setSpotAnimFrame, setWalkAnimation, setWalkRotate180, setWalkRotateLeft, setWalkRotateRightMethods inherited from interface net.runelite.api.CameraFocusableEntity
getCameraFocusMethods inherited from interface net.storm.api.domain.actors.IActor
attack, getIndex, getInteracting, getSpotAnimationCount, getTarget, isAnimating, isHealthBarVisible, isIdle, isMovingMethods inherited from interface net.storm.api.domain.Identifiable
getIdMethods inherited from interface net.storm.api.domain.Interactable
generateMenu, generateMenu, generateMenu, generateMenu, generateMenu, generateMenu, generateMenu, generateMenu, generateMenu, generateMenu, getActionIndex, getActions, getClickPoint, hasAction, hasAction, hasAction, interact, interact, interact, interact, interact, interact, interact, interact, interact, interact, interact, interact, interact, interact, interact, interact, isInteractable, isInteractable, isInteractableMethods inherited from interface net.storm.api.domain.Locatable
distanceTo, distanceTo, distanceTo2DHypotenuse, distanceToHypotenuse, getLocalLocation, getPlane, getWorldLocation, getWorldX, getWorldYMethods inherited from interface net.runelite.api.Node
getHash, getNext, getPreviousMethods inherited from interface net.runelite.api.Player
getCombatLevel, getFootprintSize, getId, getOverheadIcon, getPlayerComposition, getSkullIcon, getTeam, isClanMember, isFriend, isFriendsChatMember, setSkullIconMethods inherited from interface net.runelite.api.Renderable
getModel, getModelHeight, setModelHeightMethods inherited from interface net.storm.api.domain.RuneLiteWrapper
getWrappedMethods inherited from interface net.storm.api.domain.SceneEntity
getWorldView
-
Method Details
-
update
void update(net.runelite.api.Player player) Updates this player's state with data from a RuneLite player object.This is an internal method used to sync player data.
- Parameters:
player- the RuneLite player object
-