Interface IStuckHandler<NAV extends net.minecraft.world.entity.ai.navigation.PathNavigation & IMinecoloniesNavigator>

All Known Implementing Classes:
PathingStuckHandler

public interface IStuckHandler<NAV extends net.minecraft.world.entity.ai.navigation.PathNavigation & IMinecoloniesNavigator>
Stuck handler for pathing, gets called to check/deal with stuck status
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    checkStuck(NAV navigator)
    Checks if the navigator is stuck
    int
    Returns the stuck level (0-9) indicating how long the entity is stuck and which stuck actions got used
    void
     
  • Method Details

    • checkStuck

      void checkStuck(NAV navigator)
      Checks if the navigator is stuck
      Parameters:
      navigator - navigator to check
    • resetGlobalStuckTimers

      void resetGlobalStuckTimers()
    • getStuckLevel

      int getStuckLevel()
      Returns the stuck level (0-9) indicating how long the entity is stuck and which stuck actions got used
      Returns: