mirror of
https://github.com/GTNewHorizons/NotEnoughItems.git
synced 2026-11-26 06:53:26 +00:00
Cleaned and generalised item loading/searching
Reimplemented subsets Added regex searching Fixed format error on delete all Fixed GuiButton handling clicks before NEI widgets could override Re-Implemented banned blocks implementation Added brewing recipes again note test obf ASM beacons Fixed some calls being intercepted by item panel when mouse was over a gui element Fixed crash on closing potion window with escape Disabled fast transfer, scrolling, and drag 'n' drop in creative Added item panel sorting Removed TMI uninstaller Fixed /give command Updated to 1.7.10
This commit is contained in:
1 parent
3c9ebc6961
commit
3c84527806
67 files changed
+3251
-2319
No files matched your search
@@ -4,11 +4,8 @@ import codechicken.core.CommonUtils;
|
||||
import codechicken.lib.vec.Rectangle4i;
|
||||
import codechicken.nei.LayoutManager;
|
||||
import codechicken.nei.NEIClientUtils;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.audio.PositionedSoundRecord;
|
||||
import net.minecraft.util.ChatComponentTranslation;
|
||||
import net.minecraft.util.IChatComponent;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
|
||||
import java.io.File;
|
||||
@@ -94,17 +91,17 @@ public abstract class DataDumper extends Option
|
||||
}
|
||||
|
||||
public void drawPrefix() {
|
||||
drawString(renderName(), 10, 8, -1);
|
||||
drawString(renderName(), 10, 6, -1);
|
||||
}
|
||||
|
||||
public Rectangle4i dumpButtonSize() {
|
||||
int width = 80;
|
||||
return new Rectangle4i(slot.contentWidth() - width, 2, width, 20);
|
||||
return new Rectangle4i(slot.slotWidth() - width, 0, width, 20);
|
||||
}
|
||||
|
||||
public Rectangle4i modeButtonSize() {
|
||||
int width = 60;
|
||||
return new Rectangle4i(slot.contentWidth() - width - 10 - dumpButtonSize().w, 2, width, 20);
|
||||
return new Rectangle4i(slot.slotWidth() - width - 10 - dumpButtonSize().w, 0, width, 20);
|
||||
}
|
||||
|
||||
public String dumpButtonText() {
|
||||
@@ -146,10 +143,10 @@ public abstract class DataDumper extends Option
|
||||
@Override
|
||||
public void mouseClicked(int mousex, int mousey, int button) {
|
||||
if (modeCount() > 1 && modeButtonSize().contains(mousex, mousey)) {
|
||||
Minecraft.getMinecraft().getSoundHandler().playSound(PositionedSoundRecord.func_147674_a(new ResourceLocation("gui.button.press"), 1.0F));
|
||||
NEIClientUtils.playClickSound();
|
||||
getTag().setIntValue((getMode() + 1) % modeCount());
|
||||
} else if (dumpButtonSize().contains(mousex, mousey)) {
|
||||
Minecraft.getMinecraft().getSoundHandler().playSound(PositionedSoundRecord.func_147674_a(new ResourceLocation("gui.button.press"), 1.0F));
|
||||
NEIClientUtils.playClickSound();
|
||||
dumpFile();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user