Interface PathNavigation

Object used to build path and move mobs to the required coordinates using specified parameters. All the setters return current Entity.PathNavigation instance to be able to produce chained calls.

2.0.3b33

interface PathNavigation {
    canOpenDoors(): boolean;
    canPassDoors(): boolean;
    getAvoidDamageBlocks(): boolean;
    getAvoidPortals(): boolean;
    getAvoidSun(): boolean;
    getAvoidWater(): boolean;
    getCanBreach(): boolean;
    getCanFloat(): boolean;
    getCanJump(): boolean;
    getCanOpenIronDoors(): boolean;
    getCanPathOverLava(): boolean;
    getCanSink(): boolean;
    getCanWalkInLava(): boolean;
    getHasEndPathRadius(): boolean;
    getSpeed(): number;
    getTerminationThreshold(): number;
    getTerminationThreshold(threshold: number): PathNavigation;
    getTickTimeout(): number;
    isAmphibious(): boolean;
    isRiverFollowing(): boolean;
    isStuck(ticks: number): boolean;
    moveToCoords(x: number, y: number, z: number, speed: number): PathNavigation;
    moveToEntity(entity: number, speed: number): PathNavigation;
    setAvoidDamageBlocks(avoid: boolean): PathNavigation;
    setAvoidPortals(avoid: boolean): PathNavigation;
    setAvoidSun(avoid: boolean): PathNavigation;
    setAvoidWater(avoid: boolean): PathNavigation;
    setCanBreach(can: boolean): PathNavigation;
    setCanFloat(can: boolean): PathNavigation;
    setCanJump(can: boolean): PathNavigation;
    setCanOpenDoors(can: boolean): PathNavigation;
    setCanOpenIronDoors(can: boolean): PathNavigation;
    setCanPassDoors(can: boolean): PathNavigation;
    setCanPathOverLava(can: boolean): PathNavigation;
    setCanSink(can: boolean): PathNavigation;
    setCanWalkInLava(can: boolean): PathNavigation;
    setEndPathRadius(radius: number): PathNavigation;
    setHasEndPathRadius(has: boolean): PathNavigation;
    setIsAmphibious(amphibious: boolean): PathNavigation;
    setIsRiverFollowing(follow: boolean): PathNavigation;
    setResultFunction(callback: PathNavigationResultFunction): PathNavigation;
    setSpeed(speed: number): PathNavigation;
    setTickTimeout(ticks: number): PathNavigation;
}

Methods

  • Returns boolean

    Whether the entity can open doors.

  • Returns boolean

    Whether the entity can pass doors.

  • Returns boolean

    2.2.1b93

  • Returns boolean

    Whether the entity avoids water.

  • Returns boolean

    Whether entity can jump.

  • Returns boolean

    2.2.1b93

  • Returns boolean

    2.2.1b93

  • Returns boolean

    2.2.1b93

  • Returns boolean

    2.2.1b93

  • Returns number

    Entity's speed value.

  • Returns number

    2.2.1b93

  • Parameters

    • ticks: number

    Returns boolean

    2.2.1b93

  • Builds path to the specified entity. Note that current coordinates of entity are used, and are not updated.

    Parameters

    • entity: number
    • speed: number

      entity movement speed

    Returns PathNavigation

Copyright © 2024 Nernar. Copyright © 2020 #mineprogramming. Built with ❤ and TypeDoc.