Class NeoForgeTomlScanner

  • All Implemented Interfaces:
    de.griefed.serverpackcreator.api.modscanning.ModJarScanner

    
    public final class NeoForgeTomlScanner
    extends ForgeTomlScanner
                        

    META-INF/neoforge.mods.toml-based scanning of NeoForge mods for Minecraft 1.20.5 and newer.

    The boundary is NeoForge's descriptor rename, and LoaderDescriptors.neoForgeUsesNeoToml is where it is stated — ModScanner.scannerFor asks that, never a literal. A NeoForge mod below 1.20.5 still ships META-INF/mods.toml and is therefore read by ForgeTomlScanner, which is why this scanner sees only the newer era.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
      NeoForgeTomlScanner(TomlParser tomlParser)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      String getModsToml() Path of the descriptor inside a Forge jar.
      • Methods inherited from class de.griefed.serverpackcreator.api.modscanning.ForgeTomlScanner

        getClient, getNeoForgeMinecraft, read
      • Methods inherited from class de.griefed.serverpackcreator.api.modscanning.DescriptorScanner

        getScanAnnouncement, scan
      • Methods inherited from class java.lang.Object

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

      • NeoForgeTomlScanner

        NeoForgeTomlScanner(TomlParser tomlParser)
        Parameters:
        tomlParser - To parse .toml-files.
    • Method Detail

      • getModsToml

         String getModsToml()

        Path of the descriptor inside a Forge jar. open because NeoForge moved it, and that subclass overrides it.