Package net.fabricmc.loom.api
Interface LoomGradleExtensionAPI
- All Known Subinterfaces:
LoomGradleExtension
- All Known Implementing Classes:
LoomGradleExtensionApiImpl,LoomGradleExtensionImpl,MinecraftGradleExtension
public interface LoomGradleExtensionAPI
This is the public api available exposed to build scripts.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidaddDecompiler(LoomDecompiler decompiler)default voidaddJarProcessor(JarProcessor processor)voiddisableDeprecatedPomGeneration(org.gradle.api.publish.maven.MavenPublication publication)Disables the deprecated POM generation for a publication.default FileDeprecated, for removal: This API element is subject to removal in a future version.org.gradle.api.file.RegularFilePropertydefault StringDeprecated, for removal: This API element is subject to removal in a future version.org.gradle.api.provider.Property<String>default List<LoomDecompiler>Deprecated, for removal: This API element is subject to removal in a future version.org.gradle.api.provider.Property<Boolean>When true loom will apply transitive access wideners from compile dependencies.org.gradle.api.provider.ListProperty<LoomDecompiler>org.gradle.api.provider.ListProperty<JarProcessor>default List<JarProcessor>Deprecated, for removal: This API element is subject to removal in a future version.org.gradle.api.file.ConfigurableFileCollectiongetMixin()Reads the mod version from the fabric.mod.json file located in the main sourcesets resources.default StringDeprecated, for removal: This API element is subject to removal in a future version.org.gradle.api.provider.Property<Boolean>org.gradle.api.NamedDomainObjectContainer<RunConfigSettings>org.gradle.api.provider.Property<Boolean>If true, Loom will replace the-devjars in the*Elementsconfigurations with remapped outgoing variants.org.gradle.api.provider.Property<Boolean>default booleanDeprecated, for removal: This API element is subject to removal in a future version.default booleanDeprecated, for removal: This API element is subject to removal in a future version.org.gradle.api.artifacts.Dependencylayered(org.gradle.api.Action<LayeredMappingSpecBuilder> action)voidmixin(org.gradle.api.Action<MixinExtensionAPI> action)default org.gradle.api.artifacts.Dependencyvoidruns(org.gradle.api.Action<org.gradle.api.NamedDomainObjectContainer<RunConfigSettings>> action)default voidsetAccessWidener(File file)Deprecated, for removal: This API element is subject to removal in a future version.default voidsetCustomManifest(String customManifest)Deprecated, for removal: This API element is subject to removal in a future version.default voidsetRefmapName(String refmapName)Deprecated, for removal: This API element is subject to removal in a future version.default voidsetRemapMod(boolean remapMod)Deprecated, for removal: This API element is subject to removal in a future version.default voidsetShareCaches(boolean shareCaches)Deprecated, for removal: This API element is subject to removal in a future version.default void
-
Method Details
-
getDeprecationHelper
-
getAccessWidenerPath
org.gradle.api.file.RegularFileProperty getAccessWidenerPath() -
getAccessWidener
Deprecated, for removal: This API element is subject to removal in a future version. -
setAccessWidener
@Deprecated(forRemoval=true) @ScheduledForRemoval(inVersion="0.11") default void setAccessWidener(File file)Deprecated, for removal: This API element is subject to removal in a future version. -
getGameDecompilers
org.gradle.api.provider.ListProperty<LoomDecompiler> getGameDecompilers() -
getDecompilers
@Deprecated(forRemoval=true) @ScheduledForRemoval(inVersion="0.11") default List<LoomDecompiler> getDecompilers()Deprecated, for removal: This API element is subject to removal in a future version. -
addDecompiler
-
getGameJarProcessors
org.gradle.api.provider.ListProperty<JarProcessor> getGameJarProcessors() -
getJarProcessors
@Deprecated(forRemoval=true) @ScheduledForRemoval(inVersion="0.11") default List<JarProcessor> getJarProcessors()Deprecated, for removal: This API element is subject to removal in a future version. -
addJarProcessor
-
getLog4jConfigs
org.gradle.api.file.ConfigurableFileCollection getLog4jConfigs() -
officialMojangMappings
default org.gradle.api.artifacts.Dependency officialMojangMappings() -
layered
org.gradle.api.artifacts.Dependency layered(org.gradle.api.Action<LayeredMappingSpecBuilder> action) -
getRefmapName
Deprecated, for removal: This API element is subject to removal in a future version. -
setRefmapName
@Deprecated(forRemoval=true) @ScheduledForRemoval(inVersion="0.11") default void setRefmapName(String refmapName)Deprecated, for removal: This API element is subject to removal in a future version. -
getRemapArchives
org.gradle.api.provider.Property<Boolean> getRemapArchives() -
isRemapMod
Deprecated, for removal: This API element is subject to removal in a future version. -
setRemapMod
@Deprecated(forRemoval=true) @ScheduledForRemoval(inVersion="0.11") default void setRemapMod(boolean remapMod)Deprecated, for removal: This API element is subject to removal in a future version. -
runs
void runs(org.gradle.api.Action<org.gradle.api.NamedDomainObjectContainer<RunConfigSettings>> action) -
getRunConfigs
org.gradle.api.NamedDomainObjectContainer<RunConfigSettings> getRunConfigs() -
mixin
-
getMixin
-
getCustomMinecraftManifest
org.gradle.api.provider.Property<String> getCustomMinecraftManifest() -
setCustomManifest
@Deprecated(forRemoval=true) @ScheduledForRemoval(inVersion="0.11") default void setCustomManifest(String customManifest)Deprecated, for removal: This API element is subject to removal in a future version. -
getCustomManifest
@Deprecated(forRemoval=true) @ScheduledForRemoval(inVersion="0.11") default String getCustomManifest()Deprecated, for removal: This API element is subject to removal in a future version. -
getSetupRemappedVariants
org.gradle.api.provider.Property<Boolean> getSetupRemappedVariants()If true, Loom will replace the-devjars in the*Elementsconfigurations with remapped outgoing variants.Will only apply if
getRemapArchives()is also true.- Returns:
- the property controlling the setup of remapped variants
-
disableDeprecatedPomGeneration
@Experimental void disableDeprecatedPomGeneration(org.gradle.api.publish.maven.MavenPublication publication)Disables the deprecated POM generation for a publication. This is useful if you want to suppress deprecation warnings when you're not using software components.Experimental API: Will be removed in Loom 0.12 together with the deprecated POM generation functionality.
- Parameters:
publication- the maven publication
-
getModVersion
String getModVersion()Reads the mod version from the fabric.mod.json file located in the main sourcesets resources. This is useful if you want to set the gradle version based of the version in the fabric.mod.json file.- Returns:
- the version defined in the fabric.mod.json
-
getEnableTransitiveAccessWideners
org.gradle.api.provider.Property<Boolean> getEnableTransitiveAccessWideners()When true loom will apply transitive access wideners from compile dependencies.- Returns:
- the property controlling the transitive access wideners
-