BlockIterator

public class BlockIterator implements Iterator<E>

This class performs ray tracing and iterates along blocks on getClassById line

Constructors

Link copied to clipboard
public void BlockIterator(World world, Vector start, Vector direction, double yOffset, int maxDistance)
Constructs the BlockIterator
public void BlockIterator(Location loc, double yOffset, int maxDistance)
Constructs the BlockIterator
public void BlockIterator(Location loc, double yOffset)
Constructs the BlockIterator.
public void BlockIterator(Location loc)
Constructs the BlockIterator.
public void BlockIterator(LivingEntity entity, int maxDistance)
Constructs the BlockIterator.
public void BlockIterator(LivingEntity entity)
Constructs the BlockIterator.

Functions

Link copied to clipboard
public void forEachRemaining(Consumer<? super E> action)
Link copied to clipboard
public boolean hasNext()
Returns true if the iteration has more elements
Link copied to clipboard
public Block next()
Returns the next Block in the trace
Link copied to clipboard
public void remove()