Class ModDependency

java.lang.Object
dev.puzzleshq.mod.util.ModDependency

public class ModDependency extends Object
Represents a dependency on another mod.
Since:
1.0.0
  • Constructor Details

    • ModDependency

      public ModDependency(String modId, String constraint, boolean isOptional)
  • Method Details

    • getContainer

      @Nullable public IModContainer getContainer()
      Gets the IModContainer of the mod.
      Returns:
      IModContainer
    • hasCompatibleVersion

      public boolean hasCompatibleVersion()
      Checks if a compatible version of the mod is loaded.
    • getConstraint

      public String getConstraint()
      Gets the version constraints.
    • isOptional

      public boolean isOptional()
      Checks if the mod is optional.
    • getModID

      public String getModID()
      Gets the mod ID.