Package net.liukrast.multipart.block
Class AbstractMultipartBlock.Builder
java.lang.Object
net.liukrast.multipart.block.AbstractMultipartBlock.Builder
- Enclosing class:
AbstractMultipartBlock
Builder to define relative positions of multipart block parts.
-
Constructor Details
-
Builder
@Internal protected Builder()Main constructor for Builder. You should not use this. You will only care aboutdefine(int, int, int)
-
-
Method Details
-
define
Defines a new relative position for a part.- Parameters:
x- relative X coordinate.y- relative Y coordinate.z- relative Z coordinate.- Returns:
- the builder instance for chaining.
- Throws:
IllegalCallerException- if the position is already defined.
-
build
Internal code. Do not use.- Returns:
- a list of block positions
-