Class MappingsResolver

java.lang.Object
de.florianmichael.asmfabricloader.api.MappingsResolver

public class MappingsResolver extends Object
Handles all mappings related stuff. This class is used to convert between named and intermediary mappings.
  • Constructor Details

    • MappingsResolver

      public MappingsResolver()
  • Method Details

    • loadMappings

      public void loadMappings() throws IOException, IllegalStateException
      Loads the mappings from the mappings.tiny file
      Throws:
      IOException - If the file could not be read
      IllegalStateException
    • named

      public MapperBase named()
      Returns:
      The mapping environment for intermediary to named mappings
    • intermediary

      public MapperBase intermediary()
      Returns:
      The mapping environment for named to intermediary mappings
    • areMappingsLoaded

      public boolean areMappingsLoaded()
      Returns:
      Whether the mappings are loaded or not (Usually only false in dev environment, except if loadMappings() was called manually)