Class CarverConfiguration.CarverConfigurationBuilder<T extends CarverConfiguration, B extends CarverConfiguration.CarverConfigurationBuilder<T,B>>

java.lang.Object
dev.wyck.worldgen.carver.CarverConfiguration.CarverConfigurationBuilder<T,B>
Direct Known Subclasses:
CanyonCarverConfiguration.Builder, CaveCarverConfiguration.Builder
Enclosing interface:
CarverConfiguration

@AsOf("3.0.0") public abstract static class CarverConfiguration.CarverConfigurationBuilder<T extends CarverConfiguration, B extends CarverConfiguration.CarverConfigurationBuilder<T,B>> extends Object
Since:
2.3.0
  • Field Details

  • Constructor Details

    • CarverConfigurationBuilder

      protected CarverConfigurationBuilder()
    • CarverConfigurationBuilder

      protected CarverConfigurationBuilder(CarverConfiguration configuration)
  • Method Details

    • probability

      @AsOf("3.0.0") public B probability(float probability)
      Sets the probability of the carver.
      Parameters:
      probability - the probability of the carver
      Returns:
      this builder
      Since:
      3.0.0
    • y

      @AsOf("3.0.0") public B y(HeightProvider y)
      Sets the y-level of the carver.
      Parameters:
      y - the y-level of the carver
      Returns:
      this builder
      Since:
      3.0.0
    • yScale

      @AsOf("3.0.0") public B yScale(FloatProvider yScale)
      Sets the y-scale of the carver.
      Parameters:
      yScale - the y-scale of the carver
      Returns:
      this builder
      Since:
      3.0.0
    • lavaLevel

      @AsOf("3.0.0") public B lavaLevel(VerticalAnchor lavaLevel)
      Sets the lava level of the carver.
      Parameters:
      lavaLevel - the lava level of the carver
      Returns:
      this builder
      Since:
      3.0.0
    • debugSettings

      @AsOf("3.0.0") public B debugSettings(CarverDebugSettings debugSettings)
      Sets the debug settings of the carver.
      Parameters:
      debugSettings - the debug settings of the carver
      Returns:
      this builder
      Since:
      3.0.0
    • replaceable

      @AsOf("3.0.0") public B replaceable(Set<Material> replaceable)
      Sets the materials that can be replaced by this carver.
      Parameters:
      replaceable - the materials that can be replaced by this carver
      Returns:
      this builder
      Since:
      3.0.0
    • replaceable

      @AsOf("3.0.0") public B replaceable(Material... replaceable)
      Adds a material to the list of replaceable materials.
      Parameters:
      replaceable - the material to add
      Returns:
      this builder
      Since:
      3.0.0
    • build

      @AsOf("3.0.0") public final T build()
      Builds the carver configuration.
      Returns:
      the carver configuration
      Since:
      3.0.0
    • create

      protected abstract T create()