public class UISeparator extends UIComponent<UISeparator>
ITransformable.Alpha, ITransformable.Brightness, ITransformable.Color, ITransformable.Position<T>, ITransformable.Rotate, ITransformable.Scale, ITransformable.Size<T>, ITransformable.Translate| Modifier and Type | Field and Description |
|---|---|
protected int |
color
Color multiplier.
|
protected boolean |
vertical |
| Constructor and Description |
|---|
UISeparator(MalisisGui gui) |
UISeparator(MalisisGui gui,
boolean vertical) |
| Modifier and Type | Method and Description |
|---|---|
void |
drawBackground(GuiRenderer renderer,
int mouseX,
int mouseY,
float partialTick)
Called first when drawing this
UIComponent. |
void |
drawForeground(GuiRenderer renderer,
int mouseX,
int mouseY,
float partialTick)
Called last when drawing this
UIComponent. |
int |
getColor()
Gets the color.
|
UISeparator |
setColor(int color)
Sets the color for this
UISeparator. |
UISeparator |
setSize(int width,
int height)
Sets the size of this
UIComponent. |
addControlComponent, attachData, componentX, componentY, draw, fireEvent, getAlpha, getAnchor, getComponentAt, getData, getGui, getHeight, getIconProvider, getName, getParent, getPropertyString, getRawHeight, getRawWidth, getRenderer, getTooltip, getWidth, getX, getY, getZIndex, isDisabled, isFocused, isHovered, isInsideBounds, isRelativeHeight, isRelativeWidth, isVisible, onAddedToScreen, onButtonPress, onButtonRelease, onClick, onDoubleClick, onDrag, onKeyTyped, onMouseMove, onRightClick, onScrollWheel, parentX, parentY, register, relativeX, relativeY, removeAllControlComponents, removeControlComponent, screenX, screenY, self, setAlpha, setAnchor, setDisabled, setFocused, setHovered, setName, setParent, setPosition, setPosition, setTooltip, setTooltip, setVisible, setZIndex, toString, unregisterpublic UISeparator(MalisisGui gui, boolean vertical)
public UISeparator(MalisisGui gui)
public UISeparator setSize(int width, int height)
UIComponentUIComponent.setSize in interface ITransformable.Size<UISeparator>setSize in class UIComponent<UISeparator>width - the widthheight - the heightUIComponentpublic UISeparator setColor(int color)
UISeparator.color - the colorUISeparatorpublic int getColor()
UISeparator.public void drawBackground(GuiRenderer renderer, int mouseX, int mouseY, float partialTick)
UIComponentUIComponent.drawBackground in class UIComponent<UISeparator>renderer - the renderermouseX - the mouse xmouseY - the mouse ypartialTick - the partial tickpublic void drawForeground(GuiRenderer renderer, int mouseX, int mouseY, float partialTick)
UIComponentUIComponent.drawForeground in class UIComponent<UISeparator>renderer - the renderermouseX - the mouse xmouseY - the mouse ypartialTick - the partial tick