public class BoxElement extends RenderElement
RenderElement.SimpleRenderElement| Modifier and Type | Field and Description |
|---|---|
protected Color |
background |
protected Color |
borderBot |
protected int |
borderOffset |
protected Color |
borderTop |
| Constructor and Description |
|---|
BoxElement() |
| Modifier and Type | Method and Description |
|---|---|
<T extends BoxElement> |
flatBorder(Color color) |
<T extends BoxElement> |
flatBorder(int color) |
<T extends BoxElement> |
gradientBorder(Color top,
Color bot) |
<T extends BoxElement> |
gradientBorder(Couple<Color> colors) |
<T extends BoxElement> |
gradientBorder(int top,
int bot) |
void |
render(com.mojang.blaze3d.matrix.MatrixStack ms) |
protected void |
renderBox(com.mojang.blaze3d.matrix.MatrixStack ms) |
<T extends BoxElement> |
withBackground(Color color) |
<T extends BoxElement> |
withBackground(int color) |
<T extends BoxElement> |
withBorderOffset(int offset) |
protected Color background
protected Color borderTop
protected Color borderBot
protected int borderOffset
public <T extends BoxElement> T withBackground(Color color)
public <T extends BoxElement> T withBackground(int color)
public <T extends BoxElement> T flatBorder(Color color)
public <T extends BoxElement> T flatBorder(int color)
public <T extends BoxElement> T gradientBorder(Couple<Color> colors)
public <T extends BoxElement> T gradientBorder(Color top, Color bot)
public <T extends BoxElement> T gradientBorder(int top, int bot)
public <T extends BoxElement> T withBorderOffset(int offset)
public void render(com.mojang.blaze3d.matrix.MatrixStack ms)
render in class RenderElementprotected void renderBox(com.mojang.blaze3d.matrix.MatrixStack ms)