public static class GenerationSettings.Builder extends Object
Modifier and Type | Field and Description |
---|---|
private Map<GenerationStep.Carver,List<Supplier<ConfiguredCarver<?>>>> |
carvers |
private List<List<Supplier<ConfiguredFeature<?,?>>>> |
features |
private List<Supplier<ConfiguredStructureFeature<?,?>>> |
structureFeatures |
private Optional<Supplier<ConfiguredSurfaceBuilder<?>>> |
surfaceBuilder |
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
private void |
addFeatureStep(int stepIndex) |
GenerationSettings |
build() |
<C extends CarverConfig> |
carver(GenerationStep.Carver carverStep,
ConfiguredCarver<C> carver) |
GenerationSettings.Builder |
feature(GenerationStep.Feature featureStep,
ConfiguredFeature<?,?> feature) |
GenerationSettings.Builder |
feature(int stepIndex,
Supplier<ConfiguredFeature<?,?>> featureSupplier) |
GenerationSettings.Builder |
structureFeature(ConfiguredStructureFeature<?,?> structureFeature) |
GenerationSettings.Builder |
surfaceBuilder(ConfiguredSurfaceBuilder<?> surfaceBuilder) |
GenerationSettings.Builder |
surfaceBuilder(Supplier<ConfiguredSurfaceBuilder<?>> surfaceBuilderSupplier) |
private Optional<Supplier<ConfiguredSurfaceBuilder<?>>> surfaceBuilder
private final Map<GenerationStep.Carver,List<Supplier<ConfiguredCarver<?>>>> carvers
private final List<List<Supplier<ConfiguredFeature<?,?>>>> features
private final List<Supplier<ConfiguredStructureFeature<?,?>>> structureFeatures
public GenerationSettings.Builder surfaceBuilder(ConfiguredSurfaceBuilder<?> surfaceBuilder)
public GenerationSettings.Builder surfaceBuilder(Supplier<ConfiguredSurfaceBuilder<?>> surfaceBuilderSupplier)
public GenerationSettings.Builder feature(GenerationStep.Feature featureStep, ConfiguredFeature<?,?> feature)
public GenerationSettings.Builder feature(int stepIndex, Supplier<ConfiguredFeature<?,?>> featureSupplier)
public <C extends CarverConfig> GenerationSettings.Builder carver(GenerationStep.Carver carverStep, ConfiguredCarver<C> carver)
public GenerationSettings.Builder structureFeature(ConfiguredStructureFeature<?,?> structureFeature)
private void addFeatureStep(int stepIndex)
public GenerationSettings build()