Class FMLJavaModLanguageProvider

java.lang.Object
net.neoforged.fml.loading.BuiltInLanguageLoader
net.neoforged.fml.javafmlmod.FMLJavaModLanguageProvider
All Implemented Interfaces:
IModLanguageLoader

public class FMLJavaModLanguageProvider extends BuiltInLanguageLoader
  • Field Details

  • Constructor Details

    • FMLJavaModLanguageProvider

      public FMLJavaModLanguageProvider()
  • Method Details

    • name

      public String name()
      Description copied from interface: IModLanguageLoader
      Returns the name of this loader, used to decide what loader should load a mod.
      Returns:
      the name of this loader, used to decide what loader should load a mod
    • loadMod

      public ModContainer loadMod(IModInfo info, ModFileScanData modFileScanResults, ModuleLayer layer)
      Description copied from interface: IModLanguageLoader
      Load and build a container from the given mod information.
      Parameters:
      info - the mod information
      modFileScanResults - the mod scan data
      layer - the module layer of the mod
      Returns:
      the built mod container
    • validate

      public void validate(IModFile file, Collection<ModContainer> loadedContainers, IIssueReporting reporter)
      Description copied from interface: IModLanguageLoader
      Validate mod files using this loader, and report any issues (such as entrpoints without medatata).
      Parameters:
      file - the file to validate
      loadedContainers - the containers of mods in the file, that have been created using this loader. This list does not contain errored containers
      reporter - the interface used to report issues to the game