Interface IPathNavigator

All Known Implementing Classes:
EntityPathNavigateDrone

public interface IPathNavigator
Some methods to control a drone-like object's movement. "Drone-like" means it could be a real Drone, or a Programmable Controller.

Retrieve an instance of this via IDrone.getPathNavigator().

  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Check if the drone has an active path currently set.
    boolean
    Check if the drone is firing up its teleportation device.
    boolean
    moveToEntity(net.minecraft.world.entity.Entity entity)
    Instruct the drone to move to the given entity.
    boolean
    moveToXYZ(double x, double y, double z)
    Instruct the drone to move to the given position.
  • Method Details

    • moveToXYZ

      boolean moveToXYZ(double x, double y, double z)
      Instruct the drone to move to the given position. Note that any currently-running program may subsequently override this. Note that if the drone cannot path to the given position, it may attempt to teleport.
      Parameters:
      x - target X position
      y - target Y position
      z - target Z position
      Returns:
      true if the drone is able to path to the given position, false otherwise
    • moveToEntity

      boolean moveToEntity(net.minecraft.world.entity.Entity entity)
      Instruct the drone to move to the given entity. Note that any currently-running program may subsequently override this. Note that if the drone cannot path to the given entity, it may attempt to teleport.
      Parameters:
      entity - the target entity
      Returns:
      true if the drone is able to path to the given entity, false otherwise
    • hasNoPath

      boolean hasNoPath()
      Check if the drone has an active path currently set.
      Returns:
      true if the drone has no path, or the current path is complete, false if there is still an active path
    • isGoingToTeleport

      boolean isGoingToTeleport()
      Check if the drone is firing up its teleportation device. Drones about to teleport will show some ender-style particles above themselves.
      Returns:
      true if the drone is about to teleport, false otherwise