Interface IStructureWalker<T>
-
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface IStructureWalker<T>A functional interface that is used to iterate over an arbitrary structure.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default booleanblockNotLoaded(IStructureElement<T> element, World world, int x, int y, int z, int a, int b, int c)static <T> IStructureWalker<T>ignoreBlockUnloaded(IStructureWalker<T> walker)static <T> IStructureWalker<T>skipBlockUnloaded(IStructureWalker<T> walker)booleanvisit(IStructureElement<T> element, World world, int x, int y, int z, int a, int b, int c)Called once per structure element.
-
-
-
Method Detail
-
visit
boolean visit(IStructureElement<T> element, World world, int x, int y, int z, int a, int b, int c)
Called once per structure element.- Parameters:
element- The current elementworld- The current worldx- The absolute X position of the element in world coordinatesy- The absolute Y position of the element in world coordinatesz- The absolute Z position of the element in world coordinatesa- The relative A position of the element in structure-local coordinates (pre transform)b- The relative B position of the element in structure-local coordinates (pre transform)c- The relative C position of the element in structure-local coordinates (pre transform)- Returns:
- False to stop iterating, true to continue.
-
blockNotLoaded
default boolean blockNotLoaded(IStructureElement<T> element, World world, int x, int y, int z, int a, int b, int c)
-
ignoreBlockUnloaded
static <T> IStructureWalker<T> ignoreBlockUnloaded(IStructureWalker<T> walker)
-
skipBlockUnloaded
static <T> IStructureWalker<T> skipBlockUnloaded(IStructureWalker<T> walker)
-
-