mirror of
https://github.com/GTNewHorizons/NotEnoughItems.git
synced 2026-11-16 18:54:45 +00:00
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
78 lines
1.4 KiB
Java
78 lines
1.4 KiB
Java
package codechicken.nei;
|
|
|
|
import codechicken.lib.vec.Rectangle4i;
|
|
import net.minecraft.item.ItemStack;
|
|
|
|
import java.util.List;
|
|
|
|
public abstract class Widget
|
|
{
|
|
public Widget() {
|
|
}
|
|
|
|
public abstract void draw(int mx, int my);
|
|
|
|
public void postDraw(int mx, int my) {
|
|
}
|
|
|
|
public boolean handleClick(int mx, int my, int button) {
|
|
return true;
|
|
}
|
|
|
|
public void onGuiClick(int mx, int my) {
|
|
}
|
|
|
|
public void mouseUp(int mx, int my, int button) {
|
|
|
|
}
|
|
|
|
public boolean handleKeyPress(int keyID, char keyChar) {
|
|
return false;
|
|
}
|
|
|
|
public void lastKeyTyped(int keyID, char keyChar) {
|
|
}
|
|
|
|
public boolean handleClickExt(int mx, int my, int button) {
|
|
return false;
|
|
}
|
|
|
|
public boolean onMouseWheel(int i, int mx, int my) {
|
|
return false;
|
|
}
|
|
|
|
public void update() {
|
|
}
|
|
|
|
public Rectangle4i bounds() {
|
|
return new Rectangle4i(x, y, w, h);
|
|
}
|
|
|
|
public boolean contains(int px, int py) {
|
|
return bounds().contains(px, py);
|
|
}
|
|
|
|
public ItemStack getStackMouseOver(int mx, int my) {
|
|
return null;
|
|
}
|
|
|
|
public void mouseDragged(int mx, int my, int button, long heldTime) {
|
|
}
|
|
|
|
public List<String> handleTooltip(int mx, int my, List<String> tooltip) {
|
|
return tooltip;
|
|
}
|
|
|
|
public void loseFocus() {
|
|
}
|
|
|
|
public void gainFocus() {
|
|
}
|
|
|
|
public int x;
|
|
public int y;
|
|
public int z;
|
|
public int w;
|
|
public int h;
|
|
}
|