setGenerator

public final Unit setGenerator(String generator)

The name of a generator, which has been registered in ResourceClassGeneratorRegistry or MindustryAssetsExtension.generators.