diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 90d0abbb..0fe1bf2b 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -2,29 +2,9 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
-
@@ -33,33 +13,23 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
@@ -72,279 +42,110 @@
-
+
+
+
+
+ true
+ DEFINITION_ORDER
+
-
-
-
-
-
-
-
-
-
-
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
-
-
+
+
@@ -353,72 +154,57 @@
1482033001334
+
+
+
+
+
-
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
\ No newline at end of file
diff --git a/kfc/src/main/java/nmd/primal/forgecraft/blocks/machine/BloomeryBase.java b/kfc/src/main/java/nmd/primal/forgecraft/blocks/machine/BloomeryBase.java
index de30270e..01d3ba26 100644
--- a/kfc/src/main/java/nmd/primal/forgecraft/blocks/machine/BloomeryBase.java
+++ b/kfc/src/main/java/nmd/primal/forgecraft/blocks/machine/BloomeryBase.java
@@ -121,23 +121,26 @@ public class BloomeryBase extends CustomContainerFacing implements ITileEntityPr
ItemStackHelper.loadAllItems(tag, dropList);
CrucibleCrafting recipe = CrucibleCrafting.getRecipe(ingList.get(0), ingList.get(1), ingList.get(2), ingList.get(3), ingList.get(4));
if (recipe != null) {
- Integer minTemp = recipe.getCookTemp();
- Integer cookCounter = tile.getCookCounter();
- Integer idealTime = recipe.getCookTime();
- Integer remainingTime = idealTime - cookCounter;
+ if(!recipe.isHidden()) {
+ if (!recipe.isDisabled()) {
+ Integer minTemp = recipe.getCookTemp();
+ Integer cookCounter = tile.getCookCounter();
+ Integer idealTime = recipe.getCookTime();
+ Integer remainingTime = idealTime - cookCounter;
- String display1 =
- "Cooking: " + tileItem1.getDisplayName() +
- " Target Temp: " + minTemp.toString() +
- " Time Left: " + remainingTime.toString();
- String display2 = tileItem1.getDisplayName() + "finished.";
- ITextComponent itextcomponent1 = null;
- if (tileItem1.getSubCompound("BlockEntityTag").getBoolean("status")) {
- itextcomponent1 = new TextComponentString(display2);
- } else itextcomponent1 = new TextComponentString(display1);
-
- player.sendStatusMessage(itextcomponent1, false);
+ String display1 =
+ "Cooking: " + tileItem1.getDisplayName() +
+ " Target Temp: " + minTemp.toString() +
+ " Time Left: " + remainingTime.toString();
+ String display2 = tileItem1.getDisplayName() + "finished.";
+ ITextComponent itextcomponent1 = null;
+ if (tileItem1.getSubCompound("BlockEntityTag").getBoolean("status")) {
+ itextcomponent1 = new TextComponentString(display2);
+ } else itextcomponent1 = new TextComponentString(display1);
+ player.sendStatusMessage(itextcomponent1, false);
+ }
+ }
}
return true;
}
diff --git a/kfc/src/main/java/nmd/primal/forgecraft/compat/CT/CTCrucible.java b/kfc/src/main/java/nmd/primal/forgecraft/compat/ct/CTCrucible.java
similarity index 96%
rename from kfc/src/main/java/nmd/primal/forgecraft/compat/CT/CTCrucible.java
rename to kfc/src/main/java/nmd/primal/forgecraft/compat/ct/CTCrucible.java
index ffac02a1..2d7865f2 100644
--- a/kfc/src/main/java/nmd/primal/forgecraft/compat/CT/CTCrucible.java
+++ b/kfc/src/main/java/nmd/primal/forgecraft/compat/ct/CTCrucible.java
@@ -1,12 +1,10 @@
-package nmd.primal.forgecraft.compat.CT;
+package nmd.primal.forgecraft.compat.ct;
import crafttweaker.CraftTweakerAPI;
import crafttweaker.IAction;
import crafttweaker.annotations.ModOnly;
import crafttweaker.annotations.ZenRegister;
-import crafttweaker.api.item.IIngredient;
-import crafttweaker.api.item.IItemStack;
import net.minecraft.item.ItemStack;
import net.minecraft.item.crafting.Ingredient;
import nmd.primal.core.common.PrimalCore;
@@ -15,9 +13,7 @@ import nmd.primal.forgecraft.crafting.CrucibleCrafting;
import stanhebben.zenscript.annotations.ZenClass;
import stanhebben.zenscript.annotations.ZenMethod;
-import java.util.List;
-
-@ZenClass("mods.primal.NBTCrucible")
+@ZenClass("mods.forgecraft.NBTCrucible")
@ModOnly(ModInfo.MOD_ID)
@ZenRegister
public class CTCrucible {
diff --git a/kfc/src/main/java/nmd/primal/forgecraft/compat/JEI/AbstractCategory.java b/kfc/src/main/java/nmd/primal/forgecraft/compat/jei/AbstractCategory.java
similarity index 94%
rename from kfc/src/main/java/nmd/primal/forgecraft/compat/JEI/AbstractCategory.java
rename to kfc/src/main/java/nmd/primal/forgecraft/compat/jei/AbstractCategory.java
index f200e3c5..2eed7637 100644
--- a/kfc/src/main/java/nmd/primal/forgecraft/compat/JEI/AbstractCategory.java
+++ b/kfc/src/main/java/nmd/primal/forgecraft/compat/jei/AbstractCategory.java
@@ -1,4 +1,4 @@
-package nmd.primal.forgecraft.compat.JEI;
+package nmd.primal.forgecraft.compat.jei;
import com.google.common.collect.ImmutableList;
import mezz.jei.api.gui.IDrawable;
diff --git a/kfc/src/main/java/nmd/primal/forgecraft/compat/JEI/ModJEI.java b/kfc/src/main/java/nmd/primal/forgecraft/compat/jei/ModJEI.java
similarity index 84%
rename from kfc/src/main/java/nmd/primal/forgecraft/compat/JEI/ModJEI.java
rename to kfc/src/main/java/nmd/primal/forgecraft/compat/jei/ModJEI.java
index e3307239..539938e0 100644
--- a/kfc/src/main/java/nmd/primal/forgecraft/compat/JEI/ModJEI.java
+++ b/kfc/src/main/java/nmd/primal/forgecraft/compat/jei/ModJEI.java
@@ -1,22 +1,22 @@
-package nmd.primal.forgecraft.compat.JEI;
+package nmd.primal.forgecraft.compat.jei;
import mezz.jei.api.*;
import mezz.jei.api.gui.ICraftingGridHelper;
import mezz.jei.api.recipe.IRecipeCategoryRegistration;
import net.minecraft.item.ItemStack;
import net.minecraftforge.oredict.OreDictionary;
-import nmd.primal.forgecraft.compat.JEI.anvil.AnvilRecipeCategory;
-import nmd.primal.forgecraft.compat.JEI.anvil.AnvilRecipeChecker;
-import nmd.primal.forgecraft.compat.JEI.anvil.AnvilRecipeHandler;
-import nmd.primal.forgecraft.compat.JEI.casting.CastingRecipeCategory;
-import nmd.primal.forgecraft.compat.JEI.casting.CastingRecipeChecker;
-import nmd.primal.forgecraft.compat.JEI.casting.CastingRecipeHandler;
-import nmd.primal.forgecraft.compat.JEI.crucible.CrucibleRecipeCategory;
-import nmd.primal.forgecraft.compat.JEI.crucible.CrucibleRecipeChecker;
-import nmd.primal.forgecraft.compat.JEI.crucible.CrucibleRecipeHandler;
-import nmd.primal.forgecraft.compat.JEI.forge.ForgeRecipeCategory;
-import nmd.primal.forgecraft.compat.JEI.forge.ForgeRecipeChecker;
-import nmd.primal.forgecraft.compat.JEI.forge.ForgeRecipeHandler;
+import nmd.primal.forgecraft.compat.jei.anvil.AnvilRecipeCategory;
+import nmd.primal.forgecraft.compat.jei.anvil.AnvilRecipeChecker;
+import nmd.primal.forgecraft.compat.jei.anvil.AnvilRecipeHandler;
+import nmd.primal.forgecraft.compat.jei.casting.CastingRecipeCategory;
+import nmd.primal.forgecraft.compat.jei.casting.CastingRecipeChecker;
+import nmd.primal.forgecraft.compat.jei.casting.CastingRecipeHandler;
+import nmd.primal.forgecraft.compat.jei.crucible.CrucibleRecipeCategory;
+import nmd.primal.forgecraft.compat.jei.crucible.CrucibleRecipeChecker;
+import nmd.primal.forgecraft.compat.jei.crucible.CrucibleRecipeHandler;
+import nmd.primal.forgecraft.compat.jei.forge.ForgeRecipeCategory;
+import nmd.primal.forgecraft.compat.jei.forge.ForgeRecipeChecker;
+import nmd.primal.forgecraft.compat.jei.forge.ForgeRecipeHandler;
import nmd.primal.forgecraft.crafting.AnvilCrafting;
import nmd.primal.forgecraft.crafting.CastingCrafting;
import nmd.primal.forgecraft.crafting.CrucibleCrafting;
diff --git a/kfc/src/main/java/nmd/primal/forgecraft/compat/JEI/anvil/AnvilRecipeCategory.java b/kfc/src/main/java/nmd/primal/forgecraft/compat/jei/anvil/AnvilRecipeCategory.java
similarity index 97%
rename from kfc/src/main/java/nmd/primal/forgecraft/compat/JEI/anvil/AnvilRecipeCategory.java
rename to kfc/src/main/java/nmd/primal/forgecraft/compat/jei/anvil/AnvilRecipeCategory.java
index 1ec7e1a5..39042d11 100644
--- a/kfc/src/main/java/nmd/primal/forgecraft/compat/JEI/anvil/AnvilRecipeCategory.java
+++ b/kfc/src/main/java/nmd/primal/forgecraft/compat/jei/anvil/AnvilRecipeCategory.java
@@ -1,4 +1,4 @@
-package nmd.primal.forgecraft.compat.JEI.anvil;
+package nmd.primal.forgecraft.compat.jei.anvil;
import mezz.jei.api.IGuiHelper;
import mezz.jei.api.gui.IDrawable;
@@ -11,7 +11,7 @@ import net.minecraft.item.ItemStack;
import net.minecraft.util.ResourceLocation;
import nmd.primal.core.common.helper.CommonUtils;
import nmd.primal.forgecraft.ModInfo;
-import nmd.primal.forgecraft.compat.JEI.AbstractCategory;
+import nmd.primal.forgecraft.compat.jei.AbstractCategory;
import nmd.primal.forgecraft.init.ModItems;
import nmd.primal.forgecraft.items.parts.ToolPart;
diff --git a/kfc/src/main/java/nmd/primal/forgecraft/compat/JEI/anvil/AnvilRecipeChecker.java b/kfc/src/main/java/nmd/primal/forgecraft/compat/jei/anvil/AnvilRecipeChecker.java
similarity index 90%
rename from kfc/src/main/java/nmd/primal/forgecraft/compat/JEI/anvil/AnvilRecipeChecker.java
rename to kfc/src/main/java/nmd/primal/forgecraft/compat/jei/anvil/AnvilRecipeChecker.java
index 7b9318da..415532e4 100644
--- a/kfc/src/main/java/nmd/primal/forgecraft/compat/JEI/anvil/AnvilRecipeChecker.java
+++ b/kfc/src/main/java/nmd/primal/forgecraft/compat/jei/anvil/AnvilRecipeChecker.java
@@ -1,4 +1,4 @@
-package nmd.primal.forgecraft.compat.JEI.anvil;
+package nmd.primal.forgecraft.compat.jei.anvil;
import nmd.primal.forgecraft.crafting.AnvilCrafting;
diff --git a/kfc/src/main/java/nmd/primal/forgecraft/compat/JEI/anvil/AnvilRecipeHandler.java b/kfc/src/main/java/nmd/primal/forgecraft/compat/jei/anvil/AnvilRecipeHandler.java
similarity index 90%
rename from kfc/src/main/java/nmd/primal/forgecraft/compat/JEI/anvil/AnvilRecipeHandler.java
rename to kfc/src/main/java/nmd/primal/forgecraft/compat/jei/anvil/AnvilRecipeHandler.java
index f9c3e0d2..1c7e600f 100644
--- a/kfc/src/main/java/nmd/primal/forgecraft/compat/JEI/anvil/AnvilRecipeHandler.java
+++ b/kfc/src/main/java/nmd/primal/forgecraft/compat/jei/anvil/AnvilRecipeHandler.java
@@ -1,4 +1,4 @@
-package nmd.primal.forgecraft.compat.JEI.anvil;
+package nmd.primal.forgecraft.compat.jei.anvil;
import mezz.jei.api.recipe.IRecipeWrapper;
import mezz.jei.api.recipe.IRecipeWrapperFactory;
diff --git a/kfc/src/main/java/nmd/primal/forgecraft/compat/JEI/anvil/AnvilRecipeWrapper.java b/kfc/src/main/java/nmd/primal/forgecraft/compat/jei/anvil/AnvilRecipeWrapper.java
similarity index 96%
rename from kfc/src/main/java/nmd/primal/forgecraft/compat/JEI/anvil/AnvilRecipeWrapper.java
rename to kfc/src/main/java/nmd/primal/forgecraft/compat/jei/anvil/AnvilRecipeWrapper.java
index c256120c..4f79d12d 100644
--- a/kfc/src/main/java/nmd/primal/forgecraft/compat/JEI/anvil/AnvilRecipeWrapper.java
+++ b/kfc/src/main/java/nmd/primal/forgecraft/compat/jei/anvil/AnvilRecipeWrapper.java
@@ -1,4 +1,4 @@
-package nmd.primal.forgecraft.compat.JEI.anvil;
+package nmd.primal.forgecraft.compat.jei.anvil;
import mezz.jei.api.ingredients.IIngredients;
import mezz.jei.api.recipe.IRecipeWrapper;
diff --git a/kfc/src/main/java/nmd/primal/forgecraft/compat/JEI/casting/CastingRecipeCategory.java b/kfc/src/main/java/nmd/primal/forgecraft/compat/jei/casting/CastingRecipeCategory.java
similarity index 96%
rename from kfc/src/main/java/nmd/primal/forgecraft/compat/JEI/casting/CastingRecipeCategory.java
rename to kfc/src/main/java/nmd/primal/forgecraft/compat/jei/casting/CastingRecipeCategory.java
index 829c5a4c..25816252 100644
--- a/kfc/src/main/java/nmd/primal/forgecraft/compat/JEI/casting/CastingRecipeCategory.java
+++ b/kfc/src/main/java/nmd/primal/forgecraft/compat/jei/casting/CastingRecipeCategory.java
@@ -1,4 +1,4 @@
-package nmd.primal.forgecraft.compat.JEI.casting;
+package nmd.primal.forgecraft.compat.jei.casting;
import mezz.jei.api.IGuiHelper;
import mezz.jei.api.gui.IDrawable;
@@ -10,7 +10,7 @@ import net.minecraft.client.resources.I18n;
import net.minecraft.util.ResourceLocation;
import nmd.primal.core.common.helper.CommonUtils;
import nmd.primal.forgecraft.ModInfo;
-import nmd.primal.forgecraft.compat.JEI.AbstractCategory;
+import nmd.primal.forgecraft.compat.jei.AbstractCategory;
import javax.annotation.Nonnull;
diff --git a/kfc/src/main/java/nmd/primal/forgecraft/compat/JEI/casting/CastingRecipeChecker.java b/kfc/src/main/java/nmd/primal/forgecraft/compat/jei/casting/CastingRecipeChecker.java
similarity index 90%
rename from kfc/src/main/java/nmd/primal/forgecraft/compat/JEI/casting/CastingRecipeChecker.java
rename to kfc/src/main/java/nmd/primal/forgecraft/compat/jei/casting/CastingRecipeChecker.java
index 8c69e222..b30b16b9 100644
--- a/kfc/src/main/java/nmd/primal/forgecraft/compat/JEI/casting/CastingRecipeChecker.java
+++ b/kfc/src/main/java/nmd/primal/forgecraft/compat/jei/casting/CastingRecipeChecker.java
@@ -1,4 +1,4 @@
-package nmd.primal.forgecraft.compat.JEI.casting;
+package nmd.primal.forgecraft.compat.jei.casting;
import nmd.primal.forgecraft.crafting.CastingCrafting;
diff --git a/kfc/src/main/java/nmd/primal/forgecraft/compat/JEI/casting/CastingRecipeHandler.java b/kfc/src/main/java/nmd/primal/forgecraft/compat/jei/casting/CastingRecipeHandler.java
similarity index 90%
rename from kfc/src/main/java/nmd/primal/forgecraft/compat/JEI/casting/CastingRecipeHandler.java
rename to kfc/src/main/java/nmd/primal/forgecraft/compat/jei/casting/CastingRecipeHandler.java
index e32769de..6fc1f95f 100644
--- a/kfc/src/main/java/nmd/primal/forgecraft/compat/JEI/casting/CastingRecipeHandler.java
+++ b/kfc/src/main/java/nmd/primal/forgecraft/compat/jei/casting/CastingRecipeHandler.java
@@ -1,4 +1,4 @@
-package nmd.primal.forgecraft.compat.JEI.casting;
+package nmd.primal.forgecraft.compat.jei.casting;
import mezz.jei.api.recipe.IRecipeWrapper;
import mezz.jei.api.recipe.IRecipeWrapperFactory;
diff --git a/kfc/src/main/java/nmd/primal/forgecraft/compat/JEI/casting/CastingRecipeWrapper.java b/kfc/src/main/java/nmd/primal/forgecraft/compat/jei/casting/CastingRecipeWrapper.java
similarity index 97%
rename from kfc/src/main/java/nmd/primal/forgecraft/compat/JEI/casting/CastingRecipeWrapper.java
rename to kfc/src/main/java/nmd/primal/forgecraft/compat/jei/casting/CastingRecipeWrapper.java
index 2f43eea9..6eb3c50b 100644
--- a/kfc/src/main/java/nmd/primal/forgecraft/compat/JEI/casting/CastingRecipeWrapper.java
+++ b/kfc/src/main/java/nmd/primal/forgecraft/compat/jei/casting/CastingRecipeWrapper.java
@@ -1,4 +1,4 @@
-package nmd.primal.forgecraft.compat.JEI.casting;
+package nmd.primal.forgecraft.compat.jei.casting;
import mezz.jei.api.ingredients.IIngredients;
import mezz.jei.api.recipe.IRecipeWrapper;
diff --git a/kfc/src/main/java/nmd/primal/forgecraft/compat/JEI/crucible/CrucibleRecipeCategory.java b/kfc/src/main/java/nmd/primal/forgecraft/compat/jei/crucible/CrucibleRecipeCategory.java
similarity index 96%
rename from kfc/src/main/java/nmd/primal/forgecraft/compat/JEI/crucible/CrucibleRecipeCategory.java
rename to kfc/src/main/java/nmd/primal/forgecraft/compat/jei/crucible/CrucibleRecipeCategory.java
index e8cb6836..11bc17f4 100644
--- a/kfc/src/main/java/nmd/primal/forgecraft/compat/JEI/crucible/CrucibleRecipeCategory.java
+++ b/kfc/src/main/java/nmd/primal/forgecraft/compat/jei/crucible/CrucibleRecipeCategory.java
@@ -1,4 +1,4 @@
-package nmd.primal.forgecraft.compat.JEI.crucible;
+package nmd.primal.forgecraft.compat.jei.crucible;
import mezz.jei.api.IGuiHelper;
import mezz.jei.api.gui.IDrawable;
@@ -11,7 +11,7 @@ import net.minecraft.item.ItemStack;
import net.minecraft.util.ResourceLocation;
import nmd.primal.core.common.helper.CommonUtils;
import nmd.primal.forgecraft.ModInfo;
-import nmd.primal.forgecraft.compat.JEI.AbstractCategory;
+import nmd.primal.forgecraft.compat.jei.AbstractCategory;
import nmd.primal.forgecraft.init.ModBlocks;
import javax.annotation.Nonnull;
diff --git a/kfc/src/main/java/nmd/primal/forgecraft/compat/JEI/crucible/CrucibleRecipeChecker.java b/kfc/src/main/java/nmd/primal/forgecraft/compat/jei/crucible/CrucibleRecipeChecker.java
similarity index 55%
rename from kfc/src/main/java/nmd/primal/forgecraft/compat/JEI/crucible/CrucibleRecipeChecker.java
rename to kfc/src/main/java/nmd/primal/forgecraft/compat/jei/crucible/CrucibleRecipeChecker.java
index 704b7329..55fc4c37 100644
--- a/kfc/src/main/java/nmd/primal/forgecraft/compat/JEI/crucible/CrucibleRecipeChecker.java
+++ b/kfc/src/main/java/nmd/primal/forgecraft/compat/jei/crucible/CrucibleRecipeChecker.java
@@ -1,4 +1,4 @@
-package nmd.primal.forgecraft.compat.JEI.crucible;
+package nmd.primal.forgecraft.compat.jei.crucible;
import nmd.primal.forgecraft.crafting.CrucibleCrafting;
@@ -12,8 +12,12 @@ public class CrucibleRecipeChecker {
public static List getRecipes() {
List recipes = new ArrayList<>();
- for (CrucibleCrafting recipe : CrucibleCrafting.getCrucibleCrafting()) {
- recipes.add(recipe);
+ for (CrucibleCrafting recipe : CrucibleCrafting.getRECIPES()) {
+ if(!recipe.isDisabled()) {
+ if(!recipe.isHidden()) {
+ recipes.add(recipe);
+ }
+ }
}
return recipes;
}
diff --git a/kfc/src/main/java/nmd/primal/forgecraft/compat/JEI/crucible/CrucibleRecipeHandler.java b/kfc/src/main/java/nmd/primal/forgecraft/compat/jei/crucible/CrucibleRecipeHandler.java
similarity index 90%
rename from kfc/src/main/java/nmd/primal/forgecraft/compat/JEI/crucible/CrucibleRecipeHandler.java
rename to kfc/src/main/java/nmd/primal/forgecraft/compat/jei/crucible/CrucibleRecipeHandler.java
index 1664347c..c4e9432e 100644
--- a/kfc/src/main/java/nmd/primal/forgecraft/compat/JEI/crucible/CrucibleRecipeHandler.java
+++ b/kfc/src/main/java/nmd/primal/forgecraft/compat/jei/crucible/CrucibleRecipeHandler.java
@@ -1,4 +1,4 @@
-package nmd.primal.forgecraft.compat.JEI.crucible;
+package nmd.primal.forgecraft.compat.jei.crucible;
import mezz.jei.api.recipe.IRecipeWrapper;
import mezz.jei.api.recipe.IRecipeWrapperFactory;
diff --git a/kfc/src/main/java/nmd/primal/forgecraft/compat/JEI/crucible/CrucibleRecipeWrapper.java b/kfc/src/main/java/nmd/primal/forgecraft/compat/jei/crucible/CrucibleRecipeWrapper.java
similarity index 98%
rename from kfc/src/main/java/nmd/primal/forgecraft/compat/JEI/crucible/CrucibleRecipeWrapper.java
rename to kfc/src/main/java/nmd/primal/forgecraft/compat/jei/crucible/CrucibleRecipeWrapper.java
index c5d03b7b..1ea8b68f 100644
--- a/kfc/src/main/java/nmd/primal/forgecraft/compat/JEI/crucible/CrucibleRecipeWrapper.java
+++ b/kfc/src/main/java/nmd/primal/forgecraft/compat/jei/crucible/CrucibleRecipeWrapper.java
@@ -1,4 +1,4 @@
-package nmd.primal.forgecraft.compat.JEI.crucible;
+package nmd.primal.forgecraft.compat.jei.crucible;
import mezz.jei.api.ingredients.IIngredients;
import mezz.jei.api.recipe.IRecipeWrapper;
diff --git a/kfc/src/main/java/nmd/primal/forgecraft/compat/JEI/forge/ForgeRecipeCategory.java b/kfc/src/main/java/nmd/primal/forgecraft/compat/jei/forge/ForgeRecipeCategory.java
similarity index 95%
rename from kfc/src/main/java/nmd/primal/forgecraft/compat/JEI/forge/ForgeRecipeCategory.java
rename to kfc/src/main/java/nmd/primal/forgecraft/compat/jei/forge/ForgeRecipeCategory.java
index 382dd9c4..b1c95788 100644
--- a/kfc/src/main/java/nmd/primal/forgecraft/compat/JEI/forge/ForgeRecipeCategory.java
+++ b/kfc/src/main/java/nmd/primal/forgecraft/compat/jei/forge/ForgeRecipeCategory.java
@@ -1,4 +1,4 @@
-package nmd.primal.forgecraft.compat.JEI.forge;
+package nmd.primal.forgecraft.compat.jei.forge;
import mezz.jei.api.IGuiHelper;
import mezz.jei.api.gui.IDrawable;
@@ -12,7 +12,7 @@ import net.minecraft.item.ItemStack;
import net.minecraft.util.ResourceLocation;
import nmd.primal.core.common.helper.CommonUtils;
import nmd.primal.forgecraft.ModInfo;
-import nmd.primal.forgecraft.compat.JEI.AbstractCategory;
+import nmd.primal.forgecraft.compat.jei.AbstractCategory;
import nmd.primal.forgecraft.init.ModBlocks;
import javax.annotation.Nonnull;
diff --git a/kfc/src/main/java/nmd/primal/forgecraft/compat/JEI/forge/ForgeRecipeChecker.java b/kfc/src/main/java/nmd/primal/forgecraft/compat/jei/forge/ForgeRecipeChecker.java
similarity index 90%
rename from kfc/src/main/java/nmd/primal/forgecraft/compat/JEI/forge/ForgeRecipeChecker.java
rename to kfc/src/main/java/nmd/primal/forgecraft/compat/jei/forge/ForgeRecipeChecker.java
index d6f53d0a..554d578a 100644
--- a/kfc/src/main/java/nmd/primal/forgecraft/compat/JEI/forge/ForgeRecipeChecker.java
+++ b/kfc/src/main/java/nmd/primal/forgecraft/compat/jei/forge/ForgeRecipeChecker.java
@@ -1,4 +1,4 @@
-package nmd.primal.forgecraft.compat.JEI.forge;
+package nmd.primal.forgecraft.compat.jei.forge;
import nmd.primal.forgecraft.crafting.ForgeCrafting;
diff --git a/kfc/src/main/java/nmd/primal/forgecraft/compat/JEI/forge/ForgeRecipeHandler.java b/kfc/src/main/java/nmd/primal/forgecraft/compat/jei/forge/ForgeRecipeHandler.java
similarity index 90%
rename from kfc/src/main/java/nmd/primal/forgecraft/compat/JEI/forge/ForgeRecipeHandler.java
rename to kfc/src/main/java/nmd/primal/forgecraft/compat/jei/forge/ForgeRecipeHandler.java
index cf62cda3..fbce3940 100644
--- a/kfc/src/main/java/nmd/primal/forgecraft/compat/JEI/forge/ForgeRecipeHandler.java
+++ b/kfc/src/main/java/nmd/primal/forgecraft/compat/jei/forge/ForgeRecipeHandler.java
@@ -1,4 +1,4 @@
-package nmd.primal.forgecraft.compat.JEI.forge;
+package nmd.primal.forgecraft.compat.jei.forge;
import mezz.jei.api.recipe.IRecipeWrapper;
import mezz.jei.api.recipe.IRecipeWrapperFactory;
diff --git a/kfc/src/main/java/nmd/primal/forgecraft/compat/JEI/forge/ForgeRecipeWrapper.java b/kfc/src/main/java/nmd/primal/forgecraft/compat/jei/forge/ForgeRecipeWrapper.java
similarity index 97%
rename from kfc/src/main/java/nmd/primal/forgecraft/compat/JEI/forge/ForgeRecipeWrapper.java
rename to kfc/src/main/java/nmd/primal/forgecraft/compat/jei/forge/ForgeRecipeWrapper.java
index ce7e7fae..e7ba0fac 100644
--- a/kfc/src/main/java/nmd/primal/forgecraft/compat/JEI/forge/ForgeRecipeWrapper.java
+++ b/kfc/src/main/java/nmd/primal/forgecraft/compat/jei/forge/ForgeRecipeWrapper.java
@@ -1,4 +1,4 @@
-package nmd.primal.forgecraft.compat.JEI.forge;
+package nmd.primal.forgecraft.compat.jei.forge;
import mezz.jei.api.ingredients.IIngredients;
import mezz.jei.api.recipe.IRecipeWrapper;
diff --git a/kfc/src/main/java/nmd/primal/forgecraft/crafting/CrucibleCrafting.java b/kfc/src/main/java/nmd/primal/forgecraft/crafting/CrucibleCrafting.java
index 39f6cb6a..ba8809e4 100644
--- a/kfc/src/main/java/nmd/primal/forgecraft/crafting/CrucibleCrafting.java
+++ b/kfc/src/main/java/nmd/primal/forgecraft/crafting/CrucibleCrafting.java
@@ -22,13 +22,18 @@ public class CrucibleCrafting extends AbstractRecipe { //exten
public static final String RECIPE_PREFIX = "crucible";
public static final IForgeRegistry REGISTRY = ModInfo.Registries.CRUCIBLE_CRAFTING;
- public static final Collection RECIPES = REGISTRY.getValuesCollection();
- public static ArrayList getCrucibleCrafting() {
- return crucibleCrafting;
+ public static Collection getRECIPES() {
+ return RECIPES;
}
- private static ArrayList crucibleCrafting = new ArrayList<>();
+ public static final Collection RECIPES = REGISTRY.getValuesCollection();
+
+ //public static ArrayList getCrucibleCrafting() {
+ //return crucibleCrafting;
+ //}
+
+ //private static ArrayList crucibleCrafting = new ArrayList<>();
private int cookTemp;
private int cookTime;
@@ -114,15 +119,8 @@ public class CrucibleCrafting extends AbstractRecipe { //exten
this.coolTime = coolTime;
}
- public static void addRecipe(Ingredient i0, Ingredient i1, Ingredient i2, Ingredient i3, Ingredient i4,
- ItemStack outputRaw, ItemStack outputCooked,
- Integer temp, Integer cookTime, Integer coolTime)
- {
- crucibleCrafting.add(new CrucibleCrafting(i0, i1, i2, i3, i4, outputRaw, outputCooked, temp, cookTime, coolTime));
- }
-
public static boolean isRecipe(ItemStack i0, ItemStack i1, ItemStack i2, ItemStack i3, ItemStack i4){
- for(CrucibleCrafting recipe : crucibleCrafting){
+ for(CrucibleCrafting recipe : RECIPES){
if(recipe.ing0.apply(i0) && recipe.ing1.apply(i1) && recipe.ing2.apply(i2) && recipe.ing3.apply(i3) && recipe.ing4.apply(i4) ){
return true;
}
@@ -131,7 +129,7 @@ public class CrucibleCrafting extends AbstractRecipe { //exten
}
public static CrucibleCrafting getRecipe(ItemStack i0, ItemStack i1, ItemStack i2, ItemStack i3, ItemStack i4){
- for(CrucibleCrafting recipe : crucibleCrafting){
+ for(CrucibleCrafting recipe : RECIPES){
if(recipe.ing0.test(i0) && recipe.ing1.test(i1) && recipe.ing2.test(i2) && recipe.ing3.test(i3) && recipe.ing4.test(i4) ){
return recipe;
}
@@ -140,7 +138,7 @@ public class CrucibleCrafting extends AbstractRecipe { //exten
}
public static boolean isValidIngredient(ItemStack checkStack){
- for(CrucibleCrafting recipe : crucibleCrafting) {
+ for(CrucibleCrafting recipe : RECIPES) {
if (recipe.ing0.apply(checkStack) ||
recipe.ing1.apply(checkStack) ||
recipe.ing2.apply(checkStack) ||
diff --git a/kfc/src/main/java/nmd/primal/forgecraft/tiles/TileBloomery.java b/kfc/src/main/java/nmd/primal/forgecraft/tiles/TileBloomery.java
index 8a434d59..b47fcf51 100644
--- a/kfc/src/main/java/nmd/primal/forgecraft/tiles/TileBloomery.java
+++ b/kfc/src/main/java/nmd/primal/forgecraft/tiles/TileBloomery.java
@@ -78,30 +78,32 @@ public class TileBloomery extends TileBaseSlot implements ITickable {
ItemStackHelper.loadAllItems(tag, dropList);
CrucibleCrafting recipe = CrucibleCrafting.getRecipe(ingList.get(0), ingList.get(1), ingList.get(2), ingList.get(3), ingList.get(4));
if (recipe != null) {
- if (this.getHeat() >= recipe.getCookTemp() &&
- !this.getSlotStack(1).getSubCompound("BlockEntityTag").getBoolean("status")) {
- cookCounter++;
- //this.getSlotStack(1).getSubCompound("BlockEntityTag").setBoolean("hot", true);
- //System.out.println("Cooking");
- this.updateBlock();
- this.markDirty();
- }
- if (cookCounter >= (recipe.getCookTime()/4) && !this.getSlotStack(1).getSubCompound("BlockEntityTag").getBoolean("status")) {
- this.getSlotStack(1).getSubCompound("BlockEntityTag").setInteger("hot", 15);
- //System.out.println("hot");
- this.updateBlock();
- this.markDirty();
- }
- if (cookCounter >= recipe.getCookTime() && !this.getSlotStack(1).getSubCompound("BlockEntityTag").getBoolean("status")) {
- this.getSlotStack(1).getSubCompound("BlockEntityTag").setBoolean("status", true);
- this.getSlotStack(1).getSubCompound("BlockEntityTag").setInteger("heat", this.getHeat());
- cookCounter = 0;
- //System.out.println("Cooked");
- this.updateBlock();
- this.markDirty();
- }
- if (this.getSlotStack(1).isEmpty()) {
- this.cookCounter = 0;
+ if(!recipe.isDisabled()) {
+ if (this.getHeat() >= recipe.getCookTemp() &&
+ !this.getSlotStack(1).getSubCompound("BlockEntityTag").getBoolean("status")) {
+ cookCounter++;
+ //this.getSlotStack(1).getSubCompound("BlockEntityTag").setBoolean("hot", true);
+ //System.out.println("Cooking");
+ this.updateBlock();
+ this.markDirty();
+ }
+ if (cookCounter >= (recipe.getCookTime() / 4) && !this.getSlotStack(1).getSubCompound("BlockEntityTag").getBoolean("status")) {
+ this.getSlotStack(1).getSubCompound("BlockEntityTag").setInteger("hot", 15);
+ //System.out.println("hot");
+ this.updateBlock();
+ this.markDirty();
+ }
+ if (cookCounter >= recipe.getCookTime() && !this.getSlotStack(1).getSubCompound("BlockEntityTag").getBoolean("status")) {
+ this.getSlotStack(1).getSubCompound("BlockEntityTag").setBoolean("status", true);
+ this.getSlotStack(1).getSubCompound("BlockEntityTag").setInteger("heat", this.getHeat());
+ cookCounter = 0;
+ //System.out.println("Cooked");
+ this.updateBlock();
+ this.markDirty();
+ }
+ if (this.getSlotStack(1).isEmpty()) {
+ this.cookCounter = 0;
+ }
}
}
}
diff --git a/kfc/src/main/resources/assets/forgecraft/lang/en_us.lang b/kfc/src/main/resources/assets/forgecraft/lang/en_US.lang
similarity index 100%
rename from kfc/src/main/resources/assets/forgecraft/lang/en_us.lang
rename to kfc/src/main/resources/assets/forgecraft/lang/en_US.lang