Class ComposedStructure.Builder

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

@AsOf("3.4.0") public static final class ComposedStructure.Builder extends Object
Builder for ComposedStructure. A builder can only be obtained from an existing composed structure, since the type-specific half cannot be authored.
Since:
3.4.0
  • Constructor Details

  • Method Details

    • resourceKey

      @AsOf("3.4.0") public ComposedStructure.Builder resourceKey(ResourceKey resourceKey)
      Sets the resource key of the structure.
      Parameters:
      resourceKey - the resource key of the structure
      Returns:
      this builder
      Since:
      3.4.0
    • settings

      @AsOf("3.4.0") public ComposedStructure.Builder settings(StructureSettings settings)
      Sets the settings of the structure.
      Parameters:
      settings - the settings of the structure
      Returns:
      this builder
      Since:
      3.4.0
    • build

      @AsOf("3.4.0") public ComposedStructure build()
      Builds the composed structure.
      Returns:
      the composed structure
      Since:
      3.4.0