Update dependencies
This commit is contained in:
@@ -12,6 +12,16 @@ public class ModGuiFactory implements IModGuiFactory {
|
||||
// NO OP
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean hasConfigGui() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public GuiScreen createConfigGui(GuiScreen parentScreen) {
|
||||
return new ModGuiConfig(parentScreen);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Class<? extends GuiScreen> mainConfigGuiClass() {
|
||||
return ModGuiConfig.class;
|
||||
|
||||
@@ -25,9 +25,9 @@ public class RSJEIPlugin extends BlankModPlugin {
|
||||
|
||||
registry.addRecipeCategories(new RecipeCategorySolderer(registry.getJeiHelpers().getGuiHelper()));
|
||||
|
||||
registry.addRecipeHandlers(new RecipeHandlerSolderer());
|
||||
registry.handleRecipes(RecipeWrapperSolderer.class, recipe -> recipe, RecipeCategorySolderer.ID);
|
||||
|
||||
registry.addRecipes(RecipeMakerSolderer.getRecipes());
|
||||
registry.addRecipes(RecipeMakerSolderer.getRecipes(), RecipeCategorySolderer.ID);
|
||||
|
||||
registry.addRecipeCategoryCraftingItem(new ItemStack(RSBlocks.SOLDERER), RecipeCategorySolderer.ID);
|
||||
|
||||
|
||||
@@ -1,31 +0,0 @@
|
||||
package com.raoulvdberge.refinedstorage.integration.jei;
|
||||
|
||||
import mezz.jei.api.recipe.IRecipeHandler;
|
||||
import mezz.jei.api.recipe.IRecipeWrapper;
|
||||
|
||||
import javax.annotation.Nonnull;
|
||||
|
||||
public class RecipeHandlerSolderer implements IRecipeHandler<RecipeWrapperSolderer> {
|
||||
@Override
|
||||
@Nonnull
|
||||
public Class<RecipeWrapperSolderer> getRecipeClass() {
|
||||
return RecipeWrapperSolderer.class;
|
||||
}
|
||||
|
||||
@Override
|
||||
@Nonnull
|
||||
public String getRecipeCategoryUid(@Nonnull RecipeWrapperSolderer recipe) {
|
||||
return RecipeCategorySolderer.ID;
|
||||
}
|
||||
|
||||
@Override
|
||||
@Nonnull
|
||||
public IRecipeWrapper getRecipeWrapper(@Nonnull RecipeWrapperSolderer recipe) {
|
||||
return recipe;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isRecipeValid(@Nonnull RecipeWrapperSolderer recipe) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -52,6 +52,6 @@ public class PartCable implements IMultipart {
|
||||
|
||||
@Override
|
||||
public void onPartChanged(IPartInfo part, IPartInfo otherPart) {
|
||||
API.instance().discoverNode(part.getWorld(), part.getContainer().getPos());
|
||||
API.instance().discoverNode(part.getActualWorld(), part.getContainer().getPartPos());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user