Class ModCompatLoader

java.lang.Object
org.cyclops.cyclopscore.modcompat.ModCompatLoader

public class ModCompatLoader extends Object
The loader for IModCompat instances.
  • Field Details

  • Constructor Details

    • ModCompatLoader

      public ModCompatLoader(ModBase mod)
  • Method Details

    • addModCompat

      public void addModCompat(IModCompat modCompat)
      Register a new mod compatibility. Make sure to call this before any Forge initialization steps are called!
      Parameters:
      modCompat - The mod compatibility
    • getId

      protected String getId(IExternalCompat compat)
    • shouldLoadExternalCompat

      public boolean shouldLoadExternalCompat(IExternalCompat compat)
      If the given compat should be loaded.
      Parameters:
      compat - The mod compat.
      Returns:
      If it should be loaded.
    • shouldLoadModCompat

      public boolean shouldLoadModCompat(IModCompat modCompat)
      If the given mod compat should be loaded.
      Parameters:
      modCompat - The mod compat.
      Returns:
      If it should be loaded.