Interface PathConstraint

All Known Subinterfaces:
DelegatePathConstraint
All Known Implementing Classes:
NoBlockActionsConstraint, NoBlockBreakingConstraint, NoBlockPlacingConstraint, PathConstraintImpl

public interface PathConstraint
  • Method Details

    • doUsableBlocksDecreaseWhenPlaced

      boolean doUsableBlocksDecreaseWhenPlaced()
    • canBlocksDropWhenBroken

      boolean canBlocksDropWhenBroken()
    • canBreakBlocks

      boolean canBreakBlocks()
    • canPlaceBlocks

      boolean canPlaceBlocks()
    • isPlaceable

      boolean isPlaceable(net.minecraft.world.item.ItemStack item)
    • isTool

      boolean isTool(net.minecraft.world.item.ItemStack item)
    • isOutOfLevel

      boolean isOutOfLevel(net.minecraft.world.level.block.state.BlockState blockState, SFVec3i pos)
    • canBreakBlock

      boolean canBreakBlock(SFVec3i pos, net.minecraft.world.level.block.state.BlockState blockState)
    • canPlaceBlock

      boolean canPlaceBlock(SFVec3i pos)
    • collidesWithAtEdge

      boolean collidesWithAtEdge(DiagonalCollisionCalculator.CollisionData collisionData)
    • modifyAsNeeded

      GraphInstructions modifyAsNeeded(GraphInstructions instruction)
    • breakBlockPenalty

      double breakBlockPenalty()
      Returns the cost penalty for breaking a block during pathfinding.
    • placeBlockPenalty

      double placeBlockPenalty()
      Returns the cost penalty for placing a block during pathfinding.
    • expireTimeout

      int expireTimeout()
      Returns the maximum time in seconds before pathfinding gives up.
    • disablePruning

      boolean disablePruning()
      Returns whether pruning of the pathfinding search space is disabled.