Class ShipwreckStructure.Builder

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

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

  • Method Details

    • resourceKey

      @AsOf("3.4.0") public ShipwreckStructure.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 ShipwreckStructure.Builder settings(StructureSettings settings)
      Sets the settings every structure carries.
      Parameters:
      settings - the settings of the structure
      Returns:
      this builder
      Since:
      3.4.0
    • beached

      @AsOf("3.4.0") public ShipwreckStructure.Builder beached(boolean 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

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