Interface LakeFeatureConfiguration
- All Superinterfaces:
FeatureConfiguration, Wrapper
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:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface FeatureConfiguration
NONE -
Method Summary
Modifier and TypeMethodDescriptionbarrier()The block to use for the barrier of the lake.builder()Creates a new builder.Describes the block that the feature can be placed on.Describes the block that the feature can replace with air or the providedfluidblock.Describes the block that the feature can replace with the providedbarrierblock.static LakeFeatureConfigurationcreate(BlockStateProvider fluid, BlockStateProvider barrier, BlockPredicate canPlaceOn, BlockPredicate canReplaceWithAirOrFluid, BlockPredicate canReplaceWithBarrier) Creates a new lake feature configuration.fluid()The block to use for the fluid of the lake.default LakeFeatureConfiguration.BuilderConverts this object back to a builder.Methods inherited from interface Wrapper
asHandle, toMinecraft, unwrap
-
Method Details
-
fluid
The block to use for the fluid of the lake.- Returns:
- the fluid provider
- Since:
- 3.0.0
-
barrier
The block to use for the barrier of the lake. Ifairis specified, the barrier remains unchanged instead of overwriting any existing blocks.- Returns:
- the barrier provider
- Since:
- 3.0.0
-
canPlaceFeature
Describes the block that the feature can be placed on.- Returns:
- the predicate
- Since:
- 3.0.0
-
canReplaceWithAirOrFluid
Describes the block that the feature can replace with air or the providedfluidblock.- Returns:
- the predicate
- Since:
- 3.0.0
-
canReplaceWithBarrier
Describes the block that the feature can replace with the providedbarrierblock.- Returns:
- the predicate
- Since:
- 3.0.0
-
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 providerbarrier- the barrier providercanPlaceOn- the predicate describing the block that the feature can be placed oncanReplaceWithAirOrFluid- the predicate describing the block that the feature can replace with air or the providedfluidblockcanReplaceWithBarrier- the predicate describing the block that the feature can replace with the providedbarrierblock- Returns:
- a new lake feature configuration
- Since:
- 3.0.0
-
builder
Creates a new builder.- Returns:
- a new builder
- Since:
- 3.0.0
-