Interface IMinecoloniesNavigator

All Known Implementing Classes:
MinecoloniesAdvancedPathNavigate

public interface IMinecoloniesNavigator
Describes the Navigator used by minecolonies entities
  • Method Details

    • setPathJob

      @Nullable <T extends AbstractPathJob> @Nullable PathResult<T> setPathJob(@NotNull @NotNull AbstractPathJob job, net.minecraft.core.BlockPos dest, double speedFactor, boolean safeDestination)
      Sets a new pathjob to execute
      Type Parameters:
      T -
      Parameters:
      job - to run
      dest -
      speedFactor -
      safeDestination -
      Returns:
      null or new pathresult
    • recalc

      void recalc()
      Indirectly triggers a recalulation, by marking the navigator as done
    • getPathResult

      PathResult getPathResult()
      Returns the pathresult holding the current pathing task and result
      Returns:
    • getSafeDestination

      net.minecraft.core.BlockPos getSafeDestination()
      Gets the safe destination the entity wants to travel to
      Returns:
    • getOurEntity

      net.minecraft.world.entity.Mob getOurEntity()
      Gets the entity of the navigator
      Returns:
    • setPauseTicks

      void setPauseTicks(int pauseTicks)
      Pauses the navigator for X ticks from starting any new pathing tasks
      Parameters:
      pauseTicks -
    • getStuckHandler

      Returns the stuck handler used by the navigator
      Returns:
    • updateNodeReferences

      void updateNodeReferences()
      Updates the saved node references