Interface SpringConfiguration

All Superinterfaces:
FeatureConfiguration, Wrapper

@NullMarked @AsOf("3.0.0") public interface SpringConfiguration extends FeatureConfiguration
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:
  • Method Details

    • state

      @AsOf("3.0.0") FluidState state()
      Which fluid to use.
      Returns:
      the fluid state
      Since:
      3.0.0
    • requiresBlockBelow

      @AsOf("3.0.0") boolean requiresBlockBelow()
      Whether the spring feature requires a block in validBlocks() below it.
      Returns:
      whether the feature requires a block below it
      Since:
      3.0.0
    • rockCount

      @AsOf("3.0.0") int rockCount()
      The required number of blocks adjacent to the spring that belong to validBlocks(). The block above is not counted.
      Returns:
      the number of blocks required
      Since:
      3.0.0
    • holeCount

      @AsOf("3.0.0") int 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

      @AsOf("3.0.0") Set<Material> validBlocks()
      A collection of blocks that may be used in other portions of this configuration.
      Returns:
      the valid blocks
      Since:
      3.0.0
    • toBuilder

      @AsOf("3.0.0") default SpringConfiguration.Builder 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 state
      requiresBlockBelow - whether the spring requires a block below it
      rockCount - the number of blocks adjacent to the spring that belong to validBlocks()
      holeCount - the number of air blocks adjacent to the spring
      validBlocks - 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

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