mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-17 19:05:16 +00:00
JEI cleanups thanks to Java8
This commit is contained in:
1 parent
d244e12437
commit
cb482e82c3
11 files changed
-141
No files matched your search
@@ -8,12 +8,10 @@
|
||||
*/
|
||||
package vazkii.botania.client.integration.jei;
|
||||
|
||||
import mezz.jei.api.IJeiRuntime;
|
||||
import mezz.jei.api.IModPlugin;
|
||||
import mezz.jei.api.IModRegistry;
|
||||
import mezz.jei.api.ISubtypeRegistry;
|
||||
import mezz.jei.api.JEIPlugin;
|
||||
import mezz.jei.api.ingredients.IModIngredientRegistration;
|
||||
import mezz.jei.api.recipe.IRecipeCategoryRegistration;
|
||||
import mezz.jei.api.recipe.VanillaRecipeCategoryUid;
|
||||
import net.minecraft.item.Item;
|
||||
@@ -55,9 +53,6 @@ public class JEIBotaniaPlugin implements IModPlugin {
|
||||
subtypeRegistry.registerSubtypeInterpreter(Item.getItemFromBlock(ModBlocks.floatingSpecialFlower), ItemBlockSpecialFlower::getType);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void registerIngredients(@Nonnull IModIngredientRegistration registry) {}
|
||||
|
||||
@Override
|
||||
public void registerCategories(IRecipeCategoryRegistration registry) {
|
||||
registry.addRecipeCategories(
|
||||
@@ -109,7 +104,4 @@ public class JEIBotaniaPlugin implements IModPlugin {
|
||||
registry.getRecipeTransferRegistry().addRecipeTransferHandler(ContainerCraftingHalo.class, VanillaRecipeCategoryUid.CRAFTING, 1, 9, 10, 36);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onRuntimeAvailable(@Nonnull IJeiRuntime jeiRuntime) {}
|
||||
|
||||
}
|
||||
-16
@@ -62,16 +62,6 @@ public class BreweryRecipeCategory implements IRecipeCategory {
|
||||
return background;
|
||||
}
|
||||
|
||||
@Nullable
|
||||
@Override
|
||||
public IDrawable getIcon() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void drawExtras(@Nonnull Minecraft minecraft) {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setRecipe(@Nonnull IRecipeLayout recipeLayout, @Nonnull IRecipeWrapper recipeWrapper, @Nonnull IIngredients ingredients) {
|
||||
if(!(recipeWrapper instanceof BreweryRecipeWrapper))
|
||||
@@ -94,10 +84,4 @@ public class BreweryRecipeCategory implements IRecipeCategory {
|
||||
recipeLayout.getItemStacks().init(7, false, 87, 41);
|
||||
recipeLayout.getItemStacks().set(7, ingredients.getOutputs(ItemStack.class).get(0));
|
||||
}
|
||||
|
||||
@Override
|
||||
public List getTooltipStrings(int mouseX, int mouseY) {
|
||||
return new ArrayList();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -47,21 +47,4 @@ public class BreweryRecipeWrapper implements IRecipeWrapper {
|
||||
ingredients.setInputLists(ItemStack.class, input);
|
||||
ingredients.setOutputLists(ItemStack.class, ImmutableList.of(output));
|
||||
}
|
||||
|
||||
@Override
|
||||
public void drawInfo(@Nonnull Minecraft minecraft, int recipeWidth, int recipeHeight, int mouseX, int mouseY) {
|
||||
}
|
||||
|
||||
|
||||
@Nonnull
|
||||
@Override
|
||||
public List<String> getTooltipStrings(int mouseX, int mouseY) {
|
||||
return ImmutableList.of();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean handleClick(@Nonnull Minecraft minecraft, int mouseX, int mouseY, int mouseButton) {
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
-11
@@ -64,12 +64,6 @@ public class ElvenTradeRecipeCategory implements IRecipeCategory {
|
||||
return background;
|
||||
}
|
||||
|
||||
@Nullable
|
||||
@Override
|
||||
public IDrawable getIcon() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void drawExtras(@Nonnull Minecraft minecraft) {
|
||||
GlStateManager.enableAlpha();
|
||||
@@ -114,11 +108,6 @@ public class ElvenTradeRecipeCategory implements IRecipeCategory {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public List getTooltipStrings(int mouseX, int mouseY) {
|
||||
return new ArrayList();
|
||||
}
|
||||
|
||||
@Nonnull
|
||||
@Override
|
||||
public String getModName() {
|
||||
|
||||
-15
@@ -44,19 +44,4 @@ public class ElvenTradeRecipeWrapper implements IRecipeWrapper {
|
||||
ingredients.setInputLists(ItemStack.class, input);
|
||||
ingredients.setOutputs(ItemStack.class, outputs);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void drawInfo(@Nonnull Minecraft minecraft, int recipeWidth, int recipeHeight, int mouseX, int mouseY) {}
|
||||
|
||||
@Nonnull
|
||||
@Override
|
||||
public List<String> getTooltipStrings(int mouseX, int mouseY) {
|
||||
return ImmutableList.of();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean handleClick(@Nonnull Minecraft minecraft, int mouseX, int mouseY, int mouseButton) {
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
-11
@@ -61,12 +61,6 @@ public class PetalApothecaryRecipeCategory implements IRecipeCategory {
|
||||
return background;
|
||||
}
|
||||
|
||||
@Nullable
|
||||
@Override
|
||||
public IDrawable getIcon() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void drawExtras(@Nonnull Minecraft minecraft) {
|
||||
GlStateManager.enableAlpha();
|
||||
@@ -106,11 +100,6 @@ public class PetalApothecaryRecipeCategory implements IRecipeCategory {
|
||||
return new Point((int) newX, (int) newY);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List getTooltipStrings(int mouseX, int mouseY) {
|
||||
return new ArrayList();
|
||||
}
|
||||
|
||||
@Nonnull
|
||||
@Override
|
||||
public String getModName() {
|
||||
|
||||
-15
@@ -44,19 +44,4 @@ public class PetalApothecaryRecipeWrapper implements IRecipeWrapper {
|
||||
ingredients.setOutput(ItemStack.class, output);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void drawInfo(@Nonnull Minecraft minecraft, int recipeWidth, int recipeHeight, int mouseX, int mouseY) {
|
||||
}
|
||||
|
||||
@Nonnull
|
||||
@Override
|
||||
public List<String> getTooltipStrings(int mouseX, int mouseY) {
|
||||
return ImmutableList.of();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean handleClick(@Nonnull Minecraft minecraft, int mouseX, int mouseY, int mouseButton) {
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
-11
@@ -61,12 +61,6 @@ public class PureDaisyRecipeCategory implements IRecipeCategory {
|
||||
return background;
|
||||
}
|
||||
|
||||
@Nullable
|
||||
@Override
|
||||
public IDrawable getIcon() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void drawExtras(@Nonnull Minecraft minecraft) {
|
||||
GlStateManager.enableAlpha();
|
||||
@@ -104,11 +98,6 @@ public class PureDaisyRecipeCategory implements IRecipeCategory {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public List getTooltipStrings(int mouseX, int mouseY) {
|
||||
return new ArrayList();
|
||||
}
|
||||
|
||||
@Nonnull
|
||||
@Override
|
||||
public String getModName() {
|
||||
|
||||
-15
@@ -66,19 +66,4 @@ public class PureDaisyRecipeWrapper implements IRecipeWrapper {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void drawInfo(@Nonnull Minecraft minecraft, int recipeWidth, int recipeHeight, int mouseX, int mouseY) {
|
||||
}
|
||||
|
||||
@Nonnull
|
||||
@Override
|
||||
public List<String> getTooltipStrings(int mouseX, int mouseY) {
|
||||
return ImmutableList.of();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean handleClick(@Nonnull Minecraft minecraft, int mouseX, int mouseY, int mouseButton) {
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
-11
@@ -60,12 +60,6 @@ public class RunicAltarRecipeCategory implements IRecipeCategory {
|
||||
return background;
|
||||
}
|
||||
|
||||
@Nullable
|
||||
@Override
|
||||
public IDrawable getIcon() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void drawExtras(@Nonnull Minecraft minecraft) {
|
||||
GlStateManager.enableAlpha();
|
||||
@@ -107,11 +101,6 @@ public class RunicAltarRecipeCategory implements IRecipeCategory {
|
||||
return new Point((int) newX, (int) newY);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List getTooltipStrings(int mouseX, int mouseY) {
|
||||
return new ArrayList();
|
||||
}
|
||||
|
||||
@Nonnull
|
||||
@Override
|
||||
public String getModName() {
|
||||
|
||||
-11
@@ -57,15 +57,4 @@ public class RunicAltarRecipeWrapper implements IRecipeWrapper {
|
||||
GlStateManager.disableAlpha();
|
||||
}
|
||||
|
||||
@Nonnull
|
||||
@Override
|
||||
public List<String> getTooltipStrings(int mouseX, int mouseY) {
|
||||
return ImmutableList.of();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean handleClick(@Nonnull Minecraft minecraft, int mouseX, int mouseY, int mouseButton) {
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user