Class MatchingBlocksPredicate.Builder
java.lang.Object
dev.wyck.worldgen.blockpredicates.MatchingBlocksPredicate.Builder
- Enclosing interface:
MatchingBlocksPredicate
Builder for
MatchingBlocksPredicate.- Since:
- 3.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdds a block to match against.Adds multiple blocks to match against.Sets the blocks to match against.Sets the blocks to match against.build()Builds the matching blocks predicate.offset(int x, int y, int z) Sets the offset.offset(BlockVector offset) Sets the offset.
-
Constructor Details
-
Builder
public Builder() -
Builder
-
-
Method Details
-
offset
Sets the offset.- Parameters:
offset- the offset- Returns:
- this builder
- Since:
- 3.0.0
-
blocks
Sets the blocks to match against.- Parameters:
blocks- the blocks- Returns:
- this builder
- Since:
- 3.0.0
-
blocks
Sets the blocks to match against.- Parameters:
blocks- the blocks- Returns:
- this builder
- Since:
- 3.0.0
-
block
Adds a block to match against.- Parameters:
block- the block- Returns:
- this builder
- Since:
- 3.0.0
-
block
Adds multiple blocks to match against.- Parameters:
blocks- the blocks- Returns:
- this builder
- Since:
- 3.0.0
-
offset
Sets the offset.- Parameters:
x- the x offsety- the y offsetz- the z offset- Returns:
- this builder
- Since:
- 3.0.0
-
build
Builds the matching blocks predicate.- Returns:
- the matching blocks predicate
- Since:
- 3.0.0
-