Fix jei plugin not loading

This commit is contained in:
Vincent Lee committed 2019-04-23 13:37:09 -05:00
1 parent c34d2c55b9
commit bd095808b7
8 files changed
+12 -8

No files matched your search

@@ -39,7 +39,7 @@ public class BreweryRecipeCategory implements IRecipeCategory<RecipeBrew> {
private final String localizedName;
public BreweryRecipeCategory(IGuiHelper guiHelper) {
ResourceLocation location = new ResourceLocation("botania", "textures/gui/neiBrewery.png");
ResourceLocation location = new ResourceLocation("botania", "textures/gui/nei_brewery.png");
background = guiHelper.createDrawable(location, 0, 0, 166, 65);
localizedName = I18n.format("botania.nei.brewery");
icon = guiHelper.createDrawableIngredient(new ItemStack(ModBlocks.brewery));
@@ -47,7 +47,7 @@ public class ElvenTradeRecipeCategory implements IRecipeCategory<RecipeElvenTrad
public ElvenTradeRecipeCategory(IGuiHelper guiHelper) {
localizedName = I18n.format("botania.nei.elvenTrade");
background = guiHelper.createBlankDrawable(145, 95);
overlay = guiHelper.createDrawable(new ResourceLocation("botania", "textures/gui/elvenTradeOverlay.png"), 0, 15, 140, 90);
overlay = guiHelper.createDrawable(new ResourceLocation("botania", "textures/gui/elven_trade_overlay.png"), 0, 15, 140, 90);
icon = guiHelper.createDrawableIngredient(new ItemStack(ModBlocks.alfPortal));
}
@@ -48,7 +48,7 @@ public class ManaPoolRecipeCategory implements IRecipeCategory<RecipeManaInfusio
public ManaPoolRecipeCategory(IGuiHelper guiHelper) {
background = guiHelper.createBlankDrawable(168, 64);
localizedName = I18n.format("botania.nei.manaPool");
overlay = guiHelper.createDrawable(new ResourceLocation("botania", "textures/gui/pureDaisyOverlay.png"),
overlay = guiHelper.createDrawable(new ResourceLocation("botania", "textures/gui/pure_daisy_overlay.png"),
0, 0, 64, 46);
icon = guiHelper.createDrawableIngredient(renderStack.copy());
ItemNBTHelper.setBoolean(renderStack, "RenderFull", true);
@@ -37,7 +37,7 @@ public class OrechidIgnemRecipeCategory implements IRecipeCategory<OrechidIgnemR
public OrechidIgnemRecipeCategory(IGuiHelper guiHelper) {
background = guiHelper.createBlankDrawable(168, 64);
localizedName = I18n.format("botania.nei.orechidIgnem");
overlay = guiHelper.createDrawable(new ResourceLocation("botania", "textures/gui/pureDaisyOverlay.png"),
overlay = guiHelper.createDrawable(new ResourceLocation("botania", "textures/gui/pure_daisy_overlay.png"),
0, 0, 64, 46);
icon = guiHelper.createDrawableIngredient(ItemBlockSpecialFlower.ofType(ModSubtiles.orechidIgnem));
}
@@ -48,7 +48,7 @@ public class OrechidRecipeCategory implements IRecipeCategory<OrechidRecipeWrapp
public OrechidRecipeCategory(IGuiHelper guiHelper) {
background = guiHelper.createBlankDrawable(168, 64);
localizedName = I18n.format("botania.nei.orechid");
overlay = guiHelper.createDrawable(new ResourceLocation("botania", "textures/gui/pureDaisyOverlay.png"),
overlay = guiHelper.createDrawable(new ResourceLocation("botania", "textures/gui/pure_daisy_overlay.png"),
0, 0, 64, 46);
icon = guiHelper.createDrawableIngredient(ItemBlockSpecialFlower.ofType(ModSubtiles.orechid));
}
@@ -42,7 +42,7 @@ public class PetalApothecaryRecipeCategory implements IRecipeCategory<RecipePeta
public PetalApothecaryRecipeCategory(IGuiHelper guiHelper) {
background = guiHelper.createBlankDrawable(150, 110);
localizedName = I18n.format("botania.nei.petalApothecary");
overlay = guiHelper.createDrawable(new ResourceLocation("botania", "textures/gui/petalOverlay.png"),
overlay = guiHelper.createDrawable(new ResourceLocation("botania", "textures/gui/petal_overlay.png"),
0, 0, 150, 110);
icon = guiHelper.createDrawableIngredient(new ItemStack(ModBlocks.defaultAltar));
}
@@ -18,6 +18,7 @@ import net.minecraft.block.Block;
import net.minecraft.block.state.IBlockState;
import net.minecraft.client.renderer.GlStateManager;
import net.minecraft.client.resources.I18n;
import net.minecraft.init.Items;
import net.minecraft.item.ItemStack;
import net.minecraft.tags.Tag;
import net.minecraft.util.ResourceLocation;
@@ -44,7 +45,7 @@ public class PureDaisyRecipeCategory implements IRecipeCategory<RecipePureDaisy>
public PureDaisyRecipeCategory(IGuiHelper guiHelper) {
background = guiHelper.createBlankDrawable(168, 64);
localizedName = I18n.format("botania.nei.pureDaisy");
overlay = guiHelper.createDrawable(new ResourceLocation("botania", "textures/gui/pureDaisyOverlay.png"),
overlay = guiHelper.createDrawable(new ResourceLocation("botania", "textures/gui/pure_daisy_overlay.png"),
0, 0, 64, 46);
icon = guiHelper.createDrawableIngredient(ItemBlockSpecialFlower.ofType(ModSubtiles.pureDaisy));
}
@@ -92,6 +93,7 @@ public class PureDaisyRecipeCategory implements IRecipeCategory<RecipePureDaisy>
//if(FluidRegistry.lookupFluidForBlock(b) != null) {
// iIngredients.setInput(VanillaTypes.FLUID, new FluidStack(FluidRegistry.lookupFluidForBlock(b), 1000));
//} else {
if(b.asItem() != Items.AIR)
iIngredients.setInput(VanillaTypes.ITEM, new ItemStack(b));
//}
}
@@ -101,6 +103,7 @@ public class PureDaisyRecipeCategory implements IRecipeCategory<RecipePureDaisy>
//if(FluidRegistry.lookupFluidForBlock(outBlock) != null) {
// iIngredients.setOutput(VanillaTypes.FLUID, new FluidStack(FluidRegistry.lookupFluidForBlock(outBlock), 1000));
//} else {
if(outBlock.asItem() != Items.AIR)
iIngredients.setOutput(VanillaTypes.ITEM, new ItemStack(outBlock));
//}
}
@@ -44,7 +44,7 @@ public class RunicAltarRecipeCategory implements IRecipeCategory<RecipeRuneAltar
public RunicAltarRecipeCategory(IGuiHelper guiHelper) {
background = guiHelper.createBlankDrawable(150, 110);
localizedName = I18n.format("botania.nei.runicAltar");
overlay = guiHelper.createDrawable(new ResourceLocation("botania", "textures/gui/petalOverlay.png"),
overlay = guiHelper.createDrawable(new ResourceLocation("botania", "textures/gui/petal_overlay.png"),
0, 0, 150, 110);
icon = guiHelper.createDrawableIngredient(new ItemStack(ModBlocks.runeAltar));
}
@@ -85,6 +85,7 @@ public class RunicAltarRecipeCategory implements IRecipeCategory<RecipeRuneAltar
for(Ingredient ingr : recipe.getInputs()) {
list.add(Arrays.asList(ingr.getMatchingStacks()));
}
System.out.println(list);
iIngredients.setInputLists(VanillaTypes.ITEM, list);
iIngredients.setOutput(VanillaTypes.ITEM, recipe.getOutput());
}