Class PlaceBlockTask

java.lang.Object
adris.altoclef.tasksystem.Task
adris.altoclef.tasks.construction.PlaceBlockTask
All Implemented Interfaces:
ITaskCanForce, ITaskRequiresGrounded
Direct Known Subclasses:
PlaceStructureBlockTask

public class PlaceBlockTask extends Task implements ITaskRequiresGrounded
Place a block type at a position
  • Constructor Details

    • PlaceBlockTask

      public PlaceBlockTask(net.minecraft.util.math.BlockPos target, net.minecraft.block.Block[] toPlace, boolean useThrowaways, boolean autoCollectStructureBlocks)
    • PlaceBlockTask

      public PlaceBlockTask(net.minecraft.util.math.BlockPos target, net.minecraft.block.Block... toPlace)
  • Method Details

    • getMaterialCount

      public static int getMaterialCount(AltoClef mod)
    • getMaterialTask

      public static Task getMaterialTask(int count)
    • 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
    • isEqual

      protected boolean isEqual(Task other)
      Specified by:
      isEqual in class Task
    • isFinished

      public boolean isFinished(AltoClef mod)
      Overrides:
      isFinished in class Task
    • toDebugString

      protected String toDebugString()
      Specified by:
      toDebugString in class Task