Class ModInfo

java.lang.Object
dev.puzzleshq.mod.info.ModInfo

public class ModInfo extends Object
Represents the mod.json of a mod.
Since:
1.0.0
  • Constructor Details

  • Method Details

    • getDisplayName

      public String getDisplayName()
      Gets the mods display name.
    • getId

      public String getId()
      Gets the mods ID.
    • getVersion

      public String getVersion()
      Gets the mods Version.
    • getDescription

      public String getDescription()
      Gets the mods description.
    • getAuthors

      public String[] getAuthors()
      Gets the mods authors.
      Returns:
      an array of strings.
    • getMetadata

      public Map<String, org.hjson.JsonValue> getMetadata()
      Gets the mods meta data.
      Returns:
      an Map of String and JsonValue.
    • getEntrypointMap

      public Map<String, EntrypointPair[]> getEntrypointMap()
      Gets the mods entrypoint map.
      Returns:
      a Map the key is the entrypoint name and the value is an array of EntrypointPair.
    • getMixinConfigs

      public MixinConfig[] getMixinConfigs()
      Gets the mods mixin configs.
      Returns:
      an array of MixinConfig.
    • getAccessTransformers

      public String[] getAccessTransformers()
      Gets the mods access transformers.
      Returns:
      an array of String.
    • getLoadableSides

      public Map<String,Boolean> getLoadableSides()
      Gets the sides the mod can be loaded.
      Returns:
      a Map the key is the side and the value is a Boolean
    • getDependencies

      public ModDependency[] getDependencies()
      Gets the mods dependencies.
      Returns:
      an array of ModDependency
    • getFormat

      public IModFormat getFormat()
      Gets the modInfos format.
      Returns:
      IModFormat
    • readFromString

      public static ModInfo readFromString(String contents)
      Reads a string to a manipulation file.
      Parameters:
      contents - the contents of the manipulator.
      See Also: