Quilt Loader 1
Loading...
Searching...
No Matches
org.quiltmc.loader.api.ModDependencyIdentifier Interface Reference

A dependency identifier is a combination of a maven group and a mod id. More...

Inheritance diagram for org.quiltmc.loader.api.ModDependencyIdentifier:
org.quiltmc.loader.impl.metadata.qmj.ModDependencyIdentifierImpl

Public Member Functions

String mavenGroup ()
String id ()
String toString ()

Static Public Member Functions

static ModDependencyIdentifier of (String mavenGroup, String id)

Detailed Description

A dependency identifier is a combination of a maven group and a mod id.

Generally just the mod id will suffice for most dependency declarations.

The maven group is particularly useful in cases where depending on a specific fork of a mod is desired, typically where mod compatibility does not work without a fork. The fork of the mod would declare it's quilt.mod.json exactly the same as the upstream mod, but declare a different maven group to allow distinguishing between the two mods sharing the same id inside dependency declarations.

Member Function Documentation

◆ id()

String org.quiltmc.loader.api.ModDependencyIdentifier.id ( )
Returns
the mod id of the dependent mod

Implemented in org.quiltmc.loader.impl.metadata.qmj.ModDependencyIdentifierImpl.

◆ mavenGroup()

String org.quiltmc.loader.api.ModDependencyIdentifier.mavenGroup ( )
Returns
the maven group, or an empty string where no group requirement is specified

Implemented in org.quiltmc.loader.impl.metadata.qmj.ModDependencyIdentifierImpl.

◆ toString()

String org.quiltmc.loader.api.ModDependencyIdentifier.toString ( )
Returns
a string in the form mavenGroup():id(), or simply id() if mavenGroup is an empty string.

Implemented in org.quiltmc.loader.impl.metadata.qmj.ModDependencyIdentifierImpl.


The documentation for this interface was generated from the following file:
  • src/main/java/org/quiltmc/loader/api/ModDependencyIdentifier.java