Class LakeFeatureConfiguration.Builder

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

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

  • Method Details

    • fluid

      Sets the fluid provider.
      Parameters:
      fluid - the fluid provider
      Returns:
      this builder
      Since:
      3.0.0
    • barrier

      @AsOf("3.0.0") public LakeFeatureConfiguration.Builder barrier(BlockStateProvider barrier)
      Sets the barrier provider.
      Parameters:
      barrier - the barrier provider
      Returns:
      this builder
      Since:
      3.0.0
    • canPlaceOn

      @AsOf("3.0.0") public LakeFeatureConfiguration.Builder canPlaceOn(BlockPredicate canPlaceOn)
      Sets the predicate describing the block that the feature can be placed on.
      Parameters:
      canPlaceOn - the placement predicate
      Returns:
      this builder
      Since:
      3.0.0
    • canReplaceWithAirOrFluid

      @AsOf("3.0.0") public LakeFeatureConfiguration.Builder canReplaceWithAirOrFluid(BlockPredicate canReplaceWithAirOrFluid)
      Sets the predicate describing the block that the feature can replace with air or the provided fluid block.
      Parameters:
      canReplaceWithAirOrFluid - the predicate
      Returns:
      this builder
      Since:
      3.0.0
    • canReplaceWithBarrier

      @AsOf("3.0.0") public LakeFeatureConfiguration.Builder canReplaceWithBarrier(BlockPredicate canReplaceWithBarrier)
      Sets the predicate describing the block that the feature can replace with the provided barrier block.
      Parameters:
      canReplaceWithBarrier - the predicate
      Returns:
      this builder
      Since:
      3.0.0
    • build

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