public class ComponentMenu extends ComponentScrollBar
drawReversed, hoverArea, max, number, scrollConsumer, scrollTexture, wasMouseDown| Constructor and Description |
|---|
ComponentMenu(Gui gui,
int x,
int y,
int height,
int displayedComponentsX,
int displayedComponentsY,
BoundingBox hoverArea) |
ComponentMenu(Gui gui,
int x,
int y,
int barWidth,
int height,
int displayedComponentsX,
int displayedComponentsY,
int componentsOffsetX,
int componentsOffsetY,
BoundingBox hoverArea,
ResourceName scrollTexture) |
ComponentMenu(Gui gui,
int x,
int y,
int barWidth,
int height,
int displayedComponentsX,
int displayedComponentsY,
int componentsOffsetX,
int componentsOffsetY,
BoundingBox hoverArea,
ResourceName scrollTexture,
int componentGap) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(MenuComponent component) |
void |
clear() |
int |
getMax() |
ResourceName |
getName() |
boolean |
isEmpty() |
protected void |
onScroll() |
void |
organize() |
void |
remove(MenuComponent component) |
getHoverArea, getNumber, onMouseAction, render, setDrawReversed, setMax, setNumber, updatecanCloseWithInvKey, getElementColor, getElementOutlineColor, getGuiColor, getHeight, getPriority, getRenderX, getRenderY, getUnselectedElementColor, getWidth, getX, getY, isActive, isMouseOver, isMouseOverPrioritized, onCharInput, onKeyPressed, renderOverlay, setActive, setPos, shouldDoFingerCursor, toString, updateInactivepublic ComponentMenu(Gui gui, int x, int y, int barWidth, int height, int displayedComponentsX, int displayedComponentsY, int componentsOffsetX, int componentsOffsetY, BoundingBox hoverArea, ResourceName scrollTexture, int componentGap)
public ComponentMenu(Gui gui, int x, int y, int barWidth, int height, int displayedComponentsX, int displayedComponentsY, int componentsOffsetX, int componentsOffsetY, BoundingBox hoverArea, ResourceName scrollTexture)
public ComponentMenu(Gui gui, int x, int y, int height, int displayedComponentsX, int displayedComponentsY, BoundingBox hoverArea)
public void add(MenuComponent component)
public void remove(MenuComponent component)
public void clear()
public boolean isEmpty()
protected void onScroll()
onScroll in class ComponentScrollBarpublic void organize()
public int getMax()
getMax in class ComponentScrollBarpublic ResourceName getName()
getName in class ComponentScrollBar