public abstract class RenderElement extends java.lang.Object implements IScreenRenderable
| Modifier and Type | Class and Description |
|---|---|
static class |
RenderElement.SimpleRenderElement |
| Modifier and Type | Field and Description |
|---|---|
protected float |
alpha |
static RenderElement |
EMPTY |
protected int |
height |
protected int |
width |
protected float |
x |
protected float |
y |
protected float |
z |
| Constructor and Description |
|---|
RenderElement() |
| Modifier and Type | Method and Description |
|---|---|
<T extends RenderElement> |
at(float x,
float y) |
<T extends RenderElement> |
at(float x,
float y,
float z) |
void |
draw(com.mojang.blaze3d.matrix.MatrixStack ms,
net.minecraft.client.gui.AbstractGui screen,
int x,
int y) |
void |
draw(com.mojang.blaze3d.matrix.MatrixStack ms,
int x,
int y) |
int |
getHeight() |
int |
getWidth() |
float |
getX() |
float |
getY() |
float |
getZ() |
static RenderElement |
of(IScreenRenderable renderable) |
abstract void |
render(com.mojang.blaze3d.matrix.MatrixStack ms) |
<T extends RenderElement> |
withAlpha(float alpha) |
<T extends RenderElement> |
withBounds(int width,
int height) |
public static RenderElement EMPTY
protected int width
protected int height
protected float x
protected float y
protected float z
protected float alpha
public static RenderElement of(IScreenRenderable renderable)
public <T extends RenderElement> T at(float x, float y)
public <T extends RenderElement> T at(float x, float y, float z)
public <T extends RenderElement> T withBounds(int width, int height)
public <T extends RenderElement> T withAlpha(float alpha)
public int getWidth()
public int getHeight()
public float getX()
public float getY()
public float getZ()
public abstract void render(com.mojang.blaze3d.matrix.MatrixStack ms)
public void draw(com.mojang.blaze3d.matrix.MatrixStack ms,
net.minecraft.client.gui.AbstractGui screen,
int x,
int y)
draw in interface IScreenRenderablepublic void draw(com.mojang.blaze3d.matrix.MatrixStack ms,
int x,
int y)
draw in interface IScreenRenderable