Class ShipwreckStructure.Builder
java.lang.Object
dev.wyck.worldgen.structure.types.ShipwreckStructure.Builder
- Enclosing interface:
ShipwreckStructure
Builder for
ShipwreckStructure.- Since:
- 3.4.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbeached(boolean beached) Sets whether the wreck is placed on land rather than on the ocean floor.build()Builds the structure.resourceKey(ResourceKey resourceKey) Sets the resource key of the structure.settings(StructureSettings settings) Sets the settings every structure carries.
-
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
-
settings
Sets the settings every structure carries.- Parameters:
settings- the settings of the structure- Returns:
- this builder
- Since:
- 3.4.0
-
beached
Sets whether the wreck is placed on land rather than on the ocean floor.- Parameters:
beached- whether the shipwreck is beached- Returns:
- this builder
- Since:
- 3.4.0
-
build
Builds the structure.- Returns:
- the structure
- Since:
- 3.4.0
-