Class NPC
- java.lang.Object
-
- net.eternalclient.api.wrappers.interactives.Entity
-
- net.eternalclient.api.wrappers.interactives.Character
-
- net.eternalclient.api.wrappers.interactives.NPC
-
- All Implemented Interfaces:
Identifiable
,Interactable
,Positionable
public class NPC extends Character
This class represents a non-player character (NPC). It provides methods to retrieve information such as the NPC's ID, name, level, model, actions, and more.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
NPC.State
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.lang.String[]
getActions()
java.lang.String
getColoredName()
RSNPCComposition
getComposition()
net.eternalclient.api.data.HeadIcon
getHeadIcon()
int
getHeight()
int
getID()
int
getIndex()
int
getLevel()
RSModel
getModel()
java.lang.String
getName()
RSNPC
getNpc()
Orientation
getOrientation()
int
getOrientationId()
EntityType
getType()
int
getWidth()
void
setComposition(RSNPCComposition composition)
java.lang.String
toString()
-
Methods inherited from class net.eternalclient.api.wrappers.interactives.Character
getActor, getAllTargetedByNPC, getAllTargetedByPlayer, getAnimation, getAnimationFrame, getHealthPercent, getLocalX, getLocalY, getMovementAnimation, getMovementCycle, getMovementFrame, getPlane, getPlayerCycles, getRegionX, getRegionY, getRunAnimation, getSceneX, getSceneY, getSpotAnimation, getSpotAnimationCycle, getSpotAnimationFrame, getSpotAnimationHeight, getStandAnimation, getTarget, getTargetedBy, getTargetedByNPC, getTargetedByPlayer, getTargetIndex, getWalkAnimation, getWorldView, getWorldX, getWorldY, isAnimating, isDead, isHealthBarVisible, isInCombat, isInteractingWith, isInteractingWith, isMoving, isStandingStill, setActor
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.eternalclient.api.interfaces.Identifiable
containsName, hasID, hasName
-
Methods inherited from interface net.eternalclient.api.interfaces.Interactable
containsAction, getClickBox, getConvexHull, getConvexHullOnScreen, getInteractID, getInteractPoint, getInteractX, getInteractY, getPolygons, getPolygonsOnScreen, hasAction, hasAction, interact, interact, interact, isOnScreen
-
Methods inherited from interface net.eternalclient.api.interfaces.Positionable
canReach, canReach, canReachSurrounding, canReachSurrounding, derive, derive, derive, distance, distance, distanceTo, distanceTo2D, distanceTo2DHypotenuse, distanceToHypotenuse, distanceToPath, draw, drawMinimapDot, drawText, getCanvasTextLocation, getCanvasTilePoly, GetChunkRotation, getLocalTile, getMinimapPoint, getMovementFlags, getRectArea, getRegionId, getRegionTile, getSceneTile, getSurroundingArea, getWalkableTile, getWorldTile, hasLineOfSightTo, hasLineOfSightTo, inLineOfSight, isInArea, isInArea, isInArea2D, isInArea2D, isInMeleeDistance, isInScene, isUnderRoof, locatedAt, pathTo, walkingDistance
-
-
-
-
Constructor Detail
-
NPC
public NPC(RSNPC npc)
-
-
Method Detail
-
getComposition
public RSNPCComposition getComposition()
-
setComposition
public void setComposition(RSNPCComposition composition)
-
getNpc
public RSNPC getNpc()
-
getID
public int getID()
-
getName
public java.lang.String getName()
-
getColoredName
public java.lang.String getColoredName()
-
getType
public EntityType getType()
-
getActions
public java.lang.String[] getActions()
-
getWidth
public int getWidth()
-
getHeight
public int getHeight()
-
getHeadIcon
public net.eternalclient.api.data.HeadIcon getHeadIcon()
-
getLevel
public int getLevel()
-
getOrientation
public Orientation getOrientation()
- Specified by:
getOrientation
in classEntity
-
getOrientationId
public int getOrientationId()
- Specified by:
getOrientationId
in classEntity
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-