Building WorldArchetypes no longer auto registers them.
*/
package org.spongepowered.api.world;
+import org.spongepowered.api.CatalogKey;
import org.spongepowered.api.CatalogType;
import org.spongepowered.api.GameRegistry;
import org.spongepowered.api.Server;
* Builds the {@link WorldArchetype} which can be used to create
* a {@link World} in {@link Server#createWorldProperties(String, WorldArchetype)}.
*
- * <p>This will also register the settings as a new type in the
- * {@link GameRegistry}.</p>
- *
- * @param id The id that this settings will be registered under
- * @param name The human readable name of this settings
- * @return The settings
+ * @param key The key that this archetype should have
+ * @return The archetype
*/
- WorldArchetype build(String id, String name) throws IllegalArgumentException, CatalogTypeAlreadyRegisteredException;
+ WorldArchetype build(CatalogKey key) throws IllegalArgumentException;
}
}
