Class ModInfo
java.lang.Object
dev.puzzleshq.mod.info.ModInfo
-
Constructor Summary
ConstructorsConstructorDescriptionModInfo
(IModFormat format, String displayName, String id, String version, String description, String[] authors, Map<String, org.hjson.JsonValue> metadata, Map<String, EntrypointPair[]> entrypointMap, MixinConfig[] mixinConfigs, String[] accessTransformers, Map<String, Boolean> loadableSides, ModDependency[] dependencies) -
Method Summary
Modifier and TypeMethodDescriptionString[]
Gets the mods access transformers.String[]
Gets the mods authors.Gets the mods dependencies.Gets the mods description.Gets the mods display name.Map
<String, EntrypointPair[]> Gets the mods entrypoint map.Gets the modInfos format.getId()
Gets the mods ID.Gets the sides the mod can be loaded.Gets the mods meta data.Gets the mods mixin configs.Gets the mods Version.static ModInfo
readFromString
(String contents) Reads a string to a manipulation file.
-
Constructor Details
-
ModInfo
public ModInfo(@Nullable IModFormat format, String displayName, String id, String version, String description, String[] authors, Map<String, org.hjson.JsonValue> metadata, Map<String, EntrypointPair[]> entrypointMap, MixinConfig[] mixinConfigs, String[] accessTransformers, Map<String, Boolean> loadableSides, ModDependency[] dependencies)
-
-
Method Details
-
getDisplayName
Gets the mods display name. -
getId
Gets the mods ID. -
getVersion
Gets the mods Version. -
getDescription
Gets the mods description. -
getAuthors
-
getMetadata
-
getEntrypointMap
Gets the mods entrypoint map.- Returns:
- a
Map
the key is the entrypoint name and the value is an array ofEntrypointPair
.
-
getMixinConfigs
Gets the mods mixin configs.- Returns:
- an array of
MixinConfig
.
-
getAccessTransformers
-
getLoadableSides
-
getDependencies
Gets the mods dependencies.- Returns:
- an array of
ModDependency
-
getFormat
-
readFromString
-