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 Details

    • 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 element
      world - The current world
      x - The absolute X position of the element in world coordinates
      y - The absolute Y position of the element in world coordinates
      z - The absolute Z position of the element in world coordinates
      a - 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)