public final class RenderUtil
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static void |
bindTexture(net.minecraft.util.ResourceLocation location)
Bind the texture at the specified location to be used for quad rendering.
|
static void |
drawQuad()
Draw a full one-by-one quad.
|
static void |
drawQuad(float u0,
float v0,
float u1,
float v1)
Draw a full one-by-one quad with the specified texture coordinates.
|
static void |
drawQuad(float x,
float y,
float w,
float h,
float u0,
float v0,
float u1,
float v1)
Draw an arbitrarily sized quad with the specified texture coordinates.
|
static void |
drawQuad(net.minecraft.client.renderer.texture.TextureAtlasSprite sprite)
Draw a full one-by-one quad with the specified sprite texture.
|
static void |
drawQuad(net.minecraft.client.renderer.texture.TextureAtlasSprite sprite,
float u0,
float v0,
float u1,
float v1)
Draw a full one-by-one quad with the specified texture coordinates and sprite texture.
|
static void |
drawQuad(net.minecraft.client.renderer.texture.TextureAtlasSprite sprite,
float x,
float y,
float w,
float h,
float u0,
float v0,
float u1,
float v1)
Draw an arbitrarily sized quad with the specified texture coordinates and texture.
|
static void |
drawUntexturedQuad(float x,
float y,
float w,
float h)
Draw a full one-by-one, untextured quad.
|
static net.minecraft.client.renderer.texture.TextureAtlasSprite |
getSprite(net.minecraft.util.ResourceLocation location)
Get the texture atlas sprite for the specified texture loaded into the
block texture map.
|
static void |
ignoreLighting()
Configure the light map so that whatever is rendered next is rendered at
full brightness, regardless of environment brightness.
|
public static void bindTexture(net.minecraft.util.ResourceLocation location)
location - the location of the texture to bind.public static net.minecraft.client.renderer.texture.TextureAtlasSprite getSprite(net.minecraft.util.ResourceLocation location)
location - the location of the texture to get the sprite for.missingno if not found.public static void drawUntexturedQuad(float x,
float y,
float w,
float h)
x - the x position of the quad.y - the y position of the quad.w - the width of the quad.h - the height of the quad.public static void drawQuad(float x,
float y,
float w,
float h,
float u0,
float v0,
float u1,
float v1)
x - the x position of the quad.y - the y position of the quad.w - the width of the quad.h - the height of the quad.u0 - lower u texture coordinate.v0 - lower v texture coordinate.u1 - upper u texture coordinate.v1 - upper v texture coordinate.public static void drawQuad(float u0,
float v0,
float u1,
float v1)
u0 - lower u texture coordinate.v0 - lower v texture coordinate.u1 - upper u texture coordinate.v1 - upper v texture coordinate.public static void drawQuad()
public static void drawQuad(net.minecraft.client.renderer.texture.TextureAtlasSprite sprite,
float x,
float y,
float w,
float h,
float u0,
float v0,
float u1,
float v1)
The UV coordinates are relative to the sprite.
sprite - the sprite to render.x - the x position of the quad.y - the y position of the quad.w - the width of the quad.h - the height of the quad.u0 - lower u texture coordinate.v0 - lower v texture coordinate.u1 - upper u texture coordinate.v1 - upper v texture coordinate.public static void drawQuad(net.minecraft.client.renderer.texture.TextureAtlasSprite sprite,
float u0,
float v0,
float u1,
float v1)
The UV coordinates are relative to the sprite.
sprite - the sprite to render.u0 - lower u texture coordinate.v0 - lower v texture coordinate.u1 - upper u texture coordinate.v1 - upper v texture coordinate.public static void drawQuad(net.minecraft.client.renderer.texture.TextureAtlasSprite sprite)
sprite - the sprite to render.public static void ignoreLighting()