-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed JEI loading errors since 15.20.0.100
- Loading branch information
Showing
5 changed files
with
19 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 4 additions & 11 deletions
15
src/main/java/cech12/brickfurnace/jei/BrickBlastingCategory.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,18 @@ | ||
package cech12.brickfurnace.jei; | ||
|
||
import cech12.brickfurnace.init.ModBlocks; | ||
import cech12.brickfurnace.init.ModRecipeTypes; | ||
import cech12.brickfurnace.config.ServerConfig; | ||
import cech12.brickfurnace.crafting.BrickBlastingRecipe; | ||
import cech12.brickfurnace.init.ModBlocks; | ||
import cech12.brickfurnace.init.ModRecipeTypes; | ||
import mezz.jei.api.helpers.IGuiHelper; | ||
import mezz.jei.api.recipe.RecipeType; | ||
import mezz.jei.library.plugins.vanilla.cooking.AbstractCookingCategory; | ||
|
||
import javax.annotation.Nonnull; | ||
|
||
public class BrickBlastingCategory extends AbstractCookingCategory<BrickBlastingRecipe> { | ||
|
||
public BrickBlastingCategory(IGuiHelper guiHelper) { | ||
super(guiHelper, ModBlocks.BRICK_BLAST_FURNACE.get(), "gui.jei.category.blasting", (int) (100 * ServerConfig.COOK_TIME_FACTOR.get())); | ||
} | ||
|
||
@Override | ||
@Nonnull | ||
public RecipeType<BrickBlastingRecipe> getRecipeType() { | ||
return new RecipeType<>(ModRecipeTypes.BLASTING.getId(), BrickBlastingRecipe.class); | ||
super(guiHelper, new RecipeType<>(ModRecipeTypes.BLASTING.getId(), BrickBlastingRecipe.class), | ||
ModBlocks.BRICK_BLAST_FURNACE.get(), "gui.jei.category.blasting", (int) (100 * ServerConfig.COOK_TIME_FACTOR.get())); | ||
} | ||
|
||
} |
15 changes: 4 additions & 11 deletions
15
src/main/java/cech12/brickfurnace/jei/BrickSmeltingCategory.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,18 @@ | ||
package cech12.brickfurnace.jei; | ||
|
||
import cech12.brickfurnace.init.ModBlocks; | ||
import cech12.brickfurnace.init.ModRecipeTypes; | ||
import cech12.brickfurnace.config.ServerConfig; | ||
import cech12.brickfurnace.crafting.BrickSmeltingRecipe; | ||
import cech12.brickfurnace.init.ModBlocks; | ||
import cech12.brickfurnace.init.ModRecipeTypes; | ||
import mezz.jei.api.helpers.IGuiHelper; | ||
import mezz.jei.api.recipe.RecipeType; | ||
import mezz.jei.library.plugins.vanilla.cooking.AbstractCookingCategory; | ||
|
||
import javax.annotation.Nonnull; | ||
|
||
public class BrickSmeltingCategory extends AbstractCookingCategory<BrickSmeltingRecipe> { | ||
|
||
public BrickSmeltingCategory(IGuiHelper guiHelper) { | ||
super(guiHelper, ModBlocks.BRICK_FURNACE.get(), "gui.jei.category.smelting", (int) (200 * ServerConfig.COOK_TIME_FACTOR.get())); | ||
} | ||
|
||
@Override | ||
@Nonnull | ||
public RecipeType<BrickSmeltingRecipe> getRecipeType() { | ||
return new RecipeType<>(ModRecipeTypes.SMELTING.getId(), BrickSmeltingRecipe.class); | ||
super(guiHelper, new RecipeType<>(ModRecipeTypes.SMELTING.getId(), BrickSmeltingRecipe.class), | ||
ModBlocks.BRICK_FURNACE.get(), "gui.jei.category.smelting", (int) (200 * ServerConfig.COOK_TIME_FACTOR.get())); | ||
} | ||
|
||
} |
15 changes: 4 additions & 11 deletions
15
src/main/java/cech12/brickfurnace/jei/BrickSmokingCategory.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,18 @@ | ||
package cech12.brickfurnace.jei; | ||
|
||
import cech12.brickfurnace.init.ModBlocks; | ||
import cech12.brickfurnace.init.ModRecipeTypes; | ||
import cech12.brickfurnace.config.ServerConfig; | ||
import cech12.brickfurnace.crafting.BrickSmokingRecipe; | ||
import cech12.brickfurnace.init.ModBlocks; | ||
import cech12.brickfurnace.init.ModRecipeTypes; | ||
import mezz.jei.api.helpers.IGuiHelper; | ||
import mezz.jei.api.recipe.RecipeType; | ||
import mezz.jei.library.plugins.vanilla.cooking.AbstractCookingCategory; | ||
|
||
import javax.annotation.Nonnull; | ||
|
||
public class BrickSmokingCategory extends AbstractCookingCategory<BrickSmokingRecipe> { | ||
|
||
public BrickSmokingCategory(IGuiHelper guiHelper) { | ||
super(guiHelper, ModBlocks.BRICK_SMOKER.get(), "gui.jei.category.smoking", (int) (100 * ServerConfig.COOK_TIME_FACTOR.get())); | ||
} | ||
|
||
@Override | ||
@Nonnull | ||
public RecipeType<BrickSmokingRecipe> getRecipeType() { | ||
return new RecipeType<>(ModRecipeTypes.SMOKING.getId(), BrickSmokingRecipe.class); | ||
super(guiHelper, new RecipeType<>(ModRecipeTypes.SMOKING.getId(), BrickSmokingRecipe.class), | ||
ModBlocks.BRICK_SMOKER.get(), "gui.jei.category.smoking", (int) (100 * ServerConfig.COOK_TIME_FACTOR.get())); | ||
} | ||
|
||
} |