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
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionEntity(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 AreagetArea()Gets the Area that the Entity occupies on the world graph.@Nullable CoordinateGets the singular Coordinate that the Entity occupies on the world graph.intgetId()Gets the id of the Entity.getScene()Returns the scene position.getType()Gets theEntity.Typeof this entityinthashCode()Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.botwithus.rs3.game.Locatable
distanceTo, isReachableMethods 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:
getIdin interfaceIdentifiable- Returns:
- the id of the Entity
-
getType
Gets theEntity.Typeof this entity- Returns:
- the type of this entity.
-
getCoordinate
Gets the singular Coordinate that the Entity occupies on the world graph.- Specified by:
getCoordinatein 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()
-