public class BoxIterator
extends java.lang.Object
implements java.util.Iterator<net.minecraft.util.math.BlockPos>
Constructor and Description |
---|
BoxIterator(net.minecraft.util.math.BlockPos min,
net.minecraft.util.math.BlockPos max,
AxisOrder order,
boolean invert) |
BoxIterator(IBox box,
AxisOrder order,
boolean invert) |
Modifier and Type | Method and Description |
---|---|
net.minecraft.util.math.BlockPos |
advance()
Moves on to the next block.
|
net.minecraft.util.math.BlockPos |
getCurrent() |
net.minecraft.util.math.BlockPos |
getMax() |
net.minecraft.util.math.BlockPos |
getMin() |
AxisOrder |
getOrder() |
boolean |
hasFinished() |
boolean |
hasNext() |
boolean |
isInvert() |
boolean |
isRepeat() |
net.minecraft.util.math.BlockPos |
next() |
static BoxIterator |
readFromNbt(net.minecraft.nbt.NBTTagCompound nbt) |
net.minecraft.nbt.NBTTagCompound |
writeToNbt() |
public BoxIterator(net.minecraft.util.math.BlockPos min, net.minecraft.util.math.BlockPos max, AxisOrder order, boolean invert)
public static BoxIterator readFromNbt(net.minecraft.nbt.NBTTagCompound nbt)
public net.minecraft.nbt.NBTTagCompound writeToNbt()
public net.minecraft.util.math.BlockPos getCurrent()
@Nonnull public net.minecraft.util.math.BlockPos getMin()
@Nonnull public net.minecraft.util.math.BlockPos getMax()
public boolean isInvert()
public boolean isRepeat()
public AxisOrder getOrder()
public net.minecraft.util.math.BlockPos advance()
public boolean hasFinished()
public boolean hasNext()
hasNext
in interface java.util.Iterator<net.minecraft.util.math.BlockPos>
public net.minecraft.util.math.BlockPos next()
next
in interface java.util.Iterator<net.minecraft.util.math.BlockPos>