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>
Fluent builder for manual cell assignment.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Fills all current null/empty cells with a value.Sets an element at a specific coordinate.
-
Method Details
-
set
Sets an element at a specific coordinate.- Parameters:
x- X.y- Y.value- Element.- Returns:
- This builder.
-
fillAll
Fills all current null/empty cells with a value.- Parameters:
value- Element.- Returns:
- This builder.
-
build
- Returns:
- A new StructureArray with current assignments.
-