Interface StructureSettings
- All Superinterfaces:
Wrapper
Structure placement settings.
- Since:
- 3.4.0
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbiomes()The biomes this structure may generate in, as an explicit set or a named biome tag.static StructureSettings.BuilderCreates a new builder.static StructureSettingsReads Minecraft structure settings.static StructureSettingsCreates new structure settings with no spawn overrides, placed inDecoration.SURFACE_STRUCTURESwithout reshaping terrain.static StructureSettingsof(TagSet<Biome> biomes, Map<MobCategory, StructureSpawnOverride> spawnOverrides, Decoration step, TerrainAdaptation terrainAdaptation) Creates new structure settings.The spawners this structure replaces inside its bounds, by category.step()The generation step this structure is placed in.How this structure reshapes the terrain it lands on.default StructureSettings.BuilderConverts this object back to a builder.Methods inherited from interface Wrapper
asHandle, toMinecraft, unwrap
-
Method Details
-
biomes
-
spawnOverrides
The spawners this structure replaces inside its bounds, by category.- Returns:
- the spawn overrides, keyed by mob category
- Since:
- 3.4.0
-
step
The generation step this structure is placed in.- Returns:
- the generation step
- Since:
- 3.4.0
-
terrainAdaptation
How this structure reshapes the terrain it lands on.- Returns:
- the terrain adaptation
- Since:
- 3.4.0
-
toBuilder
Converts this object back to a builder.- Returns:
- a builder with the same values as this object
- Since:
- 3.4.0
-
of
@AsOf("3.4.0") static StructureSettings of(TagSet<Biome> biomes, Map<MobCategory, StructureSpawnOverride> spawnOverrides, Decoration step, TerrainAdaptation terrainAdaptation) Creates new structure settings.- Parameters:
biomes- the biomes the structure may generate inspawnOverrides- the spawners the structure replaces inside its boundsstep- the generation step the structure is placed interrainAdaptation- how the structure reshapes the terrain it lands on- Returns:
- new structure settings
- Since:
- 3.4.0
-
of
Creates new structure settings with no spawn overrides, placed inDecoration.SURFACE_STRUCTURESwithout reshaping terrain.- Parameters:
biomes- the biomes the structure may generate in- Returns:
- new structure settings
- Since:
- 3.4.0
-
decode
Reads Minecraft structure settings.- Parameters:
minecraftSettings- the structure settings to read- Returns:
- the decoded structure settings
- Since:
- 3.4.0
-
builder
Creates a new builder.- Parameters:
biomes- the biomes the structure may generate in- Returns:
- a new builder
- Since:
- 3.4.0
-