mirror of
https://github.com/GTNewHorizons/NotEnoughItems.git
synced 2026-11-16 10:44:45 +00:00
1 parent
14aa3728ca
commit
7c2fb2df5f
7 files changed
+119
-308
No files matched your search
@@ -3,16 +3,12 @@ package codechicken.nei.recipe;
|
||||
import static codechicken.nei.LayoutManager.searchField;
|
||||
|
||||
import codechicken.nei.api.INEIGuiAdapter;
|
||||
import java.util.regex.Pattern;
|
||||
import net.minecraft.client.gui.inventory.GuiContainer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.EnumChatFormatting;
|
||||
import net.minecraftforge.fluids.FluidStack;
|
||||
|
||||
public class SearchInputDropHandler extends INEIGuiAdapter {
|
||||
|
||||
protected static final Pattern SPECIAL_REGEX_CHARS = Pattern.compile("[{}()\\[\\].+*?^$\\\\|]");
|
||||
|
||||
@Override
|
||||
public boolean handleDragNDrop(GuiContainer gui, int mouseX, int mouseY, ItemStack draggedStack, int button) {
|
||||
|
||||
@@ -30,10 +26,4 @@ public class SearchInputDropHandler extends INEIGuiAdapter {
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
protected String formattingText(String displayName) {
|
||||
return SPECIAL_REGEX_CHARS
|
||||
.matcher(EnumChatFormatting.getTextWithoutFormattingCodes(displayName))
|
||||
.replaceAll("\\\\$0");
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user