java.lang.Object
net.botwithus.rs3.game.scene.entities.Entity
- All Implemented Interfaces:
Identifiable
,Validatable
,Locatable
- Direct Known Subclasses:
GroundItem
,HintArrow
,PathingEntity
,Projectile
,SceneObject
,SpotAnimation
public abstract sealed class Entity
extends Object
implements Identifiable, Locatable, Validatable
permits Projectile, SpotAnimation, HintArrow, PathingEntity<T>, GroundItem, SceneObject
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
ConstructorDescriptionEntity
(int id, Entity.Type type, Area position, ScenePosition scene) Entity
(int id, Entity.Type type, Coordinate position, ScenePosition scene) -
Method Summary
Modifier and TypeMethodDescriptionboolean
@Nullable Area
getArea()
Gets the Area that the Entity occupies on the world graph.@Nullable Coordinate
Gets the singular Coordinate that the Entity occupies on the world graph.int
getId()
Gets the id of the Entity.getScene()
Returns the scene position.getType()
Gets theEntity.Type
of this entityint
hashCode()
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.botwithus.rs3.game.Locatable
distanceTo, isReachable
Methods inherited from interface net.botwithus.rs3.game.annotations.Validatable
validate
-
Field Details
-
type
-
-
Constructor Details
-
Entity
-
Entity
-
-
Method Details
-
getScene
Returns the scene position.- Returns:
- the scene position
-
getId
public int getId()Gets the id of the Entity.- Specified by:
getId
in interfaceIdentifiable
- Returns:
- the id of the Entity
-
getType
Gets theEntity.Type
of this entity- Returns:
- the type of this entity.
-
getCoordinate
Gets the singular Coordinate that the Entity occupies on the world graph.- Specified by:
getCoordinate
in interfaceLocatable
- Returns:
- the entities position as a Coordinate if available, otherwise null.
-
getArea
Gets the Area that the Entity occupies on the world graph. -
equals
-
hashCode
public int hashCode()
-