Interface FlatLevelGeneratorSettings
- All Superinterfaces:
Wrapper
Flat source generator settings.
- Since:
- 3.0.0
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final FlatLevelGeneratorSettingsstatic final FlatLevelGeneratorSettingsstatic final FlatLevelGeneratorSettingsstatic final FlatLevelGeneratorSettingsstatic final FlatLevelGeneratorSettingsstatic final FlatLevelGeneratorSettingsstatic final FlatLevelGeneratorSettingsstatic final FlatLevelGeneratorSettingsstatic final FlatLevelGeneratorSettings -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddLakes()If lakes should be generated.biome()Returns the biome.builder()Creates a new builder.static FlatLevelGeneratorSettingsReads Minecraft flat-generator settings.booleanIf decorations should be generated.Returns the fallback biome.lakes()Lakes to generate.layers()Returns the list of layers.static FlatLevelGeneratorSettingsof(List<FlatLayerInfo> layers, boolean decoration, boolean addLakes, Biome biome, Biome fallbackBiome, List<PlacedFeature> lakes, @Nullable Set<ResourceKey> structures) Creates a new FlatLevelGeneratorSettings.Keys of structures to generate.Converts this object back to a builder.Methods inherited from interface Wrapper
asHandle, toMinecraft, unwrap
-
Field Details
-
CLASSIC_FLAT
-
TUNNELERS_DREAM
-
WATER_WORLD
-
OVERWORLD
-
SNOWY_KINGDOM
-
BOTTOMLESS_PIT
-
DESERT
-
REDSTONE_READY
-
THE_VOID
-
-
Method Details
-
layers
Returns the list of layers.- Returns:
- the list of layers
- Since:
- 3.0.0
-
decoration
If decorations should be generated.- Returns:
- whether decorations should be generated
- Since:
- 3.0.0
-
addLakes
If lakes should be generated.- Returns:
- whether lakes should be generated
- Since:
- 3.0.0
-
biome
-
fallbackBiome
-
lakes
-
structures
Keys of structures to generate.- Returns:
- the keys of structures to generate
- Since:
- 3.0.0
-
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 FlatLevelGeneratorSettings of(List<FlatLayerInfo> layers, boolean decoration, boolean addLakes, Biome biome, Biome fallbackBiome, List<PlacedFeature> lakes, @Nullable Set<ResourceKey> structures) Creates a new FlatLevelGeneratorSettings.- Parameters:
layers- the layersdecoration- whether features should be generatedaddLakes- whether lakes should be generatedbiome- the biomefallbackBiome- the fallback biomelakes- the lakes to generatestructures- the keys of structures to generate- Returns:
- a new FlatLevelGeneratorSettings
- Since:
- 3.0.0
-
decode
Reads Minecraft flat-generator settings.- Parameters:
minecraftSettings- the flat-generator settings to read- Returns:
- the decoded flat-generator settings
- Since:
- 3.3.0
-
builder
Creates a new builder.- Returns:
- a new builder
- Since:
- 3.0.0
-