Package net.minestom.server.collision
Class BoundingBox.PointIterator
java.lang.Object
net.minestom.server.collision.BoundingBox.PointIterator
- All Implemented Interfaces:
Iterator<BoundingBox.MutablePoint>
- Enclosing class:
BoundingBox
public static class BoundingBox.PointIterator
extends Object
implements Iterator<BoundingBox.MutablePoint>
-
Constructor Summary
ConstructorDescriptionPointIterator
(BoundingBox boundingBox, Point p, BoundingBox.AxisMask axisMask, double axis) -
Method Summary
Modifier and TypeMethodDescriptionboolean
hasNext()
next()
void
reset
(BoundingBox boundingBox, double x, double y, double z, BoundingBox.AxisMask axisMask, double axis) void
reset
(BoundingBox boundingBox, double pointX, double pointY, double pointZ, BoundingBox.AxisMask axisMask, int axis) void
reset
(BoundingBox boundingBox, Point p, BoundingBox.AxisMask axisMask, double axis) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining, remove
-
Constructor Details
-
PointIterator
public PointIterator() -
PointIterator
-
-
Method Details
-
reset
public void reset(BoundingBox boundingBox, double pointX, double pointY, double pointZ, BoundingBox.AxisMask axisMask, int axis) -
reset
-
reset
public void reset(BoundingBox boundingBox, double x, double y, double z, BoundingBox.AxisMask axisMask, double axis) -
hasNext
public boolean hasNext()- Specified by:
hasNext
in interfaceIterator<BoundingBox.MutablePoint>
-
next
- Specified by:
next
in interfaceIterator<BoundingBox.MutablePoint>
-