Interface IMinecoloniesNavigator
- All Known Implementing Classes:
MinecoloniesAdvancedPathNavigate
public interface IMinecoloniesNavigator
Describes the Navigator used by minecolonies entities
-
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.entity.MobGets the entity of the navigatorReturns the pathresult holding the current pathing task and resultnet.minecraft.core.BlockPosGets the safe destination the entity wants to travel toReturns the stuck handler used by the navigatorvoidrecalc()Indirectly triggers a recalulation, by marking the navigator as done<T extends AbstractPathJob>
@Nullable PathResult<T>setPathJob(@NotNull AbstractPathJob job, net.minecraft.core.BlockPos dest, double speedFactor, boolean safeDestination) Sets a new pathjob to executevoidsetPauseTicks(int pauseTicks) Pauses the navigator for X ticks from starting any new pathing tasksvoidUpdates the saved node references
-
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 rundest-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
IStuckHandler<MinecoloniesAdvancedPathNavigate> getStuckHandler()Returns the stuck handler used by the navigator- Returns:
-
updateNodeReferences
void updateNodeReferences()Updates the saved node references
-