Interface LocatableEntity
-
- All Superinterfaces:
Interactable
,Locatable
,Modeled
,Renderable
,Validatable
- All Known Subinterfaces:
Actor
,GameObject
,GroundItem
,Npc
,Player
,Projectile
,SpotAnimation
- All Known Implementing Classes:
BoundingModel
,CompositeCacheModel
,CompositeModel
,Entity
,Model
,OSRSCacheModelEntity
,OSRSEntity
,OSRSGameObject
,OSRSGroundItem
,OSRSModel
,OSRSNpc
,OSRSPlayer
,OSRSProjectile
,OSRSSpotAnimation
,PredefinedEntity
,RemoteModel
,RSModel
,SummonedFamiliar
public interface LocatableEntity extends Locatable, Interactable, Validatable, Renderable, Modeled
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Area.Rectangular
getArea()
The coordinate area occupied on the world-graphArea.Rectangular
getArea(Coordinate regionBase)
Gets the area using the region base as the coordinate to offset from.default Coordinate.HighPrecision
getHighPrecisionPosition()
The exact coordinate position of this entity on the region-graph (accurate to hundreds of units per tile)Coordinate.HighPrecision
getHighPrecisionPosition(Coordinate regionBase)
Gets the high precision position using the region base as the coordinate to offset from.default @Nullable Coordinate
getPosition()
The exact coordinate position of this entity on the world-graph@Nullable Coordinate
getPosition(Coordinate regionBase)
Gets the position using the region base as the coordinate to offset from.-
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.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.util.Validatable
isValid
-
-
-
-
Method Detail
-
getPosition
@Nullable default @Nullable Coordinate getPosition()
Description copied from interface:Locatable
The exact coordinate position of this entity on the world-graph- Specified by:
getPosition
in interfaceLocatable
- Returns:
- The coordinate position, or null if unavailable
-
getHighPrecisionPosition
@Nullable default Coordinate.HighPrecision getHighPrecisionPosition()
Description copied from interface:Locatable
The exact coordinate position of this entity on the region-graph (accurate to hundreds of units per tile)- Specified by:
getHighPrecisionPosition
in interfaceLocatable
-
getArea
@Nullable default Area.Rectangular getArea()
Description copied from interface:Locatable
The coordinate area occupied on the world-graph
-
getPosition
@Nullable @Nullable Coordinate getPosition(Coordinate regionBase)
Gets the position using the region base as the coordinate to offset from. For optimization.- Parameters:
regionBase
- The Coordinate base of the loaded region
-
getHighPrecisionPosition
@Nullable Coordinate.HighPrecision getHighPrecisionPosition(Coordinate regionBase)
Gets the high precision position using the region base as the coordinate to offset from. For optimization.- Parameters:
regionBase
- The Coordinate base of the loaded region
-
getArea
@Nullable Area.Rectangular getArea(Coordinate regionBase)
Gets the area using the region base as the coordinate to offset from. For optimization.- Parameters:
regionBase
- The Coordinate base of the loaded region
-
-