jei crashing on load
This commit is contained in:
@@ -47,7 +47,7 @@ public class ModInfo {
|
||||
public static class Registries
|
||||
{
|
||||
// In-World Recipes
|
||||
public static final IForgeRegistry<CrucibleCrafting> CRUCIBLE_CRAFTINGS = GameRegistry.findRegistry(CrucibleCrafting.class);
|
||||
//public static final IForgeRegistry<CrucibleCrafting> CRUCIBLE_CRAFTINGS = GameRegistry.findRegistry(CrucibleCrafting.class);
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@ public class CrucibleRecipeCategory extends AbstractCategory<CrucibleRecipeWrapp
|
||||
@Override
|
||||
public String getTitle()
|
||||
{
|
||||
return I18n.format("jei.category.primal.crucible");
|
||||
return I18n.format("jei.category.forgecraft.crucible");
|
||||
}
|
||||
|
||||
@Nonnull
|
||||
@@ -53,10 +53,10 @@ public class CrucibleRecipeCategory extends AbstractCategory<CrucibleRecipeWrapp
|
||||
return background;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void drawExtras(@Nonnull Minecraft minecraft)
|
||||
//@Override
|
||||
//public void drawExtras(@Nonnull Minecraft minecraft)
|
||||
{
|
||||
progress.draw(minecraft, 67, 18);
|
||||
//progress.draw(minecraft, 67, 18);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -2,10 +2,7 @@ package nmd.primal.forgecraft.crafting;
|
||||
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.crafting.Ingredient;
|
||||
import net.minecraftforge.registries.IForgeRegistry;
|
||||
import nmd.primal.forgecraft.ModInfo;
|
||||
|
||||
import javax.annotation.Nullable;
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,22 +1,5 @@
|
||||
package nmd.primal.forgecraft.init.recipes;
|
||||
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.crafting.Ingredient;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraftforge.event.RegistryEvent;
|
||||
import net.minecraftforge.fml.common.Mod;
|
||||
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
|
||||
import net.minecraftforge.fml.common.registry.GameRegistry;
|
||||
import net.minecraftforge.oredict.OreIngredient;
|
||||
import net.minecraftforge.registries.IForgeRegistry;
|
||||
import nmd.primal.core.api.PrimalAPI;
|
||||
import nmd.primal.core.common.recipes.tile.CauldronRecipe;
|
||||
import nmd.primal.forgecraft.ModInfo;
|
||||
import nmd.primal.forgecraft.crafting.CrucibleCrafting;
|
||||
import nmd.primal.forgecraft.init.ModItems;
|
||||
|
||||
|
||||
/**
|
||||
* Created by mminaie on 9/15/18.
|
||||
*/
|
||||
@@ -200,3 +183,4 @@ public final class CrucibleRecipes {
|
||||
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
@@ -18,7 +18,7 @@ import java.util.List;
|
||||
/**
|
||||
* Created by mminaie on 11/11/17.
|
||||
*/
|
||||
public class TileNBTCrucible extends BaseTile implements ITickable, IRecipeCache<CrucibleCrafting> {
|
||||
public class TileNBTCrucible extends BaseTile implements ITickable {
|
||||
|
||||
private ItemStack drops;
|
||||
private int heat;
|
||||
@@ -130,35 +130,7 @@ public class TileNBTCrucible extends BaseTile implements ITickable, IRecipeCache
|
||||
return nbt;
|
||||
}
|
||||
|
||||
// ***************************************************************************** //
|
||||
// IRecipeCache
|
||||
// ***************************************************************************** //
|
||||
private List<CrucibleCrafting> recipe_cache = new ArrayList<>();
|
||||
|
||||
@Override
|
||||
public List<CrucibleCrafting> getRecipeCache()
|
||||
{
|
||||
return recipe_cache;
|
||||
}
|
||||
|
||||
@Override
|
||||
public CrucibleCrafting matchRecipe()
|
||||
{
|
||||
for (CrucibleCrafting recipe : this.getRecipeCache()) {
|
||||
if (recipe.isRecipe(this.ingList.get(0), this.ingList.get(1), this.ingList.get(2), this.ingList.get(3), this.ingList.get(4))) {
|
||||
return recipe;
|
||||
}
|
||||
}
|
||||
|
||||
for (CrucibleCrafting recipe : CrucibleCrafting.RECIPES) {
|
||||
if (recipe.isRecipe(this.ingList.get(0), this.ingList.get(1), this.ingList.get(2), this.ingList.get(3), this.ingList.get(4))) {
|
||||
this.addRecipeCache(recipe);
|
||||
return recipe;
|
||||
}
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 2.0 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 1.7 KiB |
Reference in New Issue
Block a user