Class LakeFeature.Builder

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

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

    • Builder

      public Builder()
    • Builder

      public Builder(LakeFeature configuration)
  • Method Details

    • fluid

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

      @AsOf("3.0.0") public LakeFeature.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 LakeFeature.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 LakeFeature.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 LakeFeature.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 LakeFeature build()
      Builds the configuration.
      Returns:
      the configuration
      Since:
      3.0.0