Skip to content

Commit

Permalink
sa+wci
Browse files Browse the repository at this point in the history
  • Loading branch information
Dream-Master committed Sep 24, 2023
1 parent 0e3ff1e commit e9ab2eb
Show file tree
Hide file tree
Showing 29 changed files with 73 additions and 38 deletions.
8 changes: 6 additions & 2 deletions src/main/java/codechicken/nei/BookmarkPanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,19 @@
import static codechicken.nei.NEIClientUtils.getGuiContainer;
import static codechicken.nei.NEIClientUtils.translate;

import java.awt.Point;
import java.awt.*;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.nio.charset.StandardCharsets;
import java.util.*;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.WeakHashMap;

import javax.annotation.Nullable;

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/codechicken/nei/GuiPotionCreator.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import static codechicken.nei.NEIClientUtils.translate;

import java.awt.Dimension;
import java.awt.*;
import java.util.ArrayList;

import net.minecraft.entity.player.InventoryPlayer;
Expand Down
3 changes: 1 addition & 2 deletions src/main/java/codechicken/nei/HUDRenderer.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
import static codechicken.lib.gui.GuiDraw.drawTooltipBox;
import static codechicken.lib.gui.GuiDraw.getStringWidth;

import java.awt.Dimension;
import java.awt.Point;
import java.awt.*;
import java.util.List;

import net.minecraft.client.Minecraft;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/codechicken/nei/ItemsGrid.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import static codechicken.lib.gui.GuiDraw.drawRect;
import static codechicken.lib.gui.GuiDraw.getMousePosition;

import java.awt.Point;
import java.awt.*;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/codechicken/nei/NEICPH.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package codechicken.nei;

import static codechicken.nei.PacketIDs.*;
import static codechicken.nei.PacketIDs.C2S;
import static codechicken.nei.PacketIDs.S2C;

import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.inventory.GuiInventory;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/codechicken/nei/NEIController.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import static codechicken.lib.gui.GuiDraw.getMousePosition;

import java.awt.Point;
import java.awt.*;
import java.util.LinkedList;

import net.minecraft.client.gui.inventory.GuiContainer;
Expand Down
6 changes: 5 additions & 1 deletion src/main/java/codechicken/nei/NEIModContainer.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
package codechicken.nei;

import java.io.File;
import java.util.*;
import java.util.Arrays;
import java.util.HashSet;
import java.util.LinkedList;
import java.util.List;
import java.util.Set;

import net.minecraft.util.EnumChatFormatting;

Expand Down
3 changes: 2 additions & 1 deletion src/main/java/codechicken/nei/NEISPH.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package codechicken.nei;

import static codechicken.nei.PacketIDs.*;
import static codechicken.nei.PacketIDs.C2S;
import static codechicken.nei.PacketIDs.S2C;

import java.util.LinkedList;
import java.util.Set;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/codechicken/nei/SubsetWidget.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import static codechicken.nei.NEIClientUtils.translate;

import java.awt.Point;
import java.awt.*;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
Expand Down
9 changes: 8 additions & 1 deletion src/main/java/codechicken/nei/asm/NEITransformer.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,14 @@
import static codechicken.lib.asm.InsnComparator.matches;
import static org.objectweb.asm.ClassWriter.COMPUTE_FRAMES;
import static org.objectweb.asm.ClassWriter.COMPUTE_MAXS;
import static org.objectweb.asm.Opcodes.*;
import static org.objectweb.asm.Opcodes.ACC_PUBLIC;
import static org.objectweb.asm.Opcodes.ACC_STATIC;
import static org.objectweb.asm.Opcodes.ALOAD;
import static org.objectweb.asm.Opcodes.ASM5;
import static org.objectweb.asm.Opcodes.ILOAD;
import static org.objectweb.asm.Opcodes.INVOKESPECIAL;
import static org.objectweb.asm.Opcodes.INVOKEVIRTUAL;
import static org.objectweb.asm.Opcodes.IRETURN;

import java.util.Map;

Expand Down
18 changes: 17 additions & 1 deletion src/main/java/codechicken/nei/asm/OreDictionaryVisitor.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,22 @@
package codechicken.nei.asm;

import static org.objectweb.asm.Opcodes.*;
import static org.objectweb.asm.Opcodes.ACC_FINAL;
import static org.objectweb.asm.Opcodes.ACC_PRIVATE;
import static org.objectweb.asm.Opcodes.ACC_STATIC;
import static org.objectweb.asm.Opcodes.ALOAD;
import static org.objectweb.asm.Opcodes.ASTORE;
import static org.objectweb.asm.Opcodes.ATHROW;
import static org.objectweb.asm.Opcodes.CHECKCAST;
import static org.objectweb.asm.Opcodes.DUP;
import static org.objectweb.asm.Opcodes.GETSTATIC;
import static org.objectweb.asm.Opcodes.GOTO;
import static org.objectweb.asm.Opcodes.IFNONNULL;
import static org.objectweb.asm.Opcodes.INVOKEINTERFACE;
import static org.objectweb.asm.Opcodes.INVOKESPECIAL;
import static org.objectweb.asm.Opcodes.MONITORENTER;
import static org.objectweb.asm.Opcodes.MONITOREXIT;
import static org.objectweb.asm.Opcodes.NEW;
import static org.objectweb.asm.Opcodes.PUTSTATIC;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
Expand Down
3 changes: 1 addition & 2 deletions src/main/java/codechicken/nei/config/GuiHighlightTips.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
import static codechicken.lib.gui.GuiDraw.getMousePosition;
import static codechicken.nei.NEIClientUtils.translate;

import java.awt.Dimension;
import java.awt.Point;
import java.awt.*;
import java.util.Arrays;
import java.util.List;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package codechicken.nei.config;

import java.awt.Dimension;
import java.awt.*;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/codechicken/nei/config/GuiItemSorter.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import static codechicken.lib.gui.GuiDraw.drawStringC;
import static codechicken.lib.gui.GuiDraw.getMousePosition;

import java.awt.Rectangle;
import java.awt.*;
import java.util.ArrayList;
import java.util.List;

Expand Down
4 changes: 1 addition & 3 deletions src/main/java/codechicken/nei/config/GuiOptionList.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
import static codechicken.lib.gui.GuiDraw.getMousePosition;
import static net.minecraft.util.StatCollector.translateToLocal;

import java.awt.Dimension;
import java.awt.Point;
import java.awt.Rectangle;
import java.awt.*;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.LinkedList;
Expand Down
3 changes: 1 addition & 2 deletions src/main/java/codechicken/nei/config/GuiOptionPane.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
import static codechicken.lib.gui.GuiDraw.getMousePosition;
import static net.minecraft.util.StatCollector.translateToLocal;

import java.awt.Point;
import java.awt.Rectangle;
import java.awt.*;
import java.util.LinkedList;
import java.util.List;

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/codechicken/nei/config/GuiPanelSettings.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import static codechicken.lib.gui.GuiDraw.getMousePosition;

import java.awt.Point;
import java.awt.*;
import java.util.ArrayList;

import net.minecraft.client.Minecraft;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/codechicken/nei/config/OptionButton.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import static codechicken.lib.gui.GuiDraw.drawStringC;
import static codechicken.lib.gui.GuiDraw.getStringWidth;

import java.awt.Rectangle;
import java.awt.*;
import java.util.List;

import net.minecraft.client.Minecraft;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/codechicken/nei/config/OptionKeyBind.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import static codechicken.lib.gui.GuiDraw.drawRect;
import static codechicken.lib.gui.GuiDraw.drawStringC;

import java.awt.Rectangle;
import java.awt.*;

import org.lwjgl.input.Keyboard;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package codechicken.nei.config;

import java.awt.Rectangle;
import java.awt.*;

import codechicken.nei.Image;
import codechicken.nei.LayoutManager;
Expand Down
9 changes: 8 additions & 1 deletion src/main/java/codechicken/nei/guihook/HideousLinkedList.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
package codechicken.nei.guihook;

import java.util.*;
import java.util.Collection;
import java.util.Comparator;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import java.util.ListIterator;
import java.util.NoSuchElementException;
import java.util.Spliterator;
import java.util.function.Consumer;
import java.util.function.Predicate;
import java.util.function.UnaryOperator;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import static net.minecraft.init.Items.potionitem;

import java.awt.Rectangle;
import java.awt.*;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package codechicken.nei.recipe;

import java.awt.Point;
import java.awt.Rectangle;
import java.awt.*;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.LinkedList;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package codechicken.nei.recipe;

import java.awt.Rectangle;
import java.awt.*;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import static codechicken.lib.gui.GuiDraw.getMousePosition;

import java.awt.Point;
import java.awt.*;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
Expand Down
3 changes: 1 addition & 2 deletions src/main/java/codechicken/nei/recipe/GuiRecipe.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@

import static codechicken.lib.gui.GuiDraw.fontRenderer;

import java.awt.Point;
import java.awt.Rectangle;
import java.awt.*;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
Expand Down
5 changes: 4 additions & 1 deletion src/main/java/codechicken/nei/recipe/GuiRecipeTab.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@
import java.nio.channels.Channels;
import java.nio.channels.FileChannel;
import java.nio.channels.ReadableByteChannel;
import java.util.*;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

import net.minecraft.client.gui.FontRenderer;
import net.minecraft.item.ItemStack;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package codechicken.nei.recipe;

import java.awt.Rectangle;
import java.awt.*;
import java.util.ArrayList;
import java.util.List;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
import static codechicken.lib.gui.GuiDraw.drawTexturedModalRect;
import static codechicken.lib.gui.GuiDraw.getMousePosition;

import java.awt.Point;
import java.awt.Rectangle;
import java.awt.*;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
Expand Down

0 comments on commit e9ab2eb

Please sign in to comment.