Class MultiVersionModReader

java.lang.Object
mods.thecomputerizer.theimpossiblelibrary.neoforge.v21.core.MultiVersionModReader
All Implemented Interfaces:
net.neoforged.neoforgespi.locating.IModFileReader, net.neoforged.neoforgespi.locating.IOrderedProvider

public class MultiVersionModReader extends Object implements net.neoforged.neoforgespi.locating.IModFileReader
  • Field Summary

    Fields inherited from interface net.neoforged.neoforgespi.locating.IOrderedProvider

    DEFAULT_PRIORITY, HIGHEST_SYSTEM_PRIORITY, LOWEST_SYSTEM_PRIORITY
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Try reading multiversion mods first so they can be filtered out from normal mod loading earlier.
    @Nullable net.neoforged.neoforgespi.locating.IModFile
    read(cpw.mods.jarhandling.JarContents jar, net.neoforged.neoforgespi.locating.ModFileDiscoveryAttributes attributes)
     

    Methods inherited from class java.lang.Object

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

    • MultiVersionModReader

      public MultiVersionModReader()
  • Method Details

    • getPriority

      public int getPriority()
      Try reading multiversion mods first so they can be filtered out from normal mod loading earlier. Don't use HIGHEST_SYSTEM_PRIORITY to avoid potential conflicts with important readers. DEFAULT_PRIORITY = 0
      Specified by:
      getPriority in interface net.neoforged.neoforgespi.locating.IOrderedProvider
    • read

      @Nullable public @Nullable net.neoforged.neoforgespi.locating.IModFile read(cpw.mods.jarhandling.JarContents jar, net.neoforged.neoforgespi.locating.ModFileDiscoveryAttributes attributes)
      Specified by:
      read in interface net.neoforged.neoforgespi.locating.IModFileReader