public class GenerationSettings extends Object
Modifier and Type | Class and Description |
---|---|
static class |
GenerationSettings.Builder |
Modifier and Type | Field and Description |
---|---|
private Map<GenerationStep.Carver,List<Supplier<ConfiguredCarver<?>>>> |
carvers |
static com.mojang.serialization.MapCodec<GenerationSettings> |
CODEC |
private List<List<Supplier<ConfiguredFeature<?,?>>>> |
features |
private List<ConfiguredFeature<?,?>> |
flowerFeatures |
static GenerationSettings |
INSTANCE |
static Logger |
LOGGER |
private List<Supplier<ConfiguredStructureFeature<?,?>>> |
structureFeatures |
private Supplier<ConfiguredSurfaceBuilder<?>> |
surfaceBuilder |
Modifier | Constructor and Description |
---|---|
private |
GenerationSettings(Supplier<ConfiguredSurfaceBuilder<?>> surfaceBuilder,
Map<GenerationStep.Carver,List<Supplier<ConfiguredCarver<?>>>> carvers,
List<List<Supplier<ConfiguredFeature<?,?>>>> features,
List<Supplier<ConfiguredStructureFeature<?,?>>> structureFeatures) |
Modifier and Type | Method and Description |
---|---|
List<Supplier<ConfiguredCarver<?>>> |
getCarversForStep(GenerationStep.Carver carverStep) |
List<List<Supplier<ConfiguredFeature<?,?>>>> |
getFeatures()
Returns the lists of features configured for each
feature generation step , up to the highest step that has a configured feature. |
List<ConfiguredFeature<?,?>> |
getFlowerFeatures() |
Collection<Supplier<ConfiguredStructureFeature<?,?>>> |
getStructureFeatures() |
Supplier<ConfiguredSurfaceBuilder<?>> |
getSurfaceBuilder() |
SurfaceConfig |
getSurfaceConfig() |
boolean |
hasStructureFeature(StructureFeature<?> structureFeature) |
ConfiguredStructureFeature<?,?> |
method_30978(ConfiguredStructureFeature<?,?> configuredStructureFeature) |
public static final Logger LOGGER
public static final GenerationSettings INSTANCE
public static final com.mojang.serialization.MapCodec<GenerationSettings> CODEC
private final 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
private final List<ConfiguredFeature<?,?>> flowerFeatures
private GenerationSettings(Supplier<ConfiguredSurfaceBuilder<?>> surfaceBuilder, Map<GenerationStep.Carver,List<Supplier<ConfiguredCarver<?>>>> carvers, List<List<Supplier<ConfiguredFeature<?,?>>>> features, List<Supplier<ConfiguredStructureFeature<?,?>>> structureFeatures)
public List<Supplier<ConfiguredCarver<?>>> getCarversForStep(GenerationStep.Carver carverStep)
public boolean hasStructureFeature(StructureFeature<?> structureFeature)
public Collection<Supplier<ConfiguredStructureFeature<?,?>>> getStructureFeatures()
public ConfiguredStructureFeature<?,?> method_30978(ConfiguredStructureFeature<?,?> configuredStructureFeature)
public List<ConfiguredFeature<?,?>> getFlowerFeatures()
public List<List<Supplier<ConfiguredFeature<?,?>>>> getFeatures()
feature generation step
, up to the highest step that has a configured feature.
Entries are guaranteed to not be null, but may be empty lists if an earlier step has no features, but a later step does.public Supplier<ConfiguredSurfaceBuilder<?>> getSurfaceBuilder()
public SurfaceConfig getSurfaceConfig()