Quilt Loader 1
Loading...
Searching...
No Matches
net.fabricmc.loader.api.metadata.ModDependency Interface Reference

Represents a dependency. More...

Inheritance diagram for net.fabricmc.loader.api.metadata.ModDependency:
org.quiltmc.loader.impl.fabric.metadata.ModDependencyImpl

Classes

enum  Kind

Public Member Functions

Kind getKind ()
 Get the kind of dependency.
String getModId ()
 Returns the ID of the mod to check.
boolean matches (Version version)
 Returns if the version fulfills this dependency's version requirement.
Collection< VersionPredicategetVersionRequirements ()
 Returns a representation of the dependency's version requirements.
List< VersionInterval > getVersionIntervals ()
 Returns the version intervals covered by the dependency's version requirements.

Detailed Description

Represents a dependency.

Deprecated
Please use quilt's org.quiltmc.loader.api.ModMetadata instead.

Member Function Documentation

◆ getKind()

Kind net.fabricmc.loader.api.metadata.ModDependency.getKind ( )

Get the kind of dependency.

Implemented in org.quiltmc.loader.impl.fabric.metadata.ModDependencyImpl.

◆ getModId()

String net.fabricmc.loader.api.metadata.ModDependency.getModId ( )

Returns the ID of the mod to check.

Implemented in org.quiltmc.loader.impl.fabric.metadata.ModDependencyImpl.

◆ getVersionIntervals()

List< VersionInterval > net.fabricmc.loader.api.metadata.ModDependency.getVersionIntervals ( )

Returns the version intervals covered by the dependency's version requirements.

There may be multiple because the allowed range may not be consecutive.

Implemented in org.quiltmc.loader.impl.fabric.metadata.ModDependencyImpl.

◆ getVersionRequirements()

Collection< VersionPredicate > net.fabricmc.loader.api.metadata.ModDependency.getVersionRequirements ( )

Returns a representation of the dependency's version requirements.

Returns
representation of the dependency's version requirements

Implemented in org.quiltmc.loader.impl.fabric.metadata.ModDependencyImpl.

◆ matches()

boolean net.fabricmc.loader.api.metadata.ModDependency.matches ( Version version)

Returns if the version fulfills this dependency's version requirement.

Parameters
versionthe version to check

Implemented in org.quiltmc.loader.impl.fabric.metadata.ModDependencyImpl.


The documentation for this interface was generated from the following file:
  • src/fabric/api/java/net/fabricmc/loader/api/metadata/ModDependency.java