Interface Npc
-
- All Superinterfaces:
Actor
,Animable
,Identifiable
,Interactable
,Locatable
,LocatableEntity
,Modeled
,Onymous
,Renderable
,Rotatable
,Validatable
- All Known Implementing Classes:
OSRSNpc
,SummonedFamiliar
public interface Npc extends Actor, Identifiable
A non-player character
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default @Nullable NpcDefinition
getActiveDefinition()
Returns the active 'local state' of the NpcDefinition if one is present, otherwise returns the base NpcDefinition.@Nullable NpcDefinition
getDefinition()
A definition containing a vast collection of data regarding this npcs creation on the world-graphint
getLevel()
Gets the npcs current level-
Methods inherited from interface com.runemate.game.api.hybrid.entities.Actor
getAnimationFrame, getDialogue, getHealthGauge, getHitsplats, getOverheadIcons, getPath, getServerPosition, getSpotAnimationIds, getStanceFrame, getStanceId, getTarget, isMoving
-
Methods inherited from interface com.runemate.game.api.hybrid.entities.details.Animable
getAnimationId
-
Methods inherited from interface com.runemate.game.api.hybrid.entities.details.Identifiable
getId
-
Methods inherited from interface com.runemate.game.api.hybrid.entities.details.Interactable
click, contains, getInteractionPoint, getInteractionPoint, getVisibility, hasDynamicBounds, hover, interact, interact, interact, interact, interact, interact, isHovered, isVisible
-
Methods inherited from interface com.runemate.game.api.hybrid.entities.details.Locatable
distanceTo, distanceTo, getLocalPosition
-
Methods inherited from interface com.runemate.game.api.hybrid.entities.LocatableEntity
getArea, getArea, getHighPrecisionPosition, getHighPrecisionPosition, getPosition, getPosition
-
Methods inherited from interface com.runemate.game.api.hybrid.entities.details.Modeled
getModel, setBackupModel, setBackupModel, setBackupModel, setForcedModel, setForcedModel, setForcedModel
-
Methods inherited from interface com.runemate.game.api.hybrid.entities.details.Renderable
render, render
-
Methods inherited from interface com.runemate.game.api.hybrid.entities.details.Rotatable
getHighPrecisionOrientation, getOrientationAsAngle, isFacing
-
Methods inherited from interface com.runemate.game.api.hybrid.util.Validatable
isValid
-
-
-
-
Method Detail
-
getLevel
int getLevel()
Gets the npcs current level- Returns:
- the npcs level, otherwise -1
-
getDefinition
@Nullable @Nullable NpcDefinition getDefinition()
A definition containing a vast collection of data regarding this npcs creation on the world-graph- Returns:
- The definition, otherwise null
-
getActiveDefinition
@Nullable default @Nullable NpcDefinition getActiveDefinition()
Returns the active 'local state' of the NpcDefinition if one is present, otherwise returns the base NpcDefinition.
-
-