Interface JigsawPool
- All Superinterfaces:
DataPackSerializable
,DefaultedRegistryValue
@CatalogedBy(JigsawPools.class)
public interface JigsawPool
extends DefaultedRegistryValue, DataPackSerializable
A pool to generate
structures
using jigsaw blocks.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic JigsawPool.Builder
builder()
Creates a newJigsawPool.Builder
to create aJigsawPool
.elements()
Returns the weighted table ofelements
.fallback()
Returns the fallback pool, used when the selec e.g.Methods inherited from interface org.spongepowered.api.datapack.DataPackSerializable
toDataPack
Methods inherited from interface org.spongepowered.api.registry.DefaultedRegistryValue
asDefaultedReference, findKey, key
-
Method Details
-
builder
Creates a newJigsawPool.Builder
to create aJigsawPool
.- Returns:
- The new builder
-
fallback
JigsawPool fallback()Returns the fallback pool, used when the selec e.g.JigsawPools.EMPTY
- Returns:
- The fallback pool.
-
elements
WeightedTable<JigsawPoolElement> elements()Returns the weighted table ofelements
.- Returns:
- The weighted table of elements
-