Interface ComposedStructureSet

All Superinterfaces:
Keyed, Registerable<ComposedStructureSet>, StructureSet, Wrapper

@NullMarked @AsOf("3.4.0") public interface ComposedStructureSet extends StructureSet, Registerable<ComposedStructureSet>
A structure set authored from, or decoded into, its entries and placement.
Since:
3.4.0
  • Method Details

    • resourceKey

      @AsOf("3.4.0") Optional<ResourceKey> resourceKey()
      The resource key of the structure set.
      Returns:
      the resource key of the structure set, if present
      Since:
      3.4.0
    • structures

      @AsOf("3.4.0") List<StructureSet.Entry> structures()
      The weighted structures in this set.
      Returns:
      the entries of this set
      Since:
      3.4.0
    • placement

      @AsOf("3.4.0") StructurePlacement placement()
      How this set spreads its structures.
      Returns:
      the placement of this set
      Since:
      3.4.0
    • toBuilder

      @AsOf("3.4.0") default ComposedStructureSet.Builder toBuilder()
      Converts this object back to a builder.
      Returns:
      a builder with the same values as this object
      Since:
      3.4.0
    • of

      @AsOf("3.4.0") static ComposedStructureSet of(@Nullable ResourceKey resourceKey, List<StructureSet.Entry> structures, StructurePlacement placement)
      Creates a new composed structure set.
      Parameters:
      resourceKey - the resource key of the set, or null if not present
      structures - the weighted structures in the set
      placement - how the set spreads its structures
      Returns:
      a new composed structure set
      Since:
      3.4.0
    • builder

      @AsOf("3.4.0") static ComposedStructureSet.Builder builder()
      Creates a new builder.
      Returns:
      a new builder
      Since:
      3.4.0