Interface DiskConfiguration

All Superinterfaces:
FeatureConfiguration, Wrapper

@NullMarked @AsOf("3.0.0") public interface DiskConfiguration extends FeatureConfiguration
A feature consisting of a naturally generated roughly circular deposit of a soil-like block under or next to bodies of water.
Since:
3.0.0
See Also:
  • Method Details

    • stateProvider

      @AsOf("3.0.0") BlockStateProvider stateProvider()
      The block state provider used for the blocks that make up the disk.
      Returns:
      the state provider
      Since:
      3.0.0
    • target

      @AsOf("3.0.0") BlockPredicate target()
      The block predicate that must be passed for a block to be replaced when generating this feature.
      Returns:
      the target predicate
      Since:
      3.0.0
    • radius

      @AsOf("3.0.0") IntProvider radius()
      The radius of this disk. Value between 0 and 8.
      Returns:
      the radius
      Since:
      3.0.0
    • halfHeight

      @AsOf("3.0.0") int halfHeight()
      Half of the height of this disk. Value between 0 and 4.
      Returns:
      the half height
      Since:
      3.0.0
    • toBuilder

      @AsOf("3.0.0") default DiskConfiguration.Builder toBuilder()
      Converts this object back to a builder.
      Returns:
      a builder with the same values as this object
      Since:
      3.0.0
    • of

      @AsOf("3.0.0") static DiskConfiguration of(BlockStateProvider stateProvider, BlockPredicate target, IntProvider radius, int halfHeight)
      Creates a new disk configuration.
      Parameters:
      stateProvider - the block state provider used for the blocks that make up the disk
      target - the block predicate that must be passed for a block to be replaced
      radius - the radius of this disk
      halfHeight - half of the height of this disk
      Returns:
      a new disk configuration
      Since:
      3.0.0
    • builder

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