Class RSNpc
- java.lang.Object
-
- com.osrsbots.orb.api.interactables.types.RSNpc
-
-
Constructor Summary
Constructors Constructor Description RSNpc(@NotNull net.runelite.api.NPC composition)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleandoAction(java.lang.String option)booleandoAction(net.runelite.api.MenuAction type, java.lang.String option)@Nullable java.lang.String[]getActions()intgetAnimation()short @Nullable []getColorToReplace()short @Nullable []getColorToReplaceWith()intgetCombatLevel()net.runelite.api.NPCCompositiongetComposition()int @Nullable []getConfigs()intgetHeightScale()intgetId()intgetIndex()int[]getModels()@Nullable java.lang.StringgetName()intgetSize()intgetWidthScale()booleaninteract(@Nullable net.runelite.api.MenuAction type, java.lang.String option)booleaninteract(java.lang.String option)booleanisDead()booleanisFighting(java.lang.String targetName)booleanisFollower()booleanisInCombat()booleanisInteractible()booleanisInteracting()booleanisInteractingWith(java.lang.String targetName)booleanisMinimapVisible()booleanisMoving()booleanisVisible()-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.osrsbots.orb.api.interactables.types.RSActor
distanceToPlayer, getAnimationFrame, getClickbox, getCurrentOrientation, getHealthRatio, getHealthScale, getIdlePoseAnimation, getIdleRotateLeft, getIdleRotateRight, getInteracting, getLocalLocation, getMinimapLocation, getModel, getOrientation, getOverheadCycle, getOverheadText, getPoseAnimation, getPoseAnimationFrame, getRunAnimation, getSpotAnims, getWalkAnimation, getWalkRotate180, getWalkRotateLeft, getWalkRotateRight, getWorldArea, getWorldLocation, getWorldView, hasSpotAnim, highlight, hover, isInteractable, isReachable, useWith
-
-
-
-
Method Detail
-
getComposition
public net.runelite.api.NPCComposition getComposition()
-
doAction
public boolean doAction(@Nonnull java.lang.String option)
-
doAction
public boolean doAction(@Nonnull net.runelite.api.MenuAction type, @Nonnull java.lang.String option)
-
interact
public boolean interact(@Nonnull java.lang.String option)
-
interact
public boolean interact(@Nullable @Nullable net.runelite.api.MenuAction type, @Nonnull java.lang.String option)
-
isInCombat
public boolean isInCombat()
-
isFighting
public boolean isFighting(@Nonnull java.lang.String targetName)
-
isInteractingWith
public boolean isInteractingWith(@Nonnull java.lang.String targetName)- Specified by:
isInteractingWithin interfaceRSActor
-
getAnimation
public int getAnimation()
- Specified by:
getAnimationin interfaceRSActor
-
isInteracting
public boolean isInteracting()
- Specified by:
isInteractingin interfaceRSActor
-
getIndex
public int getIndex()
-
getActions
@Nullable public @Nullable java.lang.String[] getActions()
-
getName
@Nullable public @Nullable java.lang.String getName()
-
getCombatLevel
public int getCombatLevel()
- Specified by:
getCombatLevelin interfaceRSActor
-
getId
public int getId()
-
isFollower
public boolean isFollower()
-
isInteractible
public boolean isInteractible()
-
isVisible
public boolean isVisible()
-
isMinimapVisible
public boolean isMinimapVisible()
-
getSize
public int getSize()
-
getWidthScale
public int getWidthScale()
-
getHeightScale
public int getHeightScale()
-
getModels
public int[] getModels()
-
getConfigs
public int @Nullable [] getConfigs()
-
getColorToReplace
public short @Nullable [] getColorToReplace()
-
getColorToReplaceWith
public short @Nullable [] getColorToReplaceWith()
-
-