public class DroneAIForEachCoordinate extends DroneAIBlockInteraction<ProgWidgetForEachCoordinate>
drone, progWidget| Constructor and Description |
|---|
DroneAIForEachCoordinate(IDroneBase drone,
ProgWidgetForEachCoordinate widget) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addEndingDebugEntry() |
protected boolean |
doBlockInteraction(net.minecraft.util.math.BlockPos pos,
double squareDistToBlock)
Carry out the actual interaction operation.
|
net.minecraft.util.math.BlockPos |
getCurCoord() |
protected boolean |
isValidPosition(net.minecraft.util.math.BlockPos pos)
Check if the given blockpos is valid for the purposes of this operation; generally the operation that is
carried out by
DroneAIBlockInteraction.doBlockInteraction(BlockPos, double) should be attempted as a simulation. |
abort, canContinueToUse, canUse, moveIntoBlock, moveToPositions, respectClaims, setMaxActionspublic DroneAIForEachCoordinate(IDroneBase drone, ProgWidgetForEachCoordinate widget)
protected boolean isValidPosition(net.minecraft.util.math.BlockPos pos)
DroneAIBlockInteractionDroneAIBlockInteraction.doBlockInteraction(BlockPos, double) should be attempted as a simulation. If this
method returns true, then the drone will attempt to move there (if appropriate) and call
DroneAIBlockInteraction.doBlockInteraction(BlockPos, double) to actually carry out the operation.isValidPosition in class DroneAIBlockInteraction<ProgWidgetForEachCoordinate>pos - the block pos to examineprotected boolean doBlockInteraction(net.minecraft.util.math.BlockPos pos,
double squareDistToBlock)
DroneAIBlockInteractiondoBlockInteraction in class DroneAIBlockInteraction<ProgWidgetForEachCoordinate>pos - the block pos to work onsquareDistToBlock - squared distance from the drone to the blockpublic net.minecraft.util.math.BlockPos getCurCoord()
protected void addEndingDebugEntry()
addEndingDebugEntry in class DroneAIBlockInteraction<ProgWidgetForEachCoordinate>