@Environment(value=CLIENT) public abstract class DrawableHelper extends Object
| Modifier and Type | Field and Description |
|---|---|
static Identifier |
BACKGROUND_TEXTURE
The texture used by options for background.
|
static Identifier |
GUI_ICONS_TEXTURE
The texture of various icons and widgets used for rendering ingame indicators.
|
static Identifier |
STATS_ICON_TEXTURE
The texture of icons used in the stats screen.
|
private int |
zOffset
The z offset used by
DrawableHelper. |
| Constructor and Description |
|---|
DrawableHelper() |
| Modifier and Type | Method and Description |
|---|---|
void |
drawCenteredString(MatrixStack matrices,
TextRenderer textRenderer,
String text,
int x,
int y,
int int2) |
protected void |
drawHorizontalLine(MatrixStack matrices,
int x1,
int x2,
int y,
int color) |
static void |
drawSprite(MatrixStack matrices,
int int2,
int int3,
int int4,
int int5,
int int6,
Sprite sprite) |
void |
drawString(MatrixStack matrices,
TextRenderer textRenderer,
String text,
int int2,
int int3,
int int4) |
void |
drawStringWithShadow(MatrixStack matrices,
TextRenderer textRenderer,
Text text,
int int2,
int int3,
int int4) |
static void |
drawTexture(MatrixStack matrices,
int int2,
int int3,
float float2,
float float3,
int int4,
int int5,
int int6,
int int7) |
static void |
drawTexture(MatrixStack matrices,
int int2,
int int3,
int int4,
float float2,
float float3,
int int5,
int int6,
int int7,
int int8) |
static void |
drawTexture(MatrixStack matrices,
int int2,
int int3,
int int4,
int int5,
float float2,
float float3,
int int6,
int int7,
int int8,
int int9) |
void |
drawTexture(MatrixStack matrices,
int x,
int y,
int int2,
int int3,
int int4,
int int5) |
private static void |
drawTexture(MatrixStack matrices,
int int2,
int int3,
int int4,
int int5,
int int6,
int int7,
int int8,
float float2,
float float3,
int int9,
int int10) |
private static void |
drawTexturedQuad(Matrix4f matrices,
int int2,
int int3,
int int4,
int int5,
int int6,
float float2,
float float3,
float float4,
float float5) |
protected void |
drawVerticalLine(MatrixStack matrices,
int x,
int y1,
int y2,
int color) |
private static void |
fill(Matrix4f matrix,
int x1,
int y1,
int x2,
int y2,
int color) |
static void |
fill(MatrixStack matrices,
int x1,
int y1,
int x2,
int y2,
int color) |
private void |
fillGradient(Matrix4f matrix,
int xStart,
int yStart,
int xEnd,
int yEnd,
int colorStart,
int colorEnd) |
protected void |
fillGradient(MatrixStack matrices,
int xStart,
int yStart,
int xEnd,
int yEnd,
int colorStart,
int colorEnd) |
int |
getZOffset() |
void |
method_27535(MatrixStack matrices,
TextRenderer textRenderer,
Text text,
int int2,
int int3,
int int4) |
void |
setZOffset(int zOffset) |
public static final Identifier BACKGROUND_TEXTURE
public static final Identifier STATS_ICON_TEXTURE
public static final Identifier GUI_ICONS_TEXTURE
private int zOffset
DrawableHelper.protected void drawHorizontalLine(MatrixStack matrices, int x1, int x2, int y, int color)
protected void drawVerticalLine(MatrixStack matrices, int x, int y1, int y2, int color)
public static void fill(MatrixStack matrices, int x1, int y1, int x2, int y2, int color)
private static void fill(Matrix4f matrix, int x1, int y1, int x2, int y2, int color)
protected void fillGradient(MatrixStack matrices, int xStart, int yStart, int xEnd, int yEnd, int colorStart, int colorEnd)
private void fillGradient(Matrix4f matrix, int xStart, int yStart, int xEnd, int yEnd, int colorStart, int colorEnd)
public void drawCenteredString(MatrixStack matrices, TextRenderer textRenderer, String text, int x, int y, int int2)
public void drawStringWithShadow(MatrixStack matrices, TextRenderer textRenderer, Text text, int int2, int int3, int int4)
public void drawString(MatrixStack matrices, TextRenderer textRenderer, String text, int int2, int int3, int int4)
public void method_27535(MatrixStack matrices, TextRenderer textRenderer, Text text, int int2, int int3, int int4)
public static void drawSprite(MatrixStack matrices, int int2, int int3, int int4, int int5, int int6, Sprite sprite)
public void drawTexture(MatrixStack matrices, int x, int y, int int2, int int3, int int4, int int5)
public static void drawTexture(MatrixStack matrices, int int2, int int3, int int4, float float2, float float3, int int5, int int6, int int7, int int8)
public static void drawTexture(MatrixStack matrices, int int2, int int3, int int4, int int5, float float2, float float3, int int6, int int7, int int8, int int9)
public static void drawTexture(MatrixStack matrices, int int2, int int3, float float2, float float3, int int4, int int5, int int6, int int7)
private static void drawTexture(MatrixStack matrices, int int2, int int3, int int4, int int5, int int6, int int7, int int8, float float2, float float3, int int9, int int10)
private static void drawTexturedQuad(Matrix4f matrices, int int2, int int3, int int4, int int5, int int6, float float2, float float3, float float4, float float5)
public int getZOffset()
public void setZOffset(int zOffset)