private static class ModAPIManager.APIContainer extends DummyModContainer
ModContainer.Disableable
Modifier and Type | Field and Description |
---|---|
private java.util.Set<java.lang.String> |
currentReferents |
private ArtifactVersion |
ourVersion |
private ArtifactVersion |
ownerMod |
private java.util.Set<java.lang.String> |
packages |
private java.lang.String |
providedAPI |
private java.util.List<ArtifactVersion> |
referredMods |
private boolean |
selfReferenced |
private java.io.File |
source |
private java.lang.String |
version |
EMPTY_PROPERTIES
Constructor and Description |
---|
APIContainer(java.lang.String providedAPI,
java.lang.String apiVersion,
java.io.File source,
ArtifactVersion ownerMod) |
Modifier and Type | Method and Description |
---|---|
void |
addAPIReference(java.lang.String embedded) |
void |
addAPIReferences(java.util.List<java.lang.String> candidateIds) |
void |
addOwnedPackage(java.lang.String apiPackage) |
java.util.List<ArtifactVersion> |
getDependants()
A list of modids that should be loaded after this one.
|
java.util.List<ArtifactVersion> |
getDependencies()
A list of modids that should be loaded prior to this one.
|
java.lang.String |
getModId()
The globally unique modid for this mod
|
java.lang.String |
getName()
A human readable name
|
ArtifactVersion |
getProcessedVersion() |
java.io.File |
getSource()
The location on the file system which this mod came from
|
java.lang.String |
getVersion()
A human readable version identifier
|
(package private) void |
markSelfReferenced() |
java.lang.String |
toString() |
void |
validate(java.lang.String providedAPI,
java.lang.String apiOwner,
java.lang.String apiVersion) |
acceptableMinecraftVersionRange, bindMetadata, canBeDisabled, getClassVersion, getCustomModProperties, getCustomResourcePackClass, getDisplayVersion, getGuiClassName, getMetadata, getMod, getOwnedPackages, getRequirements, getSharedModDescriptor, getSigningCertificate, getSortingRules, getUpdateUrl, isImmutable, matches, registerBus, setClassVersion, setEnabledState, shouldLoadInEnvironment
private java.util.List<ArtifactVersion> referredMods
private ArtifactVersion ownerMod
private ArtifactVersion ourVersion
private java.lang.String providedAPI
private java.io.File source
private java.lang.String version
private java.util.Set<java.lang.String> currentReferents
private java.util.Set<java.lang.String> packages
private boolean selfReferenced
public APIContainer(java.lang.String providedAPI, java.lang.String apiVersion, java.io.File source, ArtifactVersion ownerMod)
public java.io.File getSource()
ModContainer
getSource
in interface ModContainer
getSource
in class DummyModContainer
public java.lang.String getVersion()
ModContainer
getVersion
in interface ModContainer
getVersion
in class DummyModContainer
public java.lang.String getName()
ModContainer
getName
in interface ModContainer
getName
in class DummyModContainer
public java.lang.String getModId()
ModContainer
getModId
in interface ModContainer
getModId
in class DummyModContainer
public java.util.List<ArtifactVersion> getDependants()
ModContainer
getDependants
in interface ModContainer
getDependants
in class DummyModContainer
public java.util.List<ArtifactVersion> getDependencies()
ModContainer
getDependencies
in interface ModContainer
getDependencies
in class DummyModContainer
public ArtifactVersion getProcessedVersion()
getProcessedVersion
in interface ModContainer
getProcessedVersion
in class DummyModContainer
public void validate(java.lang.String providedAPI, java.lang.String apiOwner, java.lang.String apiVersion)
public java.lang.String toString()
toString
in class DummyModContainer
public void addAPIReference(java.lang.String embedded)
public void addOwnedPackage(java.lang.String apiPackage)
public void addAPIReferences(java.util.List<java.lang.String> candidateIds)
void markSelfReferenced()