public interface IControlComponent
UIComponent.| Modifier and Type | Method and Description |
|---|---|
void |
draw(GuiRenderer renderer,
int mouseX,
int mouseY,
float partialTick)
Draws this
IControlComponent. |
UIComponent<?> |
getComponentAt(int x,
int y)
Gets the component at the specified coordinates.
|
UIComponent<?> |
getParent()
Gets the
UIComponent controlled by this IControlComponent. |
boolean |
onKeyTyped(char keyChar,
int keyCode)
Called when a key is pressed when this
IControlComponent or its parent is focused or hovered. |
boolean |
onScrollWheel(int x,
int y,
int delta)
Called when the scrollwheel is used when this
IControlComponent or its parent is focused or hovered. |
void |
setParent(UIComponent<?> component)
Sets the
UIComponent controlled by this IControlComponent. |
void setParent(UIComponent<?> component)
UIComponent controlled by this IControlComponent.component - the parentUIComponent<?> getParent()
UIComponent controlled by this IControlComponent.UIComponent<?> getComponentAt(int x, int y)
UIComponent.getComponentAt(int, int).x - the xy - the yboolean onKeyTyped(char keyChar,
int keyCode)
IControlComponent or its parent is focused or hovered.UIComponent.onKeyTyped(char, int).keyChar - the key charkeyCode - the key codeboolean onScrollWheel(int x,
int y,
int delta)
IControlComponent or its parent is focused or hovered.UIComponent.onScrollWheel(int, int, int)x - the xy - the ydelta - the deltavoid draw(GuiRenderer renderer, int mouseX, int mouseY, float partialTick)
IControlComponent. See UIComponent.draw(GuiRenderer, int, int, float).renderer - the renderermouseX - the mouse xmouseY - the mouse ypartialTick - the partial tick