package info.tehnut.xtones.crafting;

import com.google.gson.JsonObject;
import net.minecraftforge.common.crafting.IConditionFactory;
import net.minecraftforge.common.crafting.JsonContext;
import info.tehnut.xtones.config.XtonesConfig;

import java.util.function.BooleanSupplier;

public final class XtoneCraftingCondition implements IConditionFactory {
    @Override
    public BooleanSupplier parse(final JsonContext context, final JsonObject json) {
        return XtonesConfig::hasXtoneRecipes;
    }
}

@@ -66,16 +66,97 @@
 Object;%0A
+import info.tehnut.xtones.Xtones;%0Aimport info.tehnut.xtones.config.XtonesConfig;%0A
 import n
@@ -208,16 +208,16 @@
 actory;%0A
-
 import n
@@ -266,55 +266,8 @@
 ext;
-%0Aimport info.tehnut.xtones.config.XtonesConfig;
 %0A%0Aim
@@ -480,16 +480,16 @@
 json) %7B%0A
-
         
@@ -531,11 +531,110 @@
 s;%0A    %7D
+%0A%0A    @Override%0A    public String toString() %7B%0A        return Xtones.ID + %22:recipes_enabled%22;%0A    %7D
 %0A%7D%0A

add toString to crafting condition class