/** * Register active system(s). * Only one instance of each class is allowed. * Use {@link #dependsOn} from within plugins whenever possible. * * @param systems systems to add, order is preserved. * @return this * @throws WorldConfigurationException if registering the same class twice. */ public WorldConfigurationBuilder with(BaseSystem... systems) { addSystems(Priority.NORMAL, systems); return this; }
/** * Register active system(s). * Only one instance of each class is allowed. * Use {@link #dependsOn} from within plugins whenever possible. * * @param systems systems to add, order is preserved. * @return this * @throws WorldConfigurationException if registering the same class twice. */ public WorldConfigurationBuilder with(BaseSystem... systems) { addSystems(Priority.NORMAL, systems); return this; }
/** * Register active system(s). * Only one instance of each class is allowed. * Use {@link #dependsOn} from within plugins whenever possible. * * @param systems systems to add, order is preserved. * @param priority priority of added systems, higher priority are added before lower priority. * @return this * @throws WorldConfigurationException if registering the same class twice. */ public WorldConfigurationBuilder with(int priority, BaseSystem... systems) { addSystems(priority, systems); return this; }
/** * Register active system(s). * Only one instance of each class is allowed. * Use {@link #dependsOn} from within plugins whenever possible. * * @param systems systems to add, order is preserved. * @param priority priority of added systems, higher priority are added before lower priority. * @return this * @throws WorldConfigurationException if registering the same class twice. */ public WorldConfigurationBuilder with(int priority, BaseSystem... systems) { addSystems(priority, systems); return this; }