Interface SpringConfiguration
- All Superinterfaces:
FeatureConfiguration, Wrapper
A feature consisting of a single block of liquid that flows out into spaces level with or lower than the source.
- Since:
- 3.0.0
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface FeatureConfiguration
NONE -
Method Summary
Modifier and TypeMethodDescriptionstatic SpringConfiguration.Builderbuilder()Creates a new builder.intThe required number of air blocks adjacent to the spring.static SpringConfigurationof(FluidState state, boolean requiresBlockBelow, int rockCount, int holeCount, Set<Material> validBlocks) Creates a new instance of this configuration.booleanWhether the spring feature requires a block invalidBlocks()below it.intThe required number of blocks adjacent to the spring that belong tovalidBlocks().state()Which fluid to use.default SpringConfiguration.BuilderConverts this object back to a builder.A collection of blocks that may be used in other portions of this configuration.Methods inherited from interface Wrapper
asHandle, toMinecraft, unwrap
-
Method Details
-
state
-
requiresBlockBelow
Whether the spring feature requires a block invalidBlocks()below it.- Returns:
- whether the feature requires a block below it
- Since:
- 3.0.0
-
rockCount
The required number of blocks adjacent to the spring that belong tovalidBlocks(). The block above is not counted.- Returns:
- the number of blocks required
- Since:
- 3.0.0
-
holeCount
The required number of air blocks adjacent to the spring. The block above is not counted.- Returns:
- the number of air blocks required
- Since:
- 3.0.0
-
validBlocks
-
toBuilder
Converts this object back to a builder.- Returns:
- a new builder with the same values as this object
- Since:
- 3.0.0
-
of
@AsOf("3.0.0") static SpringConfiguration of(FluidState state, boolean requiresBlockBelow, int rockCount, int holeCount, Set<Material> validBlocks) Creates a new instance of this configuration.- Parameters:
state- the fluid staterequiresBlockBelow- whether the spring requires a block below itrockCount- the number of blocks adjacent to the spring that belong tovalidBlocks()holeCount- the number of air blocks adjacent to the springvalidBlocks- a collection of blocks that may be used in other portions of this configuration- Returns:
- a new instance of this configuration
- Since:
- 3.0.0
-
builder
Creates a new builder.- Returns:
- a new builder
- Since:
- 3.0.0
-