mirror of
https://github.com/GTNewHorizons/NotEnoughItems.git
synced 2026-11-19 11:59:17 +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
@@ -1,5 +1,6 @@
|
||||
package codechicken.nei;
|
||||
|
||||
import codechicken.lib.vec.Rectangle4i;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
import java.util.List;
|
||||
@@ -9,19 +10,19 @@ public abstract class Widget
|
||||
public Widget() {
|
||||
}
|
||||
|
||||
public abstract void draw(int mousex, int mousey);
|
||||
public abstract void draw(int mx, int my);
|
||||
|
||||
public void postDraw(int mousex, int mousey) {
|
||||
public void postDraw(int mx, int my) {
|
||||
}
|
||||
|
||||
public boolean handleClick(int mousex, int mousey, int button) {
|
||||
public boolean handleClick(int mx, int my, int button) {
|
||||
return true;
|
||||
}
|
||||
|
||||
public void onGuiClick(int mousex, int mousey) {
|
||||
public void onGuiClick(int mx, int my) {
|
||||
}
|
||||
|
||||
public void mouseUp(int mousex, int mousey, int button) {
|
||||
public void mouseUp(int mx, int my, int button) {
|
||||
|
||||
}
|
||||
|
||||
@@ -32,22 +33,26 @@ public abstract class Widget
|
||||
public void lastKeyTyped(int keyID, char keyChar) {
|
||||
}
|
||||
|
||||
public boolean handleClickExt(int mousex, int mousey, int button) {
|
||||
public boolean handleClickExt(int mx, int my, int button) {
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean onMouseWheel(int i, int mousex, int mousey) {
|
||||
public boolean onMouseWheel(int i, int mx, int my) {
|
||||
return false;
|
||||
}
|
||||
|
||||
public void update() {
|
||||
}
|
||||
|
||||
public boolean contains(int posx, int posy) {
|
||||
return posx >= x && posx < x + width && posy >= y && posy < y + height;
|
||||
public Rectangle4i bounds() {
|
||||
return new Rectangle4i(x, y, w, h);
|
||||
}
|
||||
|
||||
public ItemStack getStackMouseOver(int mousex, int mousey) {
|
||||
public boolean contains(int px, int py) {
|
||||
return bounds().contains(px, py);
|
||||
}
|
||||
|
||||
public ItemStack getStackMouseOver(int mx, int my) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -67,6 +72,6 @@ public abstract class Widget
|
||||
public int x;
|
||||
public int y;
|
||||
public int z;
|
||||
public int width;
|
||||
public int height;
|
||||
public int w;
|
||||
public int h;
|
||||
}
|
||||
Reference in new issue
Block a user