Interface WorldTemplate.Builder
- All Superinterfaces:
AbstractBuilder<WorldTemplate>
,Builder<WorldTemplate,
,WorldTemplate.Builder> CopyableBuilder<WorldTemplate,
,WorldTemplate.Builder> ResettableBuilder<WorldTemplate,
,WorldTemplate.Builder> ResourceKeyedBuilder<WorldTemplate,
WorldTemplate.Builder>
- Enclosing interface:
- WorldTemplate
public static interface WorldTemplate.Builder
extends ResourceKeyedBuilder<WorldTemplate,WorldTemplate.Builder>, CopyableBuilder<WorldTemplate,WorldTemplate.Builder>
-
Method Summary
Modifier and TypeMethodDescriptionfrom
(ServerWorld world) from
(ServerWorldProperties worldProperties) fromDataPack
(DataView pack) Creates a world template based on the given data view.pack
(DataPack<WorldTemplate> pack) 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.ResourceKeyedBuilder
key
-
Method Details
-
add
-
fromDataPack
Creates a world template based on the given data view.The given data must be equivalent to a data-pack for world-templates (dimension)
- Parameters:
pack
- The data- Returns:
- This builder, for chaining
- Throws:
IOException
-
from
-
from
-
pack
-