public class RenderHelper
extends java.lang.Object
Constructor and Description |
---|
RenderHelper() |
Modifier and Type | Method and Description |
---|---|
static void |
bindTexture(net.minecraft.util.ResourceLocation path) |
static void |
bindTexture(java.lang.String path) |
static int |
computeGuiScale() |
static void |
drawIcon(net.minecraft.util.IIcon icon,
int x,
int y,
int z,
int width,
int height) |
static void |
drawLine(org.lwjgl.util.Color color,
int startX,
int startY,
int endX,
int endY,
float width,
int zLevel) |
static void |
drawLine(int color,
float alpha,
int startX,
int startY,
int endX,
int endY,
float width,
int zLevel) |
static void |
drawLine(int color,
int startX,
int startY,
int endX,
int endY,
float width,
int zLevel) |
static void |
drawQuad(int x,
int y,
int z,
int width,
int height,
float u,
float v,
float uMax,
float vMax) |
static void |
drawRectangle(org.lwjgl.util.Color color,
int x,
int y,
int z,
int width,
int height) |
static void |
drawRectangle(int color,
float alpha,
int x,
int y,
int z,
int width,
int height) |
static void |
drawRectangle(int color,
int x,
int y,
int z,
int width,
int height) |
static void |
drawRectangle(int x,
int y,
int z,
int width,
int height,
int u,
int v) |
static void |
drawRectangle(int x,
int y,
int z,
int width,
int height,
int u,
int v,
int textureWidth,
int textureHeight) |
static void |
drawRectangle(net.minecraft.util.ResourceLocation texture,
int x,
int y,
int z,
int width,
int height,
int u,
int v) |
static void |
drawRectangle(net.minecraft.util.ResourceLocation texture,
int x,
int y,
int z,
int width,
int height,
int u,
int v,
int textureWidth,
int textureHeight) |
static void |
drawRectangleRepeated(int x,
int y,
int z,
int width,
int height,
float u,
float v,
float uMax,
float vMax,
int tileWidth,
int tileHeight) |
static void |
drawRectangleRepeated(net.minecraft.util.ResourceLocation texture,
int x,
int y,
int z,
int width,
int height,
float u,
float v,
float uMax,
float vMax,
int tileWidth,
int tileHeight) |
static void |
drawRectangleXRepeated(int x,
int y,
int z,
int width,
int height,
float u,
float v,
float uMax,
float vMax,
int tileWidth) |
static void |
drawRectangleYRepeated(int x,
int y,
int z,
int width,
int height,
float u,
float v,
float uMax,
float vMax,
int tileHeight) |
static void |
drawSplitString(java.lang.String text,
int x,
int y,
int color,
boolean drawShadow) |
static void |
drawString(java.lang.String text,
int x,
int y,
int z,
int color,
boolean drawShadow) |
static void |
drawString(java.lang.String text,
int x,
int y,
int z,
int canvasWidth,
int canvasHeight,
int color,
boolean drawShadow) |
static int |
getColorFromRGB(org.lwjgl.util.Color color) |
static int |
getColorFromRGB(int r,
int g,
int b) |
static java.lang.String |
getLongestString(java.lang.String... strings) |
static net.minecraft.client.Minecraft |
getMC() |
static org.lwjgl.util.Color |
getRGBFromColor(int color) |
static int |
getScaledHeight(int height) |
static net.minecraft.client.gui.ScaledResolution |
getScaledResolution() |
static int |
getScaledWidth(int width) |
static int |
getStringWidth(java.lang.String text) |
static void |
loadShaders() |
public static void bindTexture(java.lang.String path)
public static void bindTexture(net.minecraft.util.ResourceLocation path)
public static int getColorFromRGB(int r, int g, int b)
public static int getColorFromRGB(org.lwjgl.util.Color color)
public static int getStringWidth(java.lang.String text)
public static java.lang.String getLongestString(java.lang.String... strings)
public static net.minecraft.client.Minecraft getMC()
public static void drawString(java.lang.String text, int x, int y, int z, int canvasWidth, int canvasHeight, int color, boolean drawShadow)
public static void drawString(java.lang.String text, int x, int y, int z, int color, boolean drawShadow)
public static void drawSplitString(java.lang.String text, int x, int y, int color, boolean drawShadow)
public static void drawLine(int color, int startX, int startY, int endX, int endY, float width, int zLevel)
public static void drawLine(int color, float alpha, int startX, int startY, int endX, int endY, float width, int zLevel)
public static org.lwjgl.util.Color getRGBFromColor(int color)
public static void drawLine(org.lwjgl.util.Color color, int startX, int startY, int endX, int endY, float width, int zLevel)
public static void drawRectangle(int color, int x, int y, int z, int width, int height)
public static void drawRectangle(int color, float alpha, int x, int y, int z, int width, int height)
public static void drawRectangle(org.lwjgl.util.Color color, int x, int y, int z, int width, int height)
public static void drawRectangle(net.minecraft.util.ResourceLocation texture, int x, int y, int z, int width, int height, int u, int v)
public static void drawRectangle(net.minecraft.util.ResourceLocation texture, int x, int y, int z, int width, int height, int u, int v, int textureWidth, int textureHeight)
public static void drawRectangle(int x, int y, int z, int width, int height, int u, int v)
public static void drawRectangle(int x, int y, int z, int width, int height, int u, int v, int textureWidth, int textureHeight)
public static void drawQuad(int x, int y, int z, int width, int height, float u, float v, float uMax, float vMax)
public static void drawRectangleRepeated(net.minecraft.util.ResourceLocation texture, int x, int y, int z, int width, int height, float u, float v, float uMax, float vMax, int tileWidth, int tileHeight)
public static void drawRectangleRepeated(int x, int y, int z, int width, int height, float u, float v, float uMax, float vMax, int tileWidth, int tileHeight)
public static void drawRectangleXRepeated(int x, int y, int z, int width, int height, float u, float v, float uMax, float vMax, int tileWidth)
public static void drawRectangleYRepeated(int x, int y, int z, int width, int height, float u, float v, float uMax, float vMax, int tileHeight)
public static void drawIcon(net.minecraft.util.IIcon icon, int x, int y, int z, int width, int height)
public static void loadShaders()
public static net.minecraft.client.gui.ScaledResolution getScaledResolution()
public static int getScaledWidth(int width)
public static int getScaledHeight(int height)
public static int computeGuiScale()