Add shortcut "asBuilder" to WorldTemplate.
@@ -91,6 +91,10 @@ static WorldTemplate theEnd() {
Optional<Integer> viewDistance();
+ default Builder asBuilder() {
+ return Sponge.getGame().getBuilderProvider().provide(Builder.class).from(this);
+ }
+
interface Builder extends ResourceKeyedBuilder<WorldTemplate, Builder>, CopyableBuilder<WorldTemplate, Builder> {
Builder displayName(@Nullable Component displayName);
