Class OceanRuinStructure.Builder

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

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

  • Method Details

    • resourceKey

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

      @AsOf("3.4.0") public OceanRuinStructure.Builder biomeTemperature(OceanRuinStructure.BiomeTemperature biomeTemperature)
      Sets the template set the ruin is drawn from.
      Parameters:
      biomeTemperature - the biome temperature
      Returns:
      this builder
      Since:
      3.4.0
    • largeProbability

      @AsOf("3.4.0") public OceanRuinStructure.Builder largeProbability(float largeProbability)
      Sets the chance that the ruin is a large one.
      Parameters:
      largeProbability - the large ruin probability, from 0 to 1
      Returns:
      this builder
      Since:
      3.4.0
    • clusterProbability

      @AsOf("3.4.0") public OceanRuinStructure.Builder clusterProbability(float clusterProbability)
      Sets the chance that a large ruin is surrounded by smaller ones.
      Parameters:
      clusterProbability - the cluster probability, from 0 to 1
      Returns:
      this builder
      Since:
      3.4.0
    • build

      @AsOf("3.4.0") public OceanRuinStructure build()
      Builds the ocean ruin.
      Returns:
      the ocean ruin
      Since:
      3.4.0