Class SearchChunksExploreTask

java.lang.Object
adris.altoclef.tasksystem.Task
adris.altoclef.tasks.movement.SearchChunksExploreTask
Direct Known Subclasses:
SearchChunkForBlockTask, SearchWithinBiomeTask

public abstract class SearchChunksExploreTask extends Task
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 Details

    • SearchChunksExploreTask

      public SearchChunksExploreTask()
  • Method Details

    • getBestChunkOverride

      protected net.minecraft.util.math.ChunkPos getBestChunkOverride(AltoClef mod, List<net.minecraft.util.math.ChunkPos> chunks)
    • onStart

      protected void onStart(AltoClef mod)
      Specified by:
      onStart in class Task
    • onTick

      protected Task onTick(AltoClef mod)
      Specified by:
      onTick in class Task
    • onStop

      protected void onStop(AltoClef mod, Task interruptTask)
      Specified by:
      onStop in class Task
    • getWanderTask

      protected Task getWanderTask(AltoClef mod)
    • isChunkWithinSearchSpace

      protected abstract boolean isChunkWithinSearchSpace(AltoClef mod, net.minecraft.util.math.ChunkPos pos)
    • failedSearch

      public boolean failedSearch()
    • resetSearch

      public void resetSearch(AltoClef mod)