Class MCPNamingService

  • All Implemented Interfaces:
    cpw.mods.modlauncher.api.INameMappingService

    public class MCPNamingService
    extends java.lang.Object
    implements cpw.mods.modlauncher.api.INameMappingService
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface cpw.mods.modlauncher.api.INameMappingService

        cpw.mods.modlauncher.api.INameMappingService.Domain
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.HashMap<java.lang.String,​java.lang.String> fields  
      private static org.apache.logging.log4j.Logger LOGGER  
      private java.util.HashMap<java.lang.String,​java.lang.String> methods  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private java.lang.String findFieldMapping​(java.lang.String origin)  
      private java.lang.String findMapping​(cpw.mods.modlauncher.api.INameMappingService.Domain domain, java.lang.String srgName)  
      private java.lang.String findMethodMapping​(java.lang.String origin)  
      private static void loadMappings​(java.lang.String mappingFileName, java.util.function.BiConsumer<java.lang.String,​java.lang.String> mapStore)  
      java.lang.String mappingName()  
      java.lang.String mappingVersion()  
      java.util.function.BiFunction<cpw.mods.modlauncher.api.INameMappingService.Domain,​java.lang.String,​java.lang.String> namingFunction()  
      java.util.Map.Entry<java.lang.String,​java.lang.String> understanding()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • LOGGER

        private static final org.apache.logging.log4j.Logger LOGGER
      • methods

        private java.util.HashMap<java.lang.String,​java.lang.String> methods
      • fields

        private java.util.HashMap<java.lang.String,​java.lang.String> fields
    • Constructor Detail

      • MCPNamingService

        public MCPNamingService()
    • Method Detail

      • mappingName

        public java.lang.String mappingName()
        Specified by:
        mappingName in interface cpw.mods.modlauncher.api.INameMappingService
      • mappingVersion

        public java.lang.String mappingVersion()
        Specified by:
        mappingVersion in interface cpw.mods.modlauncher.api.INameMappingService
      • understanding

        public java.util.Map.Entry<java.lang.String,​java.lang.String> understanding()
        Specified by:
        understanding in interface cpw.mods.modlauncher.api.INameMappingService
      • namingFunction

        public java.util.function.BiFunction<cpw.mods.modlauncher.api.INameMappingService.Domain,​java.lang.String,​java.lang.String> namingFunction()
        Specified by:
        namingFunction in interface cpw.mods.modlauncher.api.INameMappingService
      • findMapping

        private java.lang.String findMapping​(cpw.mods.modlauncher.api.INameMappingService.Domain domain,
                                             java.lang.String srgName)
      • findMethodMapping

        private java.lang.String findMethodMapping​(java.lang.String origin)
      • findFieldMapping

        private java.lang.String findFieldMapping​(java.lang.String origin)
      • loadMappings

        private static void loadMappings​(java.lang.String mappingFileName,
                                         java.util.function.BiConsumer<java.lang.String,​java.lang.String> mapStore)