Interface JigsawPoolTemplate.Builder
- All Superinterfaces:
AbstractBuilder<JigsawPoolTemplate>
,Builder<JigsawPoolTemplate,
,JigsawPoolTemplate.Builder> CopyableBuilder<JigsawPoolTemplate,
,JigsawPoolTemplate.Builder> DataPackEntryBuilder<JigsawPool,
,JigsawPoolTemplate, JigsawPoolTemplate.Builder> ResettableBuilder<JigsawPoolTemplate,
,JigsawPoolTemplate.Builder> ResourceKeyedBuilder<JigsawPoolTemplate,
JigsawPoolTemplate.Builder>
- Enclosing interface:
- JigsawPoolTemplate
public static interface JigsawPoolTemplate.Builder
extends DataPackEntryBuilder<JigsawPool,JigsawPoolTemplate,JigsawPoolTemplate.Builder>
-
Method Summary
Modifier and TypeMethodDescriptionadd
(JigsawPoolElement element, int weight) Adds a jigsaw element with given weight.fallback
(RegistryReference<JigsawPool> fallback) Sets the fallback for the jigsaw pool.fallback
(JigsawPoolTemplate fallback) Sets the fallback for the jigsaw pool.name
(ResourceKey name) Sets the name of the jigsaw pool.Methods inherited from interface net.kyori.adventure.builder.AbstractBuilder
build
Methods inherited from interface org.spongepowered.api.util.CopyableBuilder
from
Methods inherited from interface org.spongepowered.api.util.DataPackEntryBuilder
fromDataPack, fromValue, pack
Methods inherited from interface org.spongepowered.api.util.ResourceKeyedBuilder
key
-
Method Details
-
add
Adds a jigsaw element with given weight.- Parameters:
element
- The elementweight
- The weight- Returns:
- This builder, for chaining
-
name
Sets the name of the jigsaw pool.- Parameters:
name
- The name- Returns:
- This builder, for chaining
-
fallback
Sets the fallback for the jigsaw pool.- Parameters:
fallback
- The fallback jigsaw pool- Returns:
- This builder, for chaining
-
fallback
Sets the fallback for the jigsaw pool.- Parameters:
fallback
- the fallback jigsaw pool- Returns:
- This builder, for chaining
-