Class PreviewSnapshot.Builder
java.lang.Object
de.eldoria.schematicbrush.rendering.PreviewSnapshot.Builder
- Enclosing class:
PreviewSnapshot
Collects the blocks of a snapshot.
-
Method Summary
-
Method Details
-
add
Adds a preview block. A block added twice keeps the last data.- Parameters:
x- x coordinatey- y coordinatez- z coordinatedata- block data shown at this position- Returns:
- this builder
-
build
Builds the immutable snapshot.- Returns:
- the snapshot, or
PreviewSnapshot.empty()if no block was added
-