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 classNPC.State
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.String[]getActions()java.lang.StringgetColoredName()RSNPCCompositiongetComposition()net.eternalclient.api.data.HeadIcongetHeadIcon()intgetHeight()intgetID()intgetIndex()intgetLevel()RSModelgetModel()java.lang.StringgetName()RSNPCgetNpc()OrientationgetOrientation()intgetOrientationId()EntityTypegetType()intgetWidth()voidsetComposition(RSNPCComposition composition)java.lang.StringtoString()-
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:
getOrientationin classEntity
-
getOrientationId
public int getOrientationId()
- Specified by:
getOrientationIdin classEntity
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-