Class DiskFeature

java.lang.Object
com.github.darksoulq.abyssallib.world.gen.feature.Feature<DiskFeature.Config>
com.github.darksoulq.abyssallib.world.gen.feature.impl.DiskFeature

public class DiskFeature extends Feature<DiskFeature.Config>
A world generation feature that generates a flat, circular disk dynamically.

Upgraded to utilize the Block State Provider API, enabling features like mixed gravel and sand ocean floors.

  • Constructor Details

    • DiskFeature

      public DiskFeature()
      Constructs a new DiskFeature with its associated configuration codec.
  • Method Details

    • place

      public boolean place(FeaturePlaceContext<DiskFeature.Config> context)
      Executes the circular placement logic centered on the given origin.
      Specified by:
      place in class Feature<DiskFeature.Config>
      Parameters:
      context - The feature place context providing world access and configuration.
      Returns:
      True if at least one block was successfully placed.