Class MappingHelper

java.lang.Object
org.moddingx.launcherlib.mappings.MappingHelper

public class MappingHelper extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    accept(net.neoforged.srgutils.IMappingFile mappings, MappingVisitor visitor)
    Visits the given mappings using the given visitor.
    static net.neoforged.srgutils.IMappingFile
    merge(List<net.neoforged.srgutils.IMappingFile> mappings)
    Merges multiple mapping files into one.
    static net.neoforged.srgutils.IMappingFile
    merge(net.neoforged.srgutils.IMappingFile... mappings)
    Merges multiple mapping files into one.
    static net.neoforged.srgutils.IMappingFile
    removeMeta(net.neoforged.srgutils.IMappingFile mappings)
    Returns new IMappingFile that has the same mappings as the given IMappingFile but with all metadata mappings removed.
    static net.neoforged.srgutils.IMappingFile
    removeParameters(net.neoforged.srgutils.IMappingFile mappings)
    Returns new IMappingFile that has the same mappings as the given IMappingFile but with all parameter mappings removed.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MappingHelper

      public MappingHelper()
  • Method Details

    • accept

      public static void accept(net.neoforged.srgutils.IMappingFile mappings, MappingVisitor visitor)
      Visits the given mappings using the given visitor.
    • merge

      public static net.neoforged.srgutils.IMappingFile merge(net.neoforged.srgutils.IMappingFile... mappings)
      Merges multiple mapping files into one. These mappings should have common names in the original name set. Mappings that occur earlier in the given list replace mappings that are found later.
    • merge

      public static net.neoforged.srgutils.IMappingFile merge(List<net.neoforged.srgutils.IMappingFile> mappings)
      Merges multiple mapping files into one. These mappings should have common names in the original name set. Mappings that occur earlier in the given list replace mappings that are found later.
    • removeParameters

      public static net.neoforged.srgutils.IMappingFile removeParameters(net.neoforged.srgutils.IMappingFile mappings)
      Returns new IMappingFile that has the same mappings as the given IMappingFile but with all parameter mappings removed.
    • removeMeta

      public static net.neoforged.srgutils.IMappingFile removeMeta(net.neoforged.srgutils.IMappingFile mappings)
      Returns new IMappingFile that has the same mappings as the given IMappingFile but with all metadata mappings removed.