public class DummyModContainer extends Object implements ModContainer
Constructor and Description |
---|
DummyModContainer() |
DummyModContainer(ModMetadata md) |
DummyModContainer(String label) |
Modifier and Type | Method and Description |
---|---|
VersionRange |
acceptableMinecraftVersionRange() |
void |
bindMetadata(MetadataCollection mc)
Attach this mod to it's metadata from the supplied metadata collection
|
List<ArtifactVersion> |
getDependants()
A list of modids that should be loaded after this one.
|
List<ArtifactVersion> |
getDependencies()
A list of modids that should be loaded prior to this one.
|
String |
getDisplayVersion() |
ModMetadata |
getMetadata()
The metadata for this mod
|
Object |
getMod()
Get the actual mod object
|
String |
getModId()
The globally unique modid for this mod
|
String |
getName()
A human readable name
|
ArtifactVersion |
getProcessedVersion() |
Set<ArtifactVersion> |
getRequirements()
A list of the modids that this mod requires loaded prior to loading
|
Certificate |
getSigningCertificate() |
String |
getSortingRules()
A representative string encapsulating the sorting preferences for this
mod
|
File |
getSource()
The location on the file system which this mod came from
|
String |
getVersion()
A human readable version identifier
|
boolean |
isImmutable() |
boolean |
isNetworkMod() |
boolean |
matches(Object mod)
Does this mod match the supplied mod
|
boolean |
registerBus(com.google.common.eventbus.EventBus bus,
LoadController controller)
Register the event bus for the mod and the controller for error handling
Returns if this bus was successfully registered - disabled mods and other
mods that don't need real events should return false and avoid further
processing
|
void |
setEnabledState(boolean enabled)
Set the enabled/disabled state of this mod
|
String |
toString() |
public DummyModContainer(ModMetadata md)
public DummyModContainer(String label)
public DummyModContainer()
public void bindMetadata(MetadataCollection mc)
ModContainer
bindMetadata
in interface ModContainer
public List<ArtifactVersion> getDependants()
ModContainer
getDependants
in interface ModContainer
public List<ArtifactVersion> getDependencies()
ModContainer
getDependencies
in interface ModContainer
public Set<ArtifactVersion> getRequirements()
ModContainer
getRequirements
in interface ModContainer
public ModMetadata getMetadata()
ModContainer
getMetadata
in interface ModContainer
public Object getMod()
ModContainer
getMod
in interface ModContainer
public String getModId()
ModContainer
getModId
in interface ModContainer
public String getName()
ModContainer
getName
in interface ModContainer
public String getSortingRules()
ModContainer
getSortingRules
in interface ModContainer
public File getSource()
ModContainer
getSource
in interface ModContainer
public String getVersion()
ModContainer
getVersion
in interface ModContainer
public boolean matches(Object mod)
ModContainer
matches
in interface ModContainer
public void setEnabledState(boolean enabled)
ModContainer
setEnabledState
in interface ModContainer
public boolean registerBus(com.google.common.eventbus.EventBus bus, LoadController controller)
ModContainer
registerBus
in interface ModContainer
public ArtifactVersion getProcessedVersion()
getProcessedVersion
in interface ModContainer
public boolean isImmutable()
isImmutable
in interface ModContainer
public boolean isNetworkMod()
isNetworkMod
in interface ModContainer
public String getDisplayVersion()
getDisplayVersion
in interface ModContainer
public VersionRange acceptableMinecraftVersionRange()
acceptableMinecraftVersionRange
in interface ModContainer
public Certificate getSigningCertificate()
getSigningCertificate
in interface ModContainer