Package net.fabricmc.loom.api.fabricapi
Interface DataGenerationSettings
public interface DataGenerationSettings
Represents the settings for data generation.
-
Method Summary
Modifier and TypeMethodDescriptionorg.gradle.api.provider.Property<Boolean> Contains a boolean property indicating whether the generated resources will be automatically added to the main sourceset.org.gradle.api.provider.Property<Boolean> Contains a boolean property indicating whether data generation will be compiled and ran with the client.org.gradle.api.provider.Property<Boolean> Contains a boolean indicating whether a run configuration should be created for the data generation process.org.gradle.api.provider.Property<Boolean> Contains a boolean property indicating whether a new source set should be created for the data generation process.org.gradle.api.provider.Property<String> getModId()Contains a string property representing the mod ID associated with the data generation process.org.gradle.api.file.RegularFilePropertyContains the output directory where generated data files will be stored.org.gradle.api.provider.Property<Boolean> Contains a boolean property indicating whether strict validation is enabled.default voidSetsgetModId()property based on theidfield defined in the provided file.
-
Method Details
-
getOutputDirectory
org.gradle.api.file.RegularFileProperty getOutputDirectory()Contains the output directory where generated data files will be stored. -
getCreateRunConfiguration
org.gradle.api.provider.Property<Boolean> getCreateRunConfiguration()Contains a boolean indicating whether a run configuration should be created for the data generation process. -
getCreateSourceSet
org.gradle.api.provider.Property<Boolean> getCreateSourceSet()Contains a boolean property indicating whether a new source set should be created for the data generation process. -
getModId
org.gradle.api.provider.Property<String> getModId()Contains a string property representing the mod ID associated with the data generation process.This must be set when
getCreateRunConfiguration()is set. -
getStrictValidation
org.gradle.api.provider.Property<Boolean> getStrictValidation()Contains a boolean property indicating whether strict validation is enabled. -
getAddToResources
org.gradle.api.provider.Property<Boolean> getAddToResources()Contains a boolean property indicating whether the generated resources will be automatically added to the main sourceset. -
getClient
org.gradle.api.provider.Property<Boolean> getClient()Contains a boolean property indicating whether data generation will be compiled and ran with the client. -
modId
SetsgetModId()property based on theidfield defined in the provided file.
-