Interface ForgeGradleExtension.Attributes
- Enclosing interface:
ForgeGradleExtension
public static interface ForgeGradleExtension.Attributes
This interface contains the attributes used by the Minecraft extension for resolving the
Minecraft and deobfuscated dependencies.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionorg.gradle.api.attributes.Attribute<String> The requested mappings channel of the project.org.gradle.api.attributes.Attribute<String> The requested mappings version of the project.org.gradle.api.attributes.Attribute<String> getOs()The operating system of the project's host.
-
Method Details
-
getOs
org.gradle.api.attributes.Attribute<String> getOs()The operating system of the project's host.
This is used to filter natives from the Minecraft repo.
- Returns:
- The operating system attribute
-
getMappingsChannel
org.gradle.api.attributes.Attribute<String> getMappingsChannel()The requested mappings channel of the project.
This is determined using
MinecraftMappings.getChannel()viaMinecraftMappingsContainer.getMappings()- Returns:
- The mappings channel attribute
- See Also:
-
getMappingsVersion
org.gradle.api.attributes.Attribute<String> getMappingsVersion()The requested mappings version of the project.
This is determined using
MinecraftMappings.getVersion()viaMinecraftMappingsContainer.getMappings()- Returns:
- The mappings channel version
- See Also:
-