Class SimpleStructure.Builder
java.lang.Object
dev.wyck.worldgen.structure.types.SimpleStructure.Builder
- Enclosing interface:
SimpleStructure
Builder for
SimpleStructure.- Since:
- 3.4.0
-
Constructor Summary
ConstructorsConstructorDescriptionBuilder(StructureType type, StructureSettings settings) Builder(SimpleStructure structure) -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the structure.resourceKey(ResourceKey resourceKey) Sets the resource key of the structure.settings(StructureSettings settings) Sets the settings every structure carries.type(StructureType type) Sets the structure type.
-
Constructor Details
-
Builder
-
Builder
-
-
Method Details
-
resourceKey
Sets the resource key of the structure.- Parameters:
resourceKey- the resource key of the structure- Returns:
- this builder
- Since:
- 3.4.0
-
type
Sets the structure type.- Parameters:
type- the structure type, one ofSimpleStructure.TYPES- Returns:
- this builder
- Since:
- 3.4.0
-
settings
Sets the settings every structure carries.- Parameters:
settings- the settings of the structure- Returns:
- this builder
- Since:
- 3.4.0
-
build
Builds the structure.- Returns:
- the structure
- Throws:
IllegalArgumentException- if the type takes configuration of its own- Since:
- 3.4.0
-