Class ComposedStructureSet.Builder

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

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

  • Method Details

    • resourceKey

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

      @AsOf("3.4.0") public ComposedStructureSet.Builder structures(List<StructureSet.Entry> structures)
      Sets the weighted structures in this set.
      Parameters:
      structures - the entries of this set
      Returns:
      this builder
      Since:
      3.4.0
    • placement

      @AsOf("3.4.0") public ComposedStructureSet.Builder placement(StructurePlacement placement)
      Sets how this set spreads its structures.
      Parameters:
      placement - the placement of this set
      Returns:
      this builder
      Since:
      3.4.0
    • structure

      @AsOf("3.4.0") public ComposedStructureSet.Builder structure(Structure structure)
      Adds a structure to this set with a weight of 1.
      Parameters:
      structure - the structure to add
      Returns:
      this builder
      Since:
      3.4.0
    • structure

      @AsOf("3.4.0") public ComposedStructureSet.Builder structure(Structure structure, int weight)
      Adds a structure to this set with the given weight.
      Parameters:
      structure - the structure to add
      weight - the weight the structure is chosen by
      Returns:
      this builder
      Since:
      3.4.0
    • build

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