diff --git a/src/main/java/techreborn/compat/jei/alloySmelter/AlloySmelterRecipeHandler.java b/src/main/java/techreborn/compat/jei/alloySmelter/AlloySmelterRecipeHandler.java deleted file mode 100644 index 316b3e5c5..000000000 --- a/src/main/java/techreborn/compat/jei/alloySmelter/AlloySmelterRecipeHandler.java +++ /dev/null @@ -1,73 +0,0 @@ -/* - * This file is part of TechReborn, licensed under the MIT License (MIT). - * - * Copyright (c) 2017 TechReborn - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package techreborn.compat.jei.alloySmelter; - -import mezz.jei.api.IJeiHelpers; -import mezz.jei.api.recipe.IRecipeHandler; -import mezz.jei.api.recipe.IRecipeWrapper; -import techreborn.api.recipe.machines.AlloySmelterRecipe; -import techreborn.compat.jei.RecipeCategoryUids; - -import javax.annotation.Nonnull; - -public class AlloySmelterRecipeHandler implements IRecipeHandler { - @Nonnull - private final IJeiHelpers jeiHelpers; - - public AlloySmelterRecipeHandler( - @Nonnull - IJeiHelpers jeiHelpers) { - this.jeiHelpers = jeiHelpers; - } - - @Nonnull - @Override - public Class getRecipeClass() { - return AlloySmelterRecipe.class; - } - - @Nonnull - @Override - public String getRecipeCategoryUid( - @Nonnull - AlloySmelterRecipe recipe) { - return RecipeCategoryUids.ALLOY_SMELTER; - } - - @Nonnull - @Override - public IRecipeWrapper getRecipeWrapper( - @Nonnull - AlloySmelterRecipe recipe) { - return new AlloySmelterRecipeWrapper(jeiHelpers, recipe); - } - - @Override - public boolean isRecipeValid( - @Nonnull - AlloySmelterRecipe recipe) { - return true; - } -} diff --git a/src/main/java/techreborn/compat/jei/blastFurnace/BlastFurnaceRecipeHandler.java b/src/main/java/techreborn/compat/jei/blastFurnace/BlastFurnaceRecipeHandler.java deleted file mode 100644 index 3b3729886..000000000 --- a/src/main/java/techreborn/compat/jei/blastFurnace/BlastFurnaceRecipeHandler.java +++ /dev/null @@ -1,73 +0,0 @@ -/* - * This file is part of TechReborn, licensed under the MIT License (MIT). - * - * Copyright (c) 2017 TechReborn - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package techreborn.compat.jei.blastFurnace; - -import mezz.jei.api.IJeiHelpers; -import mezz.jei.api.recipe.IRecipeHandler; -import mezz.jei.api.recipe.IRecipeWrapper; -import techreborn.api.recipe.machines.BlastFurnaceRecipe; -import techreborn.compat.jei.RecipeCategoryUids; - -import javax.annotation.Nonnull; - -public class BlastFurnaceRecipeHandler implements IRecipeHandler { - @Nonnull - private final IJeiHelpers jeiHelpers; - - public BlastFurnaceRecipeHandler( - @Nonnull - IJeiHelpers jeiHelpers) { - this.jeiHelpers = jeiHelpers; - } - - @Nonnull - @Override - public Class getRecipeClass() { - return BlastFurnaceRecipe.class; - } - - @Nonnull - @Override - public String getRecipeCategoryUid( - @Nonnull - BlastFurnaceRecipe recipe) { - return RecipeCategoryUids.BLAST_FURNACE; - } - - @Nonnull - @Override - public IRecipeWrapper getRecipeWrapper( - @Nonnull - BlastFurnaceRecipe recipe) { - return new BlastFurnaceRecipeWrapper(jeiHelpers, recipe); - } - - @Override - public boolean isRecipeValid( - @Nonnull - BlastFurnaceRecipe recipe) { - return true; - } -} diff --git a/src/main/java/techreborn/compat/jei/blastFurnace/BlastFurnaceRecipeWrapper.java b/src/main/java/techreborn/compat/jei/blastFurnace/BlastFurnaceRecipeWrapper.java index 1e10f0cc7..1bfcd0f17 100644 --- a/src/main/java/techreborn/compat/jei/blastFurnace/BlastFurnaceRecipeWrapper.java +++ b/src/main/java/techreborn/compat/jei/blastFurnace/BlastFurnaceRecipeWrapper.java @@ -30,7 +30,6 @@ import mezz.jei.api.gui.IDrawable; import mezz.jei.api.gui.IDrawableAnimated; import mezz.jei.api.gui.IDrawableStatic; import net.minecraft.client.Minecraft; -import net.minecraft.util.ResourceLocation; import reborncore.common.powerSystem.PowerSystem; import techreborn.api.recipe.machines.BlastFurnaceRecipe; import techreborn.client.gui.TRBuilder; @@ -39,7 +38,6 @@ import techreborn.compat.jei.BaseRecipeWrapper; import javax.annotation.Nonnull; public class BlastFurnaceRecipeWrapper extends BaseRecipeWrapper { - private static final ResourceLocation texture = new ResourceLocation("techreborn", "textures/gui/industrial_blast_furnace.png"); private final IDrawableAnimated progress; private final IDrawable heat; diff --git a/src/main/java/techreborn/compat/jei/centrifuge/CentrifugeRecipeHandler.java b/src/main/java/techreborn/compat/jei/centrifuge/CentrifugeRecipeHandler.java deleted file mode 100644 index 95544ecdd..000000000 --- a/src/main/java/techreborn/compat/jei/centrifuge/CentrifugeRecipeHandler.java +++ /dev/null @@ -1,73 +0,0 @@ -/* - * This file is part of TechReborn, licensed under the MIT License (MIT). - * - * Copyright (c) 2017 TechReborn - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package techreborn.compat.jei.centrifuge; - -import mezz.jei.api.IJeiHelpers; -import mezz.jei.api.recipe.IRecipeHandler; -import mezz.jei.api.recipe.IRecipeWrapper; -import techreborn.api.recipe.machines.CentrifugeRecipe; -import techreborn.compat.jei.RecipeCategoryUids; - -import javax.annotation.Nonnull; - -public class CentrifugeRecipeHandler implements IRecipeHandler { - @Nonnull - private final IJeiHelpers jeiHelpers; - - public CentrifugeRecipeHandler( - @Nonnull - IJeiHelpers jeiHelpers) { - this.jeiHelpers = jeiHelpers; - } - - @Nonnull - @Override - public Class getRecipeClass() { - return CentrifugeRecipe.class; - } - - @Nonnull - @Override - public String getRecipeCategoryUid( - @Nonnull - CentrifugeRecipe recipe) { - return RecipeCategoryUids.CENTRIFUGE; - } - - @Nonnull - @Override - public IRecipeWrapper getRecipeWrapper( - @Nonnull - CentrifugeRecipe recipe) { - return new CentrifugeRecipeWrapper(jeiHelpers, recipe); - } - - @Override - public boolean isRecipeValid( - @Nonnull - CentrifugeRecipe recipe) { - return true; - } -} diff --git a/src/main/java/techreborn/compat/jei/centrifuge/CentrifugeRecipeWrapper.java b/src/main/java/techreborn/compat/jei/centrifuge/CentrifugeRecipeWrapper.java index 4d9b5f428..10b8cd0cc 100644 --- a/src/main/java/techreborn/compat/jei/centrifuge/CentrifugeRecipeWrapper.java +++ b/src/main/java/techreborn/compat/jei/centrifuge/CentrifugeRecipeWrapper.java @@ -58,11 +58,8 @@ public class CentrifugeRecipeWrapper extends BaseRecipeWrapper super.drawInfo(minecraft, recipeWidth, recipeHeight, mouseX, mouseY); progress.draw(minecraft, 25, 26); - int x = -10; int y1 = 1; int y2 = 54; - int lineHeight = minecraft.fontRenderer.FONT_HEIGHT; - minecraft.fontRenderer.drawString(baseRecipe.tickTime / 20 + " seconds", (recipeWidth / 2 - minecraft.fontRenderer.getStringWidth(baseRecipe.tickTime / 20 + " seconds") / 2) - 40, y1, 0x444444); minecraft.fontRenderer.drawString(PowerSystem.getLocaliszedPowerFormatted(baseRecipe.euPerTick * baseRecipe.tickTime), (recipeWidth / 2 - minecraft.fontRenderer.getStringWidth(PowerSystem.getLocaliszedPowerFormatted(baseRecipe.euPerTick * baseRecipe.tickTime)) / 2) - 40, y2, 0x444444); diff --git a/src/main/java/techreborn/compat/jei/chemicalReactor/ChemicalReactorRecipeHandler.java b/src/main/java/techreborn/compat/jei/chemicalReactor/ChemicalReactorRecipeHandler.java deleted file mode 100644 index 6a6b09a15..000000000 --- a/src/main/java/techreborn/compat/jei/chemicalReactor/ChemicalReactorRecipeHandler.java +++ /dev/null @@ -1,73 +0,0 @@ -/* - * This file is part of TechReborn, licensed under the MIT License (MIT). - * - * Copyright (c) 2017 TechReborn - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package techreborn.compat.jei.chemicalReactor; - -import mezz.jei.api.IJeiHelpers; -import mezz.jei.api.recipe.IRecipeHandler; -import mezz.jei.api.recipe.IRecipeWrapper; -import techreborn.api.recipe.machines.ChemicalReactorRecipe; -import techreborn.compat.jei.RecipeCategoryUids; - -import javax.annotation.Nonnull; - -public class ChemicalReactorRecipeHandler implements IRecipeHandler { - @Nonnull - private final IJeiHelpers jeiHelpers; - - public ChemicalReactorRecipeHandler( - @Nonnull - IJeiHelpers jeiHelpers) { - this.jeiHelpers = jeiHelpers; - } - - @Nonnull - @Override - public Class getRecipeClass() { - return ChemicalReactorRecipe.class; - } - - @Nonnull - @Override - public String getRecipeCategoryUid( - @Nonnull - ChemicalReactorRecipe recipe) { - return RecipeCategoryUids.CHEMICAL_REACTOR; - } - - @Nonnull - @Override - public IRecipeWrapper getRecipeWrapper( - @Nonnull - ChemicalReactorRecipe recipe) { - return new ChemicalReactorRecipeWrapper(jeiHelpers, recipe); - } - - @Override - public boolean isRecipeValid( - @Nonnull - ChemicalReactorRecipe recipe) { - return true; - } -} diff --git a/src/main/java/techreborn/compat/jei/compressor/CompressorRecipeHandler.java b/src/main/java/techreborn/compat/jei/compressor/CompressorRecipeHandler.java deleted file mode 100644 index 84cdc5065..000000000 --- a/src/main/java/techreborn/compat/jei/compressor/CompressorRecipeHandler.java +++ /dev/null @@ -1,73 +0,0 @@ -/* - * This file is part of TechReborn, licensed under the MIT License (MIT). - * - * Copyright (c) 2017 TechReborn - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package techreborn.compat.jei.compressor; - -import mezz.jei.api.IJeiHelpers; -import mezz.jei.api.recipe.IRecipeHandler; -import mezz.jei.api.recipe.IRecipeWrapper; -import techreborn.api.recipe.machines.CompressorRecipe; -import techreborn.compat.jei.RecipeCategoryUids; - -import javax.annotation.Nonnull; - -public class CompressorRecipeHandler implements IRecipeHandler { - @Nonnull - private final IJeiHelpers jeiHelpers; - - public CompressorRecipeHandler( - @Nonnull - IJeiHelpers jeiHelpers) { - this.jeiHelpers = jeiHelpers; - } - - @Nonnull - @Override - public Class getRecipeClass() { - return CompressorRecipe.class; - } - - @Nonnull - @Override - public String getRecipeCategoryUid( - @Nonnull - CompressorRecipe recipe) { - return RecipeCategoryUids.COMPRESSOR; - } - - @Nonnull - @Override - public IRecipeWrapper getRecipeWrapper( - @Nonnull - CompressorRecipe recipe) { - return new CompressorRecipeWrapper(jeiHelpers, recipe); - } - - @Override - public boolean isRecipeValid( - @Nonnull - CompressorRecipe recipe) { - return true; - } -} diff --git a/src/main/java/techreborn/compat/jei/extractor/ExtractorRecipeHandler.java b/src/main/java/techreborn/compat/jei/extractor/ExtractorRecipeHandler.java deleted file mode 100644 index d3c4d1dd9..000000000 --- a/src/main/java/techreborn/compat/jei/extractor/ExtractorRecipeHandler.java +++ /dev/null @@ -1,73 +0,0 @@ -/* - * This file is part of TechReborn, licensed under the MIT License (MIT). - * - * Copyright (c) 2017 TechReborn - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package techreborn.compat.jei.extractor; - -import mezz.jei.api.IJeiHelpers; -import mezz.jei.api.recipe.IRecipeHandler; -import mezz.jei.api.recipe.IRecipeWrapper; -import techreborn.api.recipe.machines.ExtractorRecipe; -import techreborn.compat.jei.RecipeCategoryUids; - -import javax.annotation.Nonnull; - -public class ExtractorRecipeHandler implements IRecipeHandler { - @Nonnull - private final IJeiHelpers jeiHelpers; - - public ExtractorRecipeHandler( - @Nonnull - IJeiHelpers jeiHelpers) { - this.jeiHelpers = jeiHelpers; - } - - @Nonnull - @Override - public Class getRecipeClass() { - return ExtractorRecipe.class; - } - - @Nonnull - @Override - public String getRecipeCategoryUid( - @Nonnull - ExtractorRecipe recipe) { - return RecipeCategoryUids.EXTRACTOR; - } - - @Nonnull - @Override - public IRecipeWrapper getRecipeWrapper( - @Nonnull - ExtractorRecipe recipe) { - return new ExtractorRecipeWrapper(jeiHelpers, recipe); - } - - @Override - public boolean isRecipeValid( - @Nonnull - ExtractorRecipe recipe) { - return true; - } -} diff --git a/src/main/java/techreborn/compat/jei/fusionReactor/FusionReactorRecipeHandler.java b/src/main/java/techreborn/compat/jei/fusionReactor/FusionReactorRecipeHandler.java deleted file mode 100644 index b1fb3e685..000000000 --- a/src/main/java/techreborn/compat/jei/fusionReactor/FusionReactorRecipeHandler.java +++ /dev/null @@ -1,64 +0,0 @@ -/* - * This file is part of TechReborn, licensed under the MIT License (MIT). - * - * Copyright (c) 2017 TechReborn - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package techreborn.compat.jei.fusionReactor; - -import mezz.jei.api.recipe.IRecipeHandler; -import mezz.jei.api.recipe.IRecipeWrapper; -import techreborn.api.reactor.FusionReactorRecipe; -import techreborn.compat.jei.RecipeCategoryUids; - -import javax.annotation.Nonnull; - -public class FusionReactorRecipeHandler implements IRecipeHandler { - - @Nonnull - @Override - public Class getRecipeClass() { - return FusionReactorRecipe.class; - } - - @Nonnull - @Override - public String getRecipeCategoryUid( - @Nonnull - FusionReactorRecipe recipe) { - return RecipeCategoryUids.FUSION_REACTOR; - } - - @Nonnull - @Override - public IRecipeWrapper getRecipeWrapper( - @Nonnull - FusionReactorRecipe recipe) { - return new FusionReactorRecipeWrapper(recipe); - } - - @Override - public boolean isRecipeValid( - @Nonnull - FusionReactorRecipe recipe) { - return true; - } -} diff --git a/src/main/java/techreborn/compat/jei/grinder/GrinderRecipeHandler.java b/src/main/java/techreborn/compat/jei/grinder/GrinderRecipeHandler.java deleted file mode 100644 index 970fe717f..000000000 --- a/src/main/java/techreborn/compat/jei/grinder/GrinderRecipeHandler.java +++ /dev/null @@ -1,73 +0,0 @@ -/* - * This file is part of TechReborn, licensed under the MIT License (MIT). - * - * Copyright (c) 2017 TechReborn - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package techreborn.compat.jei.grinder; - -import mezz.jei.api.IJeiHelpers; -import mezz.jei.api.recipe.IRecipeHandler; -import mezz.jei.api.recipe.IRecipeWrapper; -import techreborn.api.recipe.machines.GrinderRecipe; -import techreborn.compat.jei.RecipeCategoryUids; - -import javax.annotation.Nonnull; - -public class GrinderRecipeHandler implements IRecipeHandler { - @Nonnull - private final IJeiHelpers jeiHelpers; - - public GrinderRecipeHandler( - @Nonnull - IJeiHelpers jeiHelpers) { - this.jeiHelpers = jeiHelpers; - } - - @Nonnull - @Override - public Class getRecipeClass() { - return GrinderRecipe.class; - } - - @Nonnull - @Override - public String getRecipeCategoryUid( - @Nonnull - GrinderRecipe recipe) { - return RecipeCategoryUids.GRINDER; - } - - @Nonnull - @Override - public IRecipeWrapper getRecipeWrapper( - @Nonnull - GrinderRecipe recipe) { - return new GrinderRecipeWrapper(jeiHelpers, recipe); - } - - @Override - public boolean isRecipeValid( - @Nonnull - GrinderRecipe recipe) { - return true; - } -} diff --git a/src/main/java/techreborn/compat/jei/implosionCompressor/ImplosionCompressorRecipeHandler.java b/src/main/java/techreborn/compat/jei/implosionCompressor/ImplosionCompressorRecipeHandler.java deleted file mode 100644 index e7e10957f..000000000 --- a/src/main/java/techreborn/compat/jei/implosionCompressor/ImplosionCompressorRecipeHandler.java +++ /dev/null @@ -1,73 +0,0 @@ -/* - * This file is part of TechReborn, licensed under the MIT License (MIT). - * - * Copyright (c) 2017 TechReborn - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package techreborn.compat.jei.implosionCompressor; - -import mezz.jei.api.IJeiHelpers; -import mezz.jei.api.recipe.IRecipeHandler; -import mezz.jei.api.recipe.IRecipeWrapper; -import techreborn.api.recipe.machines.ImplosionCompressorRecipe; -import techreborn.compat.jei.RecipeCategoryUids; - -import javax.annotation.Nonnull; - -public class ImplosionCompressorRecipeHandler implements IRecipeHandler { - @Nonnull - private final IJeiHelpers jeiHelpers; - - public ImplosionCompressorRecipeHandler( - @Nonnull - IJeiHelpers jeiHelpers) { - this.jeiHelpers = jeiHelpers; - } - - @Nonnull - @Override - public Class getRecipeClass() { - return ImplosionCompressorRecipe.class; - } - - @Nonnull - @Override - public String getRecipeCategoryUid( - @Nonnull - ImplosionCompressorRecipe recipe) { - return RecipeCategoryUids.IMPLOSION_COMPRESSOR; - } - - @Nonnull - @Override - public IRecipeWrapper getRecipeWrapper( - @Nonnull - ImplosionCompressorRecipe recipe) { - return new ImplosionCompressorRecipeWrapper(jeiHelpers, recipe); - } - - @Override - public boolean isRecipeValid( - @Nonnull - ImplosionCompressorRecipe recipe) { - return true; - } -} diff --git a/src/main/java/techreborn/compat/jei/industrialElectrolyzer/IndustrialElectrolyzerRecipeHandler.java b/src/main/java/techreborn/compat/jei/industrialElectrolyzer/IndustrialElectrolyzerRecipeHandler.java deleted file mode 100644 index eed33b86b..000000000 --- a/src/main/java/techreborn/compat/jei/industrialElectrolyzer/IndustrialElectrolyzerRecipeHandler.java +++ /dev/null @@ -1,73 +0,0 @@ -/* - * This file is part of TechReborn, licensed under the MIT License (MIT). - * - * Copyright (c) 2017 TechReborn - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package techreborn.compat.jei.industrialElectrolyzer; - -import mezz.jei.api.IJeiHelpers; -import mezz.jei.api.recipe.IRecipeHandler; -import mezz.jei.api.recipe.IRecipeWrapper; -import techreborn.api.recipe.machines.IndustrialElectrolyzerRecipe; -import techreborn.compat.jei.RecipeCategoryUids; - -import javax.annotation.Nonnull; - -public class IndustrialElectrolyzerRecipeHandler implements IRecipeHandler { - @Nonnull - private final IJeiHelpers jeiHelpers; - - public IndustrialElectrolyzerRecipeHandler( - @Nonnull - IJeiHelpers jeiHelpers) { - this.jeiHelpers = jeiHelpers; - } - - @Nonnull - @Override - public Class getRecipeClass() { - return IndustrialElectrolyzerRecipe.class; - } - - @Nonnull - @Override - public String getRecipeCategoryUid( - @Nonnull - IndustrialElectrolyzerRecipe recipe) { - return RecipeCategoryUids.INDUSTRIAL_ELECTROLYZER; - } - - @Nonnull - @Override - public IRecipeWrapper getRecipeWrapper( - @Nonnull - IndustrialElectrolyzerRecipe recipe) { - return new IndustrialElectrolyzerRecipeWrapper(jeiHelpers, recipe); - } - - @Override - public boolean isRecipeValid( - @Nonnull - IndustrialElectrolyzerRecipe recipe) { - return true; - } -} diff --git a/src/main/java/techreborn/compat/jei/industrialGrinder/IndustrialGrinderRecipeHandler.java b/src/main/java/techreborn/compat/jei/industrialGrinder/IndustrialGrinderRecipeHandler.java deleted file mode 100644 index 4205e2b41..000000000 --- a/src/main/java/techreborn/compat/jei/industrialGrinder/IndustrialGrinderRecipeHandler.java +++ /dev/null @@ -1,73 +0,0 @@ -/* - * This file is part of TechReborn, licensed under the MIT License (MIT). - * - * Copyright (c) 2017 TechReborn - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package techreborn.compat.jei.industrialGrinder; - -import mezz.jei.api.IJeiHelpers; -import mezz.jei.api.recipe.IRecipeHandler; -import mezz.jei.api.recipe.IRecipeWrapper; -import techreborn.api.recipe.machines.IndustrialGrinderRecipe; -import techreborn.compat.jei.RecipeCategoryUids; - -import javax.annotation.Nonnull; - -public class IndustrialGrinderRecipeHandler implements IRecipeHandler { - @Nonnull - private final IJeiHelpers jeiHelpers; - - public IndustrialGrinderRecipeHandler( - @Nonnull - IJeiHelpers jeiHelpers) { - this.jeiHelpers = jeiHelpers; - } - - @Nonnull - @Override - public Class getRecipeClass() { - return IndustrialGrinderRecipe.class; - } - - @Nonnull - @Override - public String getRecipeCategoryUid( - @Nonnull - IndustrialGrinderRecipe recipe) { - return RecipeCategoryUids.INDUSTRIAL_GRINDER; - } - - @Nonnull - @Override - public IRecipeWrapper getRecipeWrapper( - @Nonnull - IndustrialGrinderRecipe recipe) { - return new IndustrialGrinderRecipeWrapper(jeiHelpers, recipe); - } - - @Override - public boolean isRecipeValid( - @Nonnull - IndustrialGrinderRecipe recipe) { - return true; - } -} diff --git a/src/main/java/techreborn/compat/jei/industrialSawmill/IndustrialSawmillRecipeHandler.java b/src/main/java/techreborn/compat/jei/industrialSawmill/IndustrialSawmillRecipeHandler.java deleted file mode 100644 index 165d7df0b..000000000 --- a/src/main/java/techreborn/compat/jei/industrialSawmill/IndustrialSawmillRecipeHandler.java +++ /dev/null @@ -1,73 +0,0 @@ -/* - * This file is part of TechReborn, licensed under the MIT License (MIT). - * - * Copyright (c) 2017 TechReborn - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package techreborn.compat.jei.industrialSawmill; - -import mezz.jei.api.IJeiHelpers; -import mezz.jei.api.recipe.IRecipeHandler; -import mezz.jei.api.recipe.IRecipeWrapper; -import techreborn.api.recipe.machines.IndustrialSawmillRecipe; -import techreborn.compat.jei.RecipeCategoryUids; - -import javax.annotation.Nonnull; - -public class IndustrialSawmillRecipeHandler implements IRecipeHandler { - @Nonnull - private final IJeiHelpers jeiHelpers; - - public IndustrialSawmillRecipeHandler( - @Nonnull - IJeiHelpers jeiHelpers) { - this.jeiHelpers = jeiHelpers; - } - - @Nonnull - @Override - public Class getRecipeClass() { - return IndustrialSawmillRecipe.class; - } - - @Nonnull - @Override - public String getRecipeCategoryUid( - @Nonnull - IndustrialSawmillRecipe recipe) { - return RecipeCategoryUids.INDUSTRIAL_SAWMILL; - } - - @Nonnull - @Override - public IRecipeWrapper getRecipeWrapper( - @Nonnull - IndustrialSawmillRecipe recipe) { - return new IndustrialSawmillRecipeWrapper(jeiHelpers, recipe); - } - - @Override - public boolean isRecipeValid( - @Nonnull - IndustrialSawmillRecipe recipe) { - return true; - } -} diff --git a/src/main/java/techreborn/compat/jei/scrapbox/ScrapboxRecipeHandler.java b/src/main/java/techreborn/compat/jei/scrapbox/ScrapboxRecipeHandler.java deleted file mode 100644 index 5e68b66ca..000000000 --- a/src/main/java/techreborn/compat/jei/scrapbox/ScrapboxRecipeHandler.java +++ /dev/null @@ -1,73 +0,0 @@ -/* - * This file is part of TechReborn, licensed under the MIT License (MIT). - * - * Copyright (c) 2017 TechReborn - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package techreborn.compat.jei.scrapbox; - -import mezz.jei.api.IJeiHelpers; -import mezz.jei.api.recipe.IRecipeHandler; -import mezz.jei.api.recipe.IRecipeWrapper; -import techreborn.api.recipe.ScrapboxRecipe; -import techreborn.compat.jei.RecipeCategoryUids; - -import javax.annotation.Nonnull; - -public class ScrapboxRecipeHandler implements IRecipeHandler { - @Nonnull - private final IJeiHelpers jeiHelpers; - - public ScrapboxRecipeHandler( - @Nonnull - IJeiHelpers jeiHelpers) { - this.jeiHelpers = jeiHelpers; - } - - @Nonnull - @Override - public Class getRecipeClass() { - return ScrapboxRecipe.class; - } - - @Nonnull - @Override - public String getRecipeCategoryUid( - @Nonnull - ScrapboxRecipe recipe) { - return RecipeCategoryUids.SCRAPBOX; - } - - @Nonnull - @Override - public IRecipeWrapper getRecipeWrapper( - @Nonnull - ScrapboxRecipe recipe) { - return new ScrapboxRecipeWrapper(jeiHelpers, recipe); - } - - @Override - public boolean isRecipeValid( - @Nonnull - ScrapboxRecipe recipe) { - return true; - } -} diff --git a/src/main/java/techreborn/compat/jei/vacuumFreezer/VacuumFreezerRecipeHandler.java b/src/main/java/techreborn/compat/jei/vacuumFreezer/VacuumFreezerRecipeHandler.java deleted file mode 100644 index 60e7547fd..000000000 --- a/src/main/java/techreborn/compat/jei/vacuumFreezer/VacuumFreezerRecipeHandler.java +++ /dev/null @@ -1,73 +0,0 @@ -/* - * This file is part of TechReborn, licensed under the MIT License (MIT). - * - * Copyright (c) 2017 TechReborn - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package techreborn.compat.jei.vacuumFreezer; - -import mezz.jei.api.IJeiHelpers; -import mezz.jei.api.recipe.IRecipeHandler; -import mezz.jei.api.recipe.IRecipeWrapper; -import techreborn.api.recipe.machines.VacuumFreezerRecipe; -import techreborn.compat.jei.RecipeCategoryUids; - -import javax.annotation.Nonnull; - -public class VacuumFreezerRecipeHandler implements IRecipeHandler { - @Nonnull - private final IJeiHelpers jeiHelpers; - - public VacuumFreezerRecipeHandler( - @Nonnull - IJeiHelpers jeiHelpers) { - this.jeiHelpers = jeiHelpers; - } - - @Nonnull - @Override - public Class getRecipeClass() { - return VacuumFreezerRecipe.class; - } - - @Nonnull - @Override - public String getRecipeCategoryUid( - @Nonnull - VacuumFreezerRecipe recipe) { - return RecipeCategoryUids.VACUUM_FREEZER; - } - - @Nonnull - @Override - public IRecipeWrapper getRecipeWrapper( - @Nonnull - VacuumFreezerRecipe recipe) { - return new VacuumFreezerRecipeWrapper(jeiHelpers, recipe); - } - - @Override - public boolean isRecipeValid( - @Nonnull - VacuumFreezerRecipe recipe) { - return true; - } -}