Interface TemplatePool
- All Known Subinterfaces:
ComposedTemplatePool, ReferencedTemplatePool
The weighted set of pieces a jigsaw block draws from.
A jigsaw structure starts from one pool, and every jigsaw block in a placed piece names the pool
its neighbor comes from, which is how a village grows streets and houses outward from its
center.
- Since:
- 3.4.0
- See Also:
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic ComposedTemplatePool.Builderbuilder()Creates a new builder for an authored template pool.static TemplatePoolReads a Minecraft template pool, or a keyed template-pool holder, into a wrapper.static ReferencedTemplatePoolreference(ResourceKey key) References a template pool already registered under the given key.default TemplatePoolwrap()Resolves this pool's key in Minecraft's template-pool registry and decodes the registered value, keeping the key on the result.Methods inherited from interface Wrapper
asHandle, toMinecraft, unwrap
-
Field Details
-
EMPTY
-
-
Method Details
-
reference
References a template pool already registered under the given key.- Parameters:
key- the registry key of the template pool- Returns:
- a reference to the registered template pool
- Since:
- 3.4.0
-
wrap
Resolves this pool's key in Minecraft's template-pool registry and decodes the registered value, keeping the key on the result.- Returns:
- the decoded template pool
- Since:
- 3.4.0
-
builder
Creates a new builder for an authored template pool.- Returns:
- a new builder
- Since:
- 3.4.0
-
decode
Reads a Minecraft template pool, or a keyed template-pool holder, into a wrapper.- Parameters:
minecraftTemplatePool- the template pool or template-pool holder to read- Returns:
- a reference to the template pool, or the decoded pool when it carries no key
- Since:
- 3.4.0
-