public class DroneAIEntityExport<W extends ProgWidgetAreaItemBase> extends DroneAIBlockInteraction<W>
drone, progWidget| Constructor and Description |
|---|
DroneAIEntityExport(IDroneBase drone,
W progWidget) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canUse()
Returns whether the EntityAIBase should begin execution.
|
protected boolean |
doBlockInteraction(net.minecraft.util.math.BlockPos pos,
double squareDistToBlock)
Carry out the actual interaction operation.
|
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. |
protected boolean |
moveIntoBlock() |
abort, addEndingDebugEntry, canContinueToUse, moveToPositions, respectClaims, setMaxActionspublic DroneAIEntityExport(IDroneBase drone, W progWidget)
public boolean canUse()
DroneAIBlockInteractioncanUse in class DroneAIBlockInteraction<W extends ProgWidgetAreaItemBase>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<W extends ProgWidgetAreaItemBase>pos - the block pos to examineprotected boolean moveIntoBlock()
moveIntoBlock in class DroneAIBlockInteraction<W extends ProgWidgetAreaItemBase>protected boolean doBlockInteraction(net.minecraft.util.math.BlockPos pos,
double squareDistToBlock)
DroneAIBlockInteractiondoBlockInteraction in class DroneAIBlockInteraction<W extends ProgWidgetAreaItemBase>pos - the block pos to work onsquareDistToBlock - squared distance from the drone to the block