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
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface StructureSet
StructureSet.Entry -
Method Summary
Modifier and TypeMethodDescriptionstatic ComposedStructureSet.Builderbuilder()Creates a new builder.static ComposedStructureSetof(@Nullable ResourceKey resourceKey, List<StructureSet.Entry> structures, StructurePlacement placement) Creates a new composed structure set.How this set spreads its structures.The resource key of the structure set.The weighted structures in this set.default ComposedStructureSet.BuilderConverts this object back to a builder.Methods inherited from interface Registerable
registerMethods inherited from interface StructureSet
wrapMethods inherited from interface Wrapper
asHandle, toMinecraft, unwrap
-
Method Details
-
resourceKey
The resource key of the structure set.- Returns:
- the resource key of the structure set, if present
- Since:
- 3.4.0
-
structures
The weighted structures in this set.- Returns:
- the entries of this set
- Since:
- 3.4.0
-
placement
How this set spreads its structures.- Returns:
- the placement of this set
- Since:
- 3.4.0
-
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 presentstructures- the weighted structures in the setplacement- how the set spreads its structures- Returns:
- a new composed structure set
- Since:
- 3.4.0
-
builder
Creates a new builder.- Returns:
- a new builder
- Since:
- 3.4.0
-