Contents
Interface BoxBlockIterator.BoxIterationConsumer
- All Known Implementing Classes:
BlockCollisionProvider, CollisionResult
- Enclosing class:
BoxBlockIterator
public static interface BoxBlockIterator.BoxIterationConsumer
- Since:
- 07.10.2016
-
Method Summary
-
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 blocky- Y-Coordinate of blockz- Z-Coordinate of block- Returns:
- TRUE if iteration should continue
-