- All Known Implementing Classes:
Area, Area.Circular, Area.Polygonal, Area.Rectangular, Area.Singular, Coordinate, Entity, GroundItem, HintArrow, LocalPlayer, Npc, PathingEntity, Player, Projectile, SceneObject, SpotAnimation
-
Method Summary
default boolean
default double
Gets the area that the entity occupies on the world graph
Returns the position of the entity on the world graph.
default boolean
default boolean
-
Method Details
-
getCoordinate
@Nullable
default @Nullable Coordinate getCoordinate()
Returns the position of the entity on the world graph.
- Returns:
- The position of the entity, or null if it cannot be determined or is no longer on the world graph.
-
getArea
@Nullable
@Nullable Area getArea()
Gets the area that the entity occupies on the world graph
- Returns:
- The area of the entity, or null if it cannot be determined or is no longer on the world graph.
-
distanceTo
default double distanceTo(@NotNull
@NotNull Locatable target)
-
isReachable
default boolean isReachable()
-
sharesAnAreaWith
default boolean sharesAnAreaWith(Locatable other)
-
blocksWalk
default boolean blocksWalk()