Class ContentLimitBuilder
java.lang.Object
de.eldoria.schematicsanitizer.sanitizer.limit.builder.ContentLimitBuilder
The ContentLimitBuilder class is used to construct
ContentLimit
objects.
It provides methods to set the limits for blocks, non-air blocks, creatures, and non-creatures.
Once the limits are set, the build() method can be called to create a ContentLimit object.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionblocks
(int blocks) Sets the number of blocks.build()
creatures
(int creatures) Sets the number of creatures.nonAirBlocks
(int nonAirBlocks) Sets the number of non-air blocks.nonCreatures
(int nonCreatures) Sets the number of non-creatures.
-
Constructor Details
-
ContentLimitBuilder
public ContentLimitBuilder()
-
-
Method Details
-
blocks
Sets the number of blocks.- Parameters:
blocks
- the number of blocks to set- Returns:
- the updated ContentLimitBuilder object
-
nonAirBlocks
Sets the number of non-air blocks.- Parameters:
nonAirBlocks
- the number of non-air blocks- Returns:
- the ContentLimitBuilder object for method chaining
-
creatures
Sets the number of creatures.- Parameters:
creatures
- the number of creatures to be set- Returns:
- the ContentLimitBuilder instance
-
nonCreatures
Sets the number of non-creatures.- Parameters:
nonCreatures
- the number of non-creatures to be set in the content limit- Returns:
- the ContentLimitBuilder object for method chaining
-
build
-