Interface SequenceFeature

All Superinterfaces:
FeatureConfiguration, Wrapper

@NullMarked @AsOf("3.0.0") public interface SequenceFeature extends FeatureConfiguration
A technical feature that randomly chooses a feature from a list with each having an equal chance.
Since:
3.0.0
See Also:
  • Method Details

    • features

      @AsOf("3.0.0") List<PlacedFeature> features()
      Any number of placed features. This cannot be empty.
      Returns:
      the list of features
      Since:
      3.0.0
    • toBuilder

      @AsOf("3.0.0") default SequenceFeature.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 SequenceFeature of(List<PlacedFeature> features)
      Creates a new simple random feature configuration.
      Parameters:
      features - the list of features
      Returns:
      a new simple random feature configuration
      Since:
      3.0.0
    • builder

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