Interface ServerWorldProperties.LoadOptions.Builder.LoadStep
- All Superinterfaces:
AbstractBuilder<ServerWorldProperties.LoadOptions>
,Builder<ServerWorldProperties.LoadOptions,
,ServerWorldProperties.LoadOptions.Builder> ResettableBuilder<ServerWorldProperties.LoadOptions,
,ServerWorldProperties.LoadOptions.Builder> ServerWorldProperties.LoadOptions.Builder
- Enclosing interface:
ServerWorldProperties.LoadOptions.Builder
public static interface ServerWorldProperties.LoadOptions.Builder.LoadStep
extends ServerWorldProperties.LoadOptions.Builder
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.spongepowered.api.world.server.storage.ServerWorldProperties.LoadOptions.Builder
ServerWorldProperties.LoadOptions.Builder.CreateStep, ServerWorldProperties.LoadOptions.Builder.GetStep, ServerWorldProperties.LoadOptions.Builder.LoadStep
-
Method Summary
Modifier and TypeMethodDescriptionfallbackWorldArchetype
(WorldArchetype worldArchetype) Sets theWorldArchetype
that will be used as fallback in case no valid archetype could be determined.loadCallback
(Consumer<ServerWorldProperties> loadCallback) overrideWorldArchetype
(WorldArchetype worldArchetype) Sets theWorldArchetype
to use instead of the one that was persisted on the disk.Methods inherited from interface net.kyori.adventure.builder.AbstractBuilder
build
Methods inherited from interface org.spongepowered.api.world.server.storage.ServerWorldProperties.LoadOptions.Builder
create, get, load
-
Method Details
-
overrideWorldArchetype
ServerWorldProperties.LoadOptions.Builder.LoadStep overrideWorldArchetype(WorldArchetype worldArchetype) Sets theWorldArchetype
to use instead of the one that was persisted on the disk.Note: This may impact world generation, causing new terrain to not blend seamlessly with existing terrain. Additionally, the world will be saved with the new
WorldArchetype
.- Parameters:
worldArchetype
- The new archetype- Returns:
- This builder, for chaining
-
fallbackWorldArchetype
ServerWorldProperties.LoadOptions.Builder.LoadStep fallbackWorldArchetype(WorldArchetype worldArchetype) Sets theWorldArchetype
that will be used as fallback in case no valid archetype could be determined.Note: This may impact world generation, causing new terrain to not blend seamlessly with existing terrain. Additionally, the world will be saved with the new
WorldArchetype
.- Parameters:
worldArchetype
- The archetype to use as fallback- Returns:
- This builder, for chaining
-
loadCallback
ServerWorldProperties.LoadOptions.Builder.LoadStep loadCallback(Consumer<ServerWorldProperties> loadCallback)
-