Interface BambooFeature

All Superinterfaces:
FeatureConfiguration, Wrapper

@NullMarked @AsOf("3.0.0") public interface BambooFeature extends FeatureConfiguration
A configuration for a feature that has a probability of being placed.
Since:
3.0.0
  • Field Summary

    Fields inherited from interface FeatureConfiguration

    NONE
  • Method Summary

    Modifier and Type
    Method
    Description
    of(float probability)
    Creates a new instance of this configuration.
    float
    Gets the probability of the feature being placed between 0.0 and 1.0.

    Methods inherited from interface Wrapper

    asHandle, toMinecraft, unwrap
  • Method Details

    • probability

      @AsOf("3.0.0") float probability()
      Gets the probability of the feature being placed between 0.0 and 1.0.
      Returns:
      the probability of the feature being placed
      Since:
      3.0.0
    • of

      @AsOf("3.0.0") static BambooFeature of(float probability)
      Creates a new instance of this configuration.
      Parameters:
      probability - the probability of the feature being placed between 0.0 and 1.0
      Returns:
      a new instance of this configuration
      Since:
      3.0.0