mirror of
https://github.com/GTNewHorizons/NotEnoughItems.git
synced 2026-11-18 19:39:06 +00:00
Initial Commit
This commit is contained in:
commit
bd9d0a4eff
149 files changed
+18486
No files matched your search
@@ -0,0 +1,72 @@
|
||||
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;
|
||||
}
|
||||
Reference in new issue
Block a user