Interface ServerWorldProperties.LoadOptions.Builder
- All Superinterfaces:
AbstractBuilder<ServerWorldProperties.LoadOptions>,Builder<ServerWorldProperties.LoadOptions,,ServerWorldProperties.LoadOptions.Builder> ResettableBuilder<ServerWorldProperties.LoadOptions,ServerWorldProperties.LoadOptions.Builder>
- All Known Subinterfaces:
ServerWorldProperties.LoadOptions.Builder.CreateStep,ServerWorldProperties.LoadOptions.Builder.GetStep,ServerWorldProperties.LoadOptions.Builder.LoadStep
- Enclosing interface:
ServerWorldProperties.LoadOptions
public static interface ServerWorldProperties.LoadOptions.Builder
extends Builder<ServerWorldProperties.LoadOptions,ServerWorldProperties.LoadOptions.Builder>
A builder to create
ServerWorldProperties.LoadOptions.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfacestatic interfacestatic interface -
Method Summary
Modifier and TypeMethodDescriptioncreate(WorldArchetype worldArchetype) Appends a create operation to this option which will attempt to create a new world with the givenWorldArchetype.get()Appends a get operation to this option which will attempt to find an already loaded instance.load()Appends a load operation to this option which will attempt to load an existing world from the disk.Methods inherited from interface net.kyori.adventure.builder.AbstractBuilder
build
-
Method Details
-
get
Appends a get operation to this option which will attempt to find an already loaded instance.- Returns:
- This builder, for chaining
-
load
Appends a load operation to this option which will attempt to load an existing world from the disk.- Returns:
- This builder, for chaining
-
create
Appends a create operation to this option which will attempt to create a new world with the givenWorldArchetype.- Parameters:
worldArchetype- The archetype to use for world creation- Returns:
- This builder, for chaining
-