Class ContentLimitBuilder

java.lang.Object
de.eldoria.schematicsanitizer.sanitizer.limit.builder.ContentLimitBuilder

public class ContentLimitBuilder extends Object
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 Details

    • ContentLimitBuilder

      public ContentLimitBuilder()
  • Method Details

    • blocks

      public ContentLimitBuilder blocks(int blocks)
      Sets the number of blocks.
      Parameters:
      blocks - the number of blocks to set
      Returns:
      the updated ContentLimitBuilder object
    • nonAirBlocks

      public ContentLimitBuilder nonAirBlocks(int nonAirBlocks)
      Sets the number of non-air blocks.
      Parameters:
      nonAirBlocks - the number of non-air blocks
      Returns:
      the ContentLimitBuilder object for method chaining
    • creatures

      public ContentLimitBuilder creatures(int creatures)
      Sets the number of creatures.
      Parameters:
      creatures - the number of creatures to be set
      Returns:
      the ContentLimitBuilder instance
    • nonCreatures

      public ContentLimitBuilder nonCreatures(int 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

      public ContentLimit build()