Class CraftWithMatchingMaterialsTask

java.lang.Object
adris.altoclef.tasksystem.Task
adris.altoclef.tasks.ResourceTask
adris.altoclef.tasks.resources.CraftWithMatchingMaterialsTask
All Implemented Interfaces:
ITaskCanForce
Direct Known Subclasses:
CraftWithMatchingPlanksTask, CraftWithMatchingWoolTask

public abstract class CraftWithMatchingMaterialsTask extends ResourceTask
  • Constructor Details

    • CraftWithMatchingMaterialsTask

      public CraftWithMatchingMaterialsTask(ItemTarget target, CraftingRecipe recipe, boolean[] sameMask)
  • Method Details

    • onResourceStart

      protected void onResourceStart(AltoClef mod)
      Specified by:
      onResourceStart in class ResourceTask
    • onResourceTick

      protected Task onResourceTick(AltoClef mod)
      Specified by:
      onResourceTick in class ResourceTask
    • onResourceStop

      protected void onResourceStop(AltoClef mod, Task interruptTask)
      Specified by:
      onResourceStop in class ResourceTask
    • getAllSameResourcesTask

      protected Task getAllSameResourcesTask(AltoClef mod)
    • getExpectedTotalCountOfSameItem

      protected int getExpectedTotalCountOfSameItem(AltoClef mod, net.minecraft.item.Item sameItem)
    • getSpecificSameResourceTask

      protected Task getSpecificSameResourceTask(AltoClef mod, net.minecraft.item.Item[] toGet)
    • getSpecificItemCorrespondingToMajorityResource

      protected abstract net.minecraft.item.Item getSpecificItemCorrespondingToMajorityResource(net.minecraft.item.Item majority)