@@ -28,7 +28,7 @@ sourceCompatibility = 1.8
|
|||||||
targetCompatibility = 1.8
|
targetCompatibility = 1.8
|
||||||
|
|
||||||
minecraft {
|
minecraft {
|
||||||
version = "1.10.2-12.18.1.2088"
|
version = "1.10.2-12.18.1.2094"
|
||||||
runDir = "run"
|
runDir = "run"
|
||||||
useDepAts = true
|
useDepAts = true
|
||||||
mappings = "snapshot_20160910"
|
mappings = "snapshot_20160910"
|
||||||
@@ -51,7 +51,8 @@ repositories {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
deobfCompile "mezz.jei:jei_1.10.2:3.9.+"
|
deobfCompile "mezz.jei:jei_1.10.2:3.11.+:api"
|
||||||
|
runtime "mezz.jei:jei_1.10.2:3.11.+"
|
||||||
compile "net.darkhax.tesla:Tesla:1.10-1.2.+"
|
compile "net.darkhax.tesla:Tesla:1.10-1.2.+"
|
||||||
compile "net.industrial-craft:industrialcraft-2:2.6.67-ex110:api"
|
compile "net.industrial-craft:industrialcraft-2:2.6.67-ex110:api"
|
||||||
deobfCompile "MCMultiPart:MCMultiPart:1.2.1+:universal"
|
deobfCompile "MCMultiPart:MCMultiPart:1.2.1+:universal"
|
||||||
|
@@ -4,6 +4,7 @@ import mezz.jei.api.IGuiHelper;
|
|||||||
import mezz.jei.api.gui.IDrawable;
|
import mezz.jei.api.gui.IDrawable;
|
||||||
import mezz.jei.api.gui.IGuiItemStackGroup;
|
import mezz.jei.api.gui.IGuiItemStackGroup;
|
||||||
import mezz.jei.api.gui.IRecipeLayout;
|
import mezz.jei.api.gui.IRecipeLayout;
|
||||||
|
import mezz.jei.api.ingredients.IIngredients;
|
||||||
import mezz.jei.api.recipe.IRecipeCategory;
|
import mezz.jei.api.recipe.IRecipeCategory;
|
||||||
import mezz.jei.api.recipe.IRecipeWrapper;
|
import mezz.jei.api.recipe.IRecipeWrapper;
|
||||||
import net.minecraft.client.Minecraft;
|
import net.minecraft.client.Minecraft;
|
||||||
@@ -66,4 +67,28 @@ public class RecipeCategorySolderer implements IRecipeCategory {
|
|||||||
group.set(3, (ItemStack) recipeWrapper.getOutputs().get(0));
|
group.set(3, (ItemStack) recipeWrapper.getOutputs().get(0));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void setRecipe(IRecipeLayout recipeLayout, IRecipeWrapper recipeWrapper, IIngredients ingredients) {
|
||||||
|
IGuiItemStackGroup group = recipeLayout.getItemStacks();
|
||||||
|
|
||||||
|
int x = 44 - 9;
|
||||||
|
int y = 20 - 6;
|
||||||
|
|
||||||
|
for (int i = 0; i < 3; ++i) {
|
||||||
|
group.init(i, true, x, y);
|
||||||
|
|
||||||
|
y += 18;
|
||||||
|
}
|
||||||
|
|
||||||
|
group.init(3, false, 127 - 9, 38 - 6);
|
||||||
|
|
||||||
|
if (recipeWrapper instanceof RecipeWrapperSolderer) {
|
||||||
|
for (int i = 0; i < 3; ++i) {
|
||||||
|
group.set(i, ingredients.getInputs(ItemStack.class).get(i));
|
||||||
|
}
|
||||||
|
|
||||||
|
group.set(3, ingredients.getOutputs(ItemStack.class).get(0));
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@@ -1,12 +1,13 @@
|
|||||||
package refinedstorage.integration.jei;
|
package refinedstorage.integration.jei;
|
||||||
|
|
||||||
import mezz.jei.plugins.vanilla.VanillaRecipeWrapper;
|
import mezz.jei.api.ingredients.IIngredients;
|
||||||
|
import mezz.jei.api.recipe.BlankRecipeWrapper;
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
|
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
public class RecipeWrapperSolderer extends VanillaRecipeWrapper {
|
public class RecipeWrapperSolderer extends BlankRecipeWrapper {
|
||||||
private List<ItemStack> inputs;
|
private List<ItemStack> inputs;
|
||||||
private ItemStack output;
|
private ItemStack output;
|
||||||
|
|
||||||
@@ -15,6 +16,12 @@ public class RecipeWrapperSolderer extends VanillaRecipeWrapper {
|
|||||||
this.output = output;
|
this.output = output;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void getIngredients(IIngredients ingredients) {
|
||||||
|
ingredients.setInputs(ItemStack.class, inputs);
|
||||||
|
ingredients.setOutput(ItemStack.class, output);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<ItemStack> getInputs() {
|
public List<ItemStack> getInputs() {
|
||||||
return inputs;
|
return inputs;
|
||||||
|
@@ -1,14 +1,11 @@
|
|||||||
package refinedstorage.integration.jei;
|
package refinedstorage.integration.jei;
|
||||||
|
|
||||||
import mezz.jei.api.IJeiRuntime;
|
import mezz.jei.api.*;
|
||||||
import mezz.jei.api.IModPlugin;
|
|
||||||
import mezz.jei.api.IModRegistry;
|
|
||||||
import mezz.jei.api.JEIPlugin;
|
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
import refinedstorage.RefinedStorageBlocks;
|
import refinedstorage.RefinedStorageBlocks;
|
||||||
|
|
||||||
@JEIPlugin
|
@JEIPlugin
|
||||||
public class RefinedStorageJEIPlugin implements IModPlugin {
|
public class RefinedStorageJEIPlugin extends BlankModPlugin {
|
||||||
public static RefinedStorageJEIPlugin INSTANCE;
|
public static RefinedStorageJEIPlugin INSTANCE;
|
||||||
|
|
||||||
private IJeiRuntime runtime;
|
private IJeiRuntime runtime;
|
||||||
|
Reference in New Issue
Block a user