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 TypeMethodDescriptionvoidcheckStuck(NAV navigator) Checks if the navigator is stuckintReturns the stuck level (0-9) indicating how long the entity is stuck and which stuck actions got usedvoid
-
Method Details
-
checkStuck
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:
-