Class PositionIterator
java.lang.Object
nl.pim16aap2.animatedarchitecture.core.util.PositionIterator
@Deprecated(forRemoval=true)
public class PositionIterator
extends Object
implements Iterable<Vector3Di>
Deprecated, for removal: This API element is subject to removal in a future version.
This class does not have any tests and is likely to be removed in the future!
Iterator that iterates over all values between 2
Vector3Dis.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumDeprecated, for removal: This API element is subject to removal in a future version.The order of iteration. -
Constructor Summary
ConstructorsConstructorDescriptionPositionIterator(Cuboid cuboid, PositionIterator.IterationMode iterationMode) Deprecated, for removal: This API element is subject to removal in a future version.Construct a new PositionIterator.PositionIterator(Vector3Di posA, Vector3Di posB, PositionIterator.IterationMode iterationMode) Deprecated, for removal: This API element is subject to removal in a future version.Construct a new PositionIterator.PositionIterator(Vector3Di posA, Vector3Di posB, PositionIterator.IterationMode iterationMode, int volume) Deprecated, for removal: This API element is subject to removal in a future version.Construct a new PositionIterator. -
Method Summary
Modifier and TypeMethodDescriptionvoidforEach(TriIntConsumer action) Deprecated, for removal: This API element is subject to removal in a future version.Works similar toIterable.forEach(Consumer), but with the exception that each step will be applied without constructing a newVector3Di.nl.pim16aap2.animatedarchitecture.core.util.PositionIterator.CustomIteratoriterator()Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterable
forEach, spliterator
-
Constructor Details
-
PositionIterator
public PositionIterator(Vector3Di posA, Vector3Di posB, PositionIterator.IterationMode iterationMode, int volume) Deprecated, for removal: This API element is subject to removal in a future version.Construct a new PositionIterator. When iterating between two values, the starting values are the first result and the ending values are the last result. If the starting and ending values are the same, there will be a single result.- Parameters:
posA- The starting values.posB- The ending values.iterationMode- The mode of iteration.volume- The total number of blocks between posA and posB (inclusive). Do not use this if you do not know this.
-
PositionIterator
public PositionIterator(Vector3Di posA, Vector3Di posB, PositionIterator.IterationMode iterationMode) Deprecated, for removal: This API element is subject to removal in a future version.Construct a new PositionIterator. When iterating between two values, the starting values are the first result and the ending values are the last result. If the starting and ending values are the same, there will be a single result.- Parameters:
posA- The starting values.posB- The ending values.iterationMode- The mode of iteration.
-
PositionIterator
Deprecated, for removal: This API element is subject to removal in a future version.Construct a new PositionIterator. When iterating between two values, the starting values are the first result and the ending values are the last result. If the starting and ending values are the same, there will be a single result.- Parameters:
cuboid- TheCuboidto iterate over, fromCuboid.getMin()toCuboid.getMax().iterationMode- The mode of iteration.
-
-
Method Details
-
iterator
-
forEach
Deprecated, for removal: This API element is subject to removal in a future version.Works similar toIterable.forEach(Consumer), but with the exception that each step will be applied without constructing a newVector3Di.- Parameters:
action- The method to apply for each step.
-