Package adris.altoclef.tasks.movement
Class SearchChunksExploreTask
java.lang.Object
adris.altoclef.tasksystem.Task
adris.altoclef.tasks.movement.SearchChunksExploreTask
- Direct Known Subclasses:
SearchChunkForBlockTask
,SearchWithinBiomeTask
Searches/explores a continuous "blob" of chunks, attempting to load in ALL nearby chunks that are part of this "blob"
You must define a function that determines whether a chunk is to be included within this "blob".
For instance, if you wish to explore an entire desert, this function will return whether a chunk is a desert chunk.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
protected net.minecraft.util.math.ChunkPos
getBestChunkOverride
(AltoClef mod, List<net.minecraft.util.math.ChunkPos> chunks) protected Task
getWanderTask
(AltoClef mod) protected abstract boolean
isChunkWithinSearchSpace
(AltoClef mod, net.minecraft.util.math.ChunkPos pos) protected void
protected void
protected Task
void
resetSearch
(AltoClef mod) Methods inherited from class adris.altoclef.tasksystem.Task
equals, interrupt, isActive, isEqual, isFinished, reset, setDebugState, stop, stop, stopped, thisOrChildAreTimedOut, thisOrChildSatisfies, tick, toDebugString, toString
-
Constructor Details
-
SearchChunksExploreTask
public SearchChunksExploreTask()
-
-
Method Details
-
getBestChunkOverride
-
onStart
-
onTick
-
onStop
-
getWanderTask
-
isChunkWithinSearchSpace
protected abstract boolean isChunkWithinSearchSpace(AltoClef mod, net.minecraft.util.math.ChunkPos pos) -
failedSearch
public boolean failedSearch() -
resetSearch
-