Class StructureArray.Builder<T>

java.lang.Object
com.github.darksoulq.abyssallib.common.util.StructureArray.Builder<T>
Type Parameters:
T - The element type.
Enclosing class:
StructureArray<T>

public static final class StructureArray.Builder<T> extends Object
Fluent builder for manual cell assignment.
  • Method Details

    • set

      public StructureArray.Builder<T> set(int x, int y, T value)
      Sets an element at a specific coordinate.
      Parameters:
      x - X.
      y - Y.
      value - Element.
      Returns:
      This builder.
    • fillAll

      public StructureArray.Builder<T> fillAll(T value)
      Fills all current null/empty cells with a value.
      Parameters:
      value - Element.
      Returns:
      This builder.
    • build

      public StructureArray<T> build()
      Returns:
      A new StructureArray with current assignments.