Class DroneEntityAIInventoryImport

java.lang.Object
net.minecraft.world.entity.ai.goal.Goal
All Implemented Interfaces:
IBlockInteractHandler

public class DroneEntityAIInventoryImport extends DroneAIImExBase<ProgWidgetInventoryBase>
  • Constructor Details

  • Method Details

    • isValidPosition

      protected boolean isValidPosition(net.minecraft.core.BlockPos pos)
      Description copied from class: DroneAIBlockInteraction
      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. 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.
      Specified by:
      isValidPosition in class DroneAIBlockInteraction<ProgWidgetInventoryBase>
      Parameters:
      pos - the block pos to examine
      Returns:
      true if this pos is valid, false otherwise
    • doBlockInteraction

      protected boolean doBlockInteraction(net.minecraft.core.BlockPos pos, double squareDistToBlock)
      Description copied from class: DroneAIBlockInteraction
      Carry out the actual interaction operation. Beware the return value: returning false is usually the right thing to do when the operation succeeded, to indicate to the drone that it shouldn't keep trying this, but instead move on to the next progwidget.
      Overrides:
      doBlockInteraction in class DroneAIImExBase<ProgWidgetInventoryBase>
      Parameters:
      pos - the block pos to work on
      squareDistToBlock - squared distance from the drone to the block
      Returns:
      false if we're done and should stop trying, true to try again next time