Navigator

interface Navigator

A navigator for pathfinding an entity to a target.

Functions

Link copied to clipboard
abstract fun hasReachedTarget(): Boolean

Whether the pathfinding entity has reached its target.

Link copied to clipboard
open fun pathTo(position: Position)
open fun pathTo(position: Vec3d)
open fun pathTo(position: Vec3i)

Requests that the entity be moved towards the given position.

abstract fun pathTo(x: Double, y: Double, z: Double)

Requests that the entity be moved towards the given x, y, and z coordinates.

Properties

Link copied to clipboard
abstract val entity: Mob

The entity that is navigating with this navigator.

Link copied to clipboard
abstract val target: Vec3d?

The current target position.