Class PositionIterator
java.lang.Object
nl.pim16aap2.animatedarchitecture.core.util.PositionIterator
Deprecated.
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.The order of iteration. -
Constructor Summary
ConstructorsConstructorDescriptionPositionIterator(Cuboid cuboid, PositionIterator.IterationMode iterationMode) Deprecated.Construct a new PositionIterator.PositionIterator(Vector3Di posA, Vector3Di posB, PositionIterator.IterationMode iterationMode) Deprecated.Construct a new PositionIterator.PositionIterator(Vector3Di posA, Vector3Di posB, PositionIterator.IterationMode iterationMode, int volume) Deprecated.Construct a new PositionIterator. -
Method Summary
Modifier and TypeMethodDescriptionvoidforEach(TriIntConsumer action) Deprecated.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.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
PositionIterator
public PositionIterator(Vector3Di posA, Vector3Di posB, PositionIterator.IterationMode iterationMode, int volume) Deprecated.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.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.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
public nl.pim16aap2.animatedarchitecture.core.util.PositionIterator.CustomIterator iterator()Deprecated. -
forEach
Deprecated.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.
-