Class SpringConfiguration.Builder

java.lang.Object
dev.wyck.worldgen.feature.configurations.SpringConfiguration.Builder
Enclosing interface:
SpringConfiguration

@AsOf("3.0.0") public static final class SpringConfiguration.Builder extends Object
Builder for SpringConfiguration.
Since:
3.0.0
  • Constructor Details

  • Method Details

    • state

      @AsOf("3.0.0") public SpringConfiguration.Builder state(FluidState state)
      Sets the fluid state.
      Parameters:
      state - the fluid state
      Returns:
      this builder
      Since:
      3.0.0
    • requiresBlockBelow

      @AsOf("3.0.0") public SpringConfiguration.Builder requiresBlockBelow(boolean requiresBlockBelow)
      Sets whether the spring requires a block below it.
      Parameters:
      requiresBlockBelow - whether the spring requires a block below it
      Returns:
      this builder
      Since:
      3.0.0
    • rockCount

      @AsOf("3.0.0") public SpringConfiguration.Builder rockCount(int rockCount)
      Sets the rock count.
      Parameters:
      rockCount - the number of blocks adjacent to the spring
      Returns:
      this builder
      Since:
      3.0.0
    • holeCount

      @AsOf("3.0.0") public SpringConfiguration.Builder holeCount(int holeCount)
      Sets the hole count.
      Parameters:
      holeCount - the number of air blocks adjacent to the spring
      Returns:
      this builder
      Since:
      3.0.0
    • validBlocks

      @AsOf("3.0.0") public SpringConfiguration.Builder validBlocks(Set<Material> validBlocks)
      Sets the valid blocks.
      Parameters:
      validBlocks - the valid blocks
      Returns:
      this builder
      Since:
      3.0.0
    • validBlock

      @AsOf("3.0.0") public SpringConfiguration.Builder validBlock(Material... validBlocks)
      Adds a valid block.
      Parameters:
      validBlocks - the valid blocks
      Returns:
      this builder
      Since:
      3.0.0
    • build

      @AsOf("3.0.0") public SpringConfiguration build()
      Builds the configuration.
      Returns:
      the configuration
      Since:
      3.0.0