Interface Library
-
@Immutable @TypeAdapters public interface Library
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description LibraryDownloadsdownloads()default booleanisNatives()Get whether this is a natives declaration or a standard dependency declaration.GroupArtifactVersionname()default java.util.Map<java.lang.String,java.lang.String>natives()A map of OS name to classifier.default RuleDeclarationrules()
-
-
-
Method Detail
-
downloads
LibraryDownloads downloads()
-
name
GroupArtifactVersion name()
-
natives
@Default default java.util.Map<java.lang.String,java.lang.String> natives()
A map of OS name to classifier.The value classifier may include the
${arch}token, which can be either32or64.- Returns:
- the natives this artifact may have
-
isNatives
default boolean isNatives()
Get whether this is a natives declaration or a standard dependency declaration.When a dependency contains natives, Mojang specifies it twice: Once with natives, and once without. The ones with natives are used only for extracting natives, and the ones without are only used when downloading dependencies.
- Returns:
- whether this is a natives dependency
-
rules
@Default default RuleDeclaration rules()
-
-