public class DummyModContainer extends java.lang.Object implements ModContainer
ModContainer.Disableable
Modifier and Type | Field and Description |
---|---|
private int |
classVersion |
private java.lang.String |
label |
private ModMetadata |
md |
private ArtifactVersion |
processedVersion |
EMPTY_PROPERTIES
Constructor and Description |
---|
DummyModContainer() |
DummyModContainer(ModMetadata md) |
DummyModContainer(java.lang.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
|
ModContainer.Disableable |
canBeDisabled() |
int |
getClassVersion() |
java.util.Map<java.lang.String,java.lang.String> |
getCustomModProperties() |
java.lang.Class<?> |
getCustomResourcePackClass() |
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 |
getDisplayVersion() |
java.lang.String |
getGuiClassName() |
ModMetadata |
getMetadata()
The metadata for this mod
|
java.lang.Object |
getMod()
Get the actual mod object
|
java.lang.String |
getModId()
The globally unique modid for this mod
|
java.lang.String |
getName()
A human readable name
|
java.util.List<java.lang.String> |
getOwnedPackages() |
ArtifactVersion |
getProcessedVersion() |
java.util.Set<ArtifactVersion> |
getRequirements()
A list of the modids that this mod requires loaded prior to loading
|
java.util.Map<java.lang.String,java.lang.String> |
getSharedModDescriptor() |
java.security.cert.Certificate |
getSigningCertificate() |
java.lang.String |
getSortingRules()
A representative string encapsulating the sorting preferences for this
mod
|
java.io.File |
getSource()
The location on the file system which this mod came from
|
java.net.URL |
getUpdateUrl() |
java.lang.String |
getVersion()
A human readable version identifier
|
boolean |
isImmutable() |
boolean |
matches(java.lang.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 |
setClassVersion(int classVersion) |
void |
setEnabledState(boolean enabled)
Set the enabled/disabled state of this mod
|
boolean |
shouldLoadInEnvironment() |
java.lang.String |
toString() |
private ModMetadata md
private ArtifactVersion processedVersion
private java.lang.String label
private int classVersion
public DummyModContainer(ModMetadata md)
public DummyModContainer(java.lang.String label)
public DummyModContainer()
public void bindMetadata(MetadataCollection mc)
ModContainer
bindMetadata
in interface ModContainer
public java.util.List<ArtifactVersion> getDependants()
ModContainer
getDependants
in interface ModContainer
public java.util.List<ArtifactVersion> getDependencies()
ModContainer
getDependencies
in interface ModContainer
public java.util.Set<ArtifactVersion> getRequirements()
ModContainer
getRequirements
in interface ModContainer
public ModMetadata getMetadata()
ModContainer
getMetadata
in interface ModContainer
public java.lang.Object getMod()
ModContainer
getMod
in interface ModContainer
public java.lang.String getModId()
ModContainer
getModId
in interface ModContainer
public java.lang.String getName()
ModContainer
getName
in interface ModContainer
public java.lang.String getSortingRules()
ModContainer
getSortingRules
in interface ModContainer
public java.io.File getSource()
ModContainer
getSource
in interface ModContainer
public java.lang.String getVersion()
ModContainer
getVersion
in interface ModContainer
public boolean matches(java.lang.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 java.lang.String getDisplayVersion()
getDisplayVersion
in interface ModContainer
public VersionRange acceptableMinecraftVersionRange()
acceptableMinecraftVersionRange
in interface ModContainer
@Nullable public java.security.cert.Certificate getSigningCertificate()
getSigningCertificate
in interface ModContainer
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.Map<java.lang.String,java.lang.String> getCustomModProperties()
getCustomModProperties
in interface ModContainer
public java.lang.Class<?> getCustomResourcePackClass()
getCustomResourcePackClass
in interface ModContainer
public java.util.Map<java.lang.String,java.lang.String> getSharedModDescriptor()
getSharedModDescriptor
in interface ModContainer
public ModContainer.Disableable canBeDisabled()
canBeDisabled
in interface ModContainer
public java.lang.String getGuiClassName()
getGuiClassName
in interface ModContainer
public java.util.List<java.lang.String> getOwnedPackages()
getOwnedPackages
in interface ModContainer
public boolean shouldLoadInEnvironment()
shouldLoadInEnvironment
in interface ModContainer
public java.net.URL getUpdateUrl()
getUpdateUrl
in interface ModContainer
public void setClassVersion(int classVersion)
setClassVersion
in interface ModContainer
public int getClassVersion()
getClassVersion
in interface ModContainer