Interface BoxBlockIterator.BoxIterationConsumer

All Known Implementing Classes:
BlockCollisionProvider, CollisionResult
Enclosing class:
BoxBlockIterator

public static interface BoxBlockIterator.BoxIterationConsumer
Since:
07.10.2016
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    accept(long x, long y, long z)
    Called by the algorithm to report a block that is being hit by the AABB on the given direction.
    boolean
    Called when the current iteration step is done and the next block to hit is further away.
  • Method Details

    • next

      boolean next()
      Called when the current iteration step is done and the next block to hit is further away.
      Returns:
      TRUE if iteration should continue
    • accept

      boolean accept(long x, long y, long z)
      Called by the algorithm to report a block that is being hit by the AABB on the given direction.
      Parameters:
      x - X-Coordinate of block
      y - Y-Coordinate of block
      z - Z-Coordinate of block
      Returns:
      TRUE if iteration should continue