public class ItemPanel extends Widget
| Modifier and Type | Class and Description |
|---|---|
class |
ItemPanel.ItemPanelSlot |
| Modifier and Type | Field and Description |
|---|---|
ItemStack |
draggedStack |
static java.util.ArrayList<ItemStack> |
items
Should not be externally modified, use updateItemList
|
int |
mouseDownSlot |
| Constructor and Description |
|---|
ItemPanel() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(int px,
int py) |
void |
draw(int mousex,
int mousey) |
int |
getNumPages() |
int |
getPage() |
ItemPanel.ItemPanelSlot |
getSlotMouseOver(int mousex,
int mousey) |
Rectangle4i |
getSlotRect(int i) |
Rectangle4i |
getSlotRect(int row,
int column) |
ItemStack |
getStackMouseOver(int mousex,
int mousey) |
boolean |
handleClick(int mousex,
int mousey,
int button) |
boolean |
handleClickExt(int mousex,
int mousey,
int button) |
boolean |
handleKeyPress(int keyID,
char keyChar) |
void |
mouseDragged(int mousex,
int mousey,
int button,
long heldTime) |
void |
mouseUp(int mousex,
int mousey,
int button) |
boolean |
onMouseWheel(int i,
int mousex,
int mousey) |
void |
postDraw(int mousex,
int mousey) |
void |
resize() |
void |
scroll(int i) |
static void |
updateItemList(java.util.ArrayList<ItemStack> newItems) |
bounds, gainFocus, handleTooltip, lastKeyTyped, loseFocus, onGuiClick, updatepublic static java.util.ArrayList<ItemStack> items
public ItemStack draggedStack
public int mouseDownSlot
public static void updateItemList(java.util.ArrayList<ItemStack> newItems)
public void resize()
public Rectangle4i getSlotRect(int i)
public Rectangle4i getSlotRect(int row,
int column)
public void mouseDragged(int mousex,
int mousey,
int button,
long heldTime)
mouseDragged in class Widgetpublic boolean handleClick(int mousex,
int mousey,
int button)
handleClick in class Widgetpublic boolean handleClickExt(int mousex,
int mousey,
int button)
handleClickExt in class Widgetpublic boolean onMouseWheel(int i,
int mousex,
int mousey)
onMouseWheel in class Widgetpublic boolean handleKeyPress(int keyID,
char keyChar)
handleKeyPress in class Widgetpublic ItemStack getStackMouseOver(int mousex,
int mousey)
getStackMouseOver in class Widgetpublic ItemPanel.ItemPanelSlot getSlotMouseOver(int mousex, int mousey)
public void scroll(int i)
public int getPage()
public int getNumPages()