Interface LakeFeatureConfiguration

All Superinterfaces:
FeatureConfiguration, Wrapper

@NullMarked @AsOf("3.0.0") public interface LakeFeatureConfiguration extends FeatureConfiguration
A lake is a small, widespread, naturally-generated feature in the Overworld that contains a volume of liquid. In vanilla, these only consist of lava as aquifers replaced water lakes in 1.18.
Since:
3.0.0
See Also:
  • Method Details

    • fluid

      @AsOf("3.0.0") BlockStateProvider fluid()
      The block to use for the fluid of the lake.
      Returns:
      the fluid provider
      Since:
      3.0.0
    • barrier

      @AsOf("3.0.0") BlockStateProvider barrier()
      The block to use for the barrier of the lake. If air is specified, the barrier remains unchanged instead of overwriting any existing blocks.
      Returns:
      the barrier provider
      Since:
      3.0.0
    • canPlaceFeature

      @AsOf("3.0.0") BlockPredicate canPlaceFeature()
      Describes the block that the feature can be placed on.
      Returns:
      the predicate
      Since:
      3.0.0
    • canReplaceWithAirOrFluid

      @AsOf("3.0.0") BlockPredicate canReplaceWithAirOrFluid()
      Describes the block that the feature can replace with air or the provided fluid block.
      Returns:
      the predicate
      Since:
      3.0.0
    • canReplaceWithBarrier

      @AsOf("3.0.0") BlockPredicate canReplaceWithBarrier()
      Describes the block that the feature can replace with the provided barrier block.
      Returns:
      the predicate
      Since:
      3.0.0
    • toBuilder

      @AsOf("3.0.0") default LakeFeatureConfiguration.Builder toBuilder()
      Converts this object back to a builder.
      Returns:
      a builder with the same values as this object
      Since:
      3.0.0
    • create

      @AsOf("3.0.0") static LakeFeatureConfiguration create(BlockStateProvider fluid, BlockStateProvider barrier, BlockPredicate canPlaceOn, BlockPredicate canReplaceWithAirOrFluid, BlockPredicate canReplaceWithBarrier)
      Creates a new lake feature configuration.
      Parameters:
      fluid - the fluid provider
      barrier - the barrier provider
      canPlaceOn - the predicate describing the block that the feature can be placed on
      canReplaceWithAirOrFluid - the predicate describing the block that the feature can replace with air or the provided fluid block
      canReplaceWithBarrier - the predicate describing the block that the feature can replace with the provided barrier block
      Returns:
      a new lake feature configuration
      Since:
      3.0.0
    • builder

      @AsOf("3.0.0") static LakeFeatureConfiguration.Builder builder()
      Creates a new builder.
      Returns:
      a new builder
      Since:
      3.0.0