Class MappingHelper
java.lang.Object
org.moddingx.launcherlib.mappings.MappingHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaccept(net.neoforged.srgutils.IMappingFile mappings, MappingVisitor visitor) Visits the givenmappingsusing the givenvisitor.static net.neoforged.srgutils.IMappingFileMerges multiple mapping files into one.static net.neoforged.srgutils.IMappingFilemerge(net.neoforged.srgutils.IMappingFile... mappings) Merges multiple mapping files into one.static net.neoforged.srgutils.IMappingFileremoveMeta(net.neoforged.srgutils.IMappingFile mappings) Returns newIMappingFilethat has the same mappings as the givenIMappingFilebut with all metadata mappings removed.static net.neoforged.srgutils.IMappingFileremoveParameters(net.neoforged.srgutils.IMappingFile mappings) Returns newIMappingFilethat has the same mappings as the givenIMappingFilebut with all parameter mappings removed.
-
Constructor Details
-
MappingHelper
public MappingHelper()
-
-
Method Details
-
accept
Visits the givenmappingsusing the givenvisitor. -
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 theoriginalname 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 theoriginalname 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 newIMappingFilethat has the same mappings as the givenIMappingFilebut with all parameter mappings removed. -
removeMeta
public static net.neoforged.srgutils.IMappingFile removeMeta(net.neoforged.srgutils.IMappingFile mappings) Returns newIMappingFilethat has the same mappings as the givenIMappingFilebut with all metadata mappings removed.
-