Config for ICompatibility
This commit is contained in:
parent
349efbd510
commit
72d4c5e135
5 changed files with 22 additions and 2 deletions
|
@ -14,4 +14,11 @@ public interface ICompatibility {
|
|||
* The {@code modid} of the mod we are adding compatibility for.
|
||||
*/
|
||||
String getModId();
|
||||
|
||||
/**
|
||||
* Whether or not compatibility should be loaded even if the mod were to be found.
|
||||
*
|
||||
* Generally a determined by a config option.
|
||||
*/
|
||||
boolean enableCompat();
|
||||
}
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
package WayofTime.bloodmagic.compat.jei;
|
||||
|
||||
import WayofTime.bloodmagic.ConfigHandler;
|
||||
import WayofTime.bloodmagic.compat.ICompatibility;
|
||||
import mezz.jei.api.JEIManager;
|
||||
|
||||
|
@ -14,4 +15,9 @@ public class CompatibilityJustEnoughItems implements ICompatibility {
|
|||
public String getModId() {
|
||||
return "JEI";
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean enableCompat() {
|
||||
return ConfigHandler.compatibilityJustEnoughItems;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue