java.lang.Object
net.botwithus.rs3.game.scene.entities.Entity
net.botwithus.rs3.game.scene.entities.characters.PathingEntity<NPCAction>
net.botwithus.rs3.game.scene.entities.characters.npc.Npc
- All Implemented Interfaces:
Identifiable,Interactable<NPCAction>,Onymous,Validatable,Locatable
-
Nested Class Summary
Nested classes/interfaces inherited from class net.botwithus.rs3.game.scene.entities.Entity
Entity.Type -
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionNpc(int id, int typeId, Coordinate coordinate, String name, String overheadText, int health, int maxHealth, boolean isMoving, int followingIndex, int followingType, int combatLevel, int animationId, Headbar[] headbars, Hitmark[] hitmarks, ScenePosition scene, float dir1, float dir2, int stanceId, List<SpotAnimation> spotAnimations, int serverX, int serverY) -
Method Summary
Modifier and TypeMethodDescription@Nullable AreagetArea()Gets the Area that the Entity occupies on the world graph.@Nullable NpcTypeReturns a defaultFunctionthat throws anUnsupportedOperationExceptionwhen called.Gets the options available for this InteractableMethods inherited from class net.botwithus.rs3.game.scene.entities.characters.PathingEntity
equals, getAnimationId, getAnimationType, getCombatLevel, getCurrentHealth, getDirection1, getDirection2, getFollowing, getFollowingIndex, getFollowingType, getHeadbars, getHitmarks, getLinkedSpotAnims, getMaximumHealth, getName, getOverheadText, getServerCoordinate, getStanceId, hashCode, interact, interact, isMoving, setAnimationId, validateMethods inherited from class net.botwithus.rs3.game.scene.entities.Entity
getCoordinate, getId, getScene, getTypeMethods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.botwithus.rs3.game.annotations.Interactable
interact, interact, interact, interact, interactMethods inherited from interface net.botwithus.rs3.game.Locatable
distanceTo, isReachable
-
Constructor Details
-
Npc
public Npc(int id, int typeId, Coordinate coordinate, String name, String overheadText, int health, int maxHealth, boolean isMoving, int followingIndex, int followingType, int combatLevel, int animationId, Headbar[] headbars, Hitmark[] hitmarks, ScenePosition scene, float dir1, float dir2, int stanceId, List<SpotAnimation> spotAnimations, int serverX, int serverY)
-
-
Method Details
-
getArea
Description copied from class:EntityGets the Area that the Entity occupies on the world graph. -
getOptions
Description copied from interface:InteractableGets the options available for this Interactable- Specified by:
getOptionsin interfaceInteractable<NPCAction>- Overrides:
getOptionsin classPathingEntity<NPCAction>- Returns:
- a list of strings containing the options
-
getConfigType
-
getDefaultMapper
Description copied from interface:InteractableReturns a defaultFunctionthat throws anUnsupportedOperationExceptionwhen called.- Specified by:
getDefaultMapperin interfaceInteractable<NPCAction>- Returns:
- a default
Function
-