@Deprecated public enum UpdateHandler extends java.lang.Enum<UpdateHandler>
| Enum Constant and Description |
|---|
INSTANCE
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String[] |
getChangelog(UpdateContainer updateContainer,
net.minecraftforge.fml.common.versioning.ArtifactVersion version)
Deprecated.
|
java.util.List<UpdateContainer> |
getOutdatedModList()
Deprecated.
|
boolean |
hasChangelog(UpdateContainer updateContainer,
net.minecraftforge.fml.common.versioning.ArtifactVersion version)
Deprecated.
|
void |
registerUpdateChecker(java.lang.Object mod,
java.lang.String url)
Deprecated.
|
void |
searchForUpdates()
Deprecated.
|
static UpdateHandler |
valueOf(java.lang.String name)
Deprecated.
Returns the enum constant of this type with the specified name.
|
static UpdateHandler[] |
values()
Deprecated.
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UpdateHandler INSTANCE
public static UpdateHandler[] values()
for (UpdateHandler c : UpdateHandler.values()) System.out.println(c);
public static UpdateHandler valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null@Deprecated
public void registerUpdateChecker(java.lang.Object mod,
java.lang.String url)
Mod annotation. The second argument is the url to the version checker.
Example:
{
"version": "1.0.0",
"updateURL": "http://www.planetminecraft.com/mod/llibrary/",
"iconURL": "http://i.imgur.com/G7NjFTR.png",
"versions": {
"1.0.0": [
"Initial release"
]
}
}
mod - the main mod instanceurl - the json url@Deprecated public void searchForUpdates()
ServerProxy.onPostInit()@Deprecated public java.util.List<UpdateContainer> getOutdatedModList()
@Deprecated public java.lang.String[] getChangelog(UpdateContainer updateContainer, net.minecraftforge.fml.common.versioning.ArtifactVersion version)
updateContainer - the mod containerversion - the version@Deprecated public boolean hasChangelog(UpdateContainer updateContainer, net.minecraftforge.fml.common.versioning.ArtifactVersion version)
updateContainer - the mod containerversion - the version