mirror of
https://github.com/GTNewHorizons/NotEnoughItems.git
synced 2026-11-21 12:42:10 +00:00
73 lines
1.4 KiB
Java
73 lines
1.4 KiB
Java
package codechicken.nei;
|
|
|
|
import net.minecraft.item.ItemStack;
|
|
|
|
import java.util.List;
|
|
|
|
public abstract class Widget
|
|
{
|
|
public Widget() {
|
|
}
|
|
|
|
public abstract void draw(int mousex, int mousey);
|
|
|
|
public void postDraw(int mousex, int mousey) {
|
|
}
|
|
|
|
public boolean handleClick(int mousex, int mousey, int button) {
|
|
return true;
|
|
}
|
|
|
|
public void onGuiClick(int mousex, int mousey) {
|
|
}
|
|
|
|
public void mouseUp(int mousex, int mousey, int button) {
|
|
|
|
}
|
|
|
|
public boolean handleKeyPress(int keyID, char keyChar) {
|
|
return false;
|
|
}
|
|
|
|
public void lastKeyTyped(int keyID, char keyChar) {
|
|
}
|
|
|
|
public boolean handleClickExt(int mousex, int mousey, int button) {
|
|
return false;
|
|
}
|
|
|
|
public boolean onMouseWheel(int i, int mousex, int mousey) {
|
|
return false;
|
|
}
|
|
|
|
public void update() {
|
|
}
|
|
|
|
public boolean contains(int posx, int posy) {
|
|
return posx >= x && posx < x + width && posy >= y && posy < y + height;
|
|
}
|
|
|
|
public ItemStack getStackMouseOver(int mousex, int mousey) {
|
|
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 width;
|
|
public int height;
|
|
}
|