Package adris.altoclef.tasks.resources
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
-
Field Summary
Fields inherited from class adris.altoclef.tasks.ResourceTask
_itemTargets
-
Constructor Summary
ConstructorDescriptionCraftWithMatchingMaterialsTask
(ItemTarget target, CraftingRecipe recipe, boolean[] sameMask) -
Method Summary
Modifier and TypeMethodDescriptionprotected Task
protected int
getExpectedTotalCountOfSameItem
(AltoClef mod, net.minecraft.item.Item sameItem) protected abstract net.minecraft.item.Item
getSpecificItemCorrespondingToMajorityResource
(net.minecraft.item.Item majority) protected Task
getSpecificSameResourceTask
(AltoClef mod, net.minecraft.item.Item[] toGet) protected void
onResourceStart
(AltoClef mod) protected void
onResourceStop
(AltoClef mod, Task interruptTask) protected Task
onResourceTick
(AltoClef mod) Methods inherited from class adris.altoclef.tasks.ResourceTask
forceDimension, getItemTargets, getToCorrectDimensionTask, isEqual, isEqualResource, isFinished, isInWrongDimension, mineIfPresent, onStart, onStop, onTick, shouldAvoidPickingUp, shouldForce, toDebugString, toDebugStringName
Methods inherited from class adris.altoclef.tasksystem.Task
equals, interrupt, isActive, reset, setDebugState, stop, stop, stopped, thisOrChildAreTimedOut, thisOrChildSatisfies, tick, toString
-
Constructor Details
-
CraftWithMatchingMaterialsTask
-
-
Method Details
-
onResourceStart
- Specified by:
onResourceStart
in classResourceTask
-
onResourceTick
- Specified by:
onResourceTick
in classResourceTask
-
onResourceStop
- Specified by:
onResourceStop
in classResourceTask
-
getAllSameResourcesTask
-
getExpectedTotalCountOfSameItem
-
getSpecificSameResourceTask
-
getSpecificItemCorrespondingToMajorityResource
protected abstract net.minecraft.item.Item getSpecificItemCorrespondingToMajorityResource(net.minecraft.item.Item majority)
-