Class StructureSettings.Builder

java.lang.Object
dev.wyck.worldgen.structure.StructureSettings.Builder
Enclosing interface:
StructureSettings

@AsOf("3.4.0") public static final class StructureSettings.Builder extends Object
Builder for StructureSettings.
Since:
3.4.0
  • Constructor Details

  • Method Details

    • biomes

      @AsOf("3.4.0") public StructureSettings.Builder biomes(TagSet<Biome> biomes)
      Sets the biomes the structure may generate in.
      Parameters:
      biomes - the biomes the structure may generate in
      Returns:
      this builder
      Since:
      3.4.0
    • spawnOverrides

      @AsOf("3.4.0") public StructureSettings.Builder spawnOverrides(Map<MobCategory, StructureSpawnOverride> spawnOverrides)
      Sets the spawn overrides.
      Parameters:
      spawnOverrides - the spawners the structure replaces inside its bounds
      Returns:
      this builder
      Since:
      3.4.0
    • step

      @AsOf("3.4.0") public StructureSettings.Builder step(Decoration step)
      Sets the generation step the structure is placed in.
      Parameters:
      step - the generation step
      Returns:
      this builder
      Since:
      3.4.0
    • terrainAdaptation

      @AsOf("3.4.0") public StructureSettings.Builder terrainAdaptation(TerrainAdaptation terrainAdaptation)
      Sets how the structure reshapes the terrain it lands on.
      Parameters:
      terrainAdaptation - the terrain adaptation
      Returns:
      this builder
      Since:
      3.4.0
    • spawnOverride

      @AsOf("3.4.0") public StructureSettings.Builder spawnOverride(MobCategory category, StructureSpawnOverride override)
      Adds a spawn override for one mob category.
      Parameters:
      category - the category to override
      override - the replacement spawners
      Returns:
      this builder
      Since:
      3.4.0
    • build

      @AsOf("3.4.0") public StructureSettings build()
      Builds the structure settings.
      Returns:
      the structure settings
      Since:
      3.4.0