public final class RenderUtils
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.reflect.Field |
guiLeft
Access to the guiLeft field in GuiContainer.
|
static java.lang.reflect.Field |
guiTop
Access to the guiTop field in GuiContainer.
|
| Constructor and Description |
|---|
RenderUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
drawTextureModalRectSize(int posX,
int posY,
int u,
int v,
int width,
int length,
float size,
float zLevel) |
static int |
getGuiLeft(net.minecraft.client.gui.inventory.GuiContainer gui)
Retrieves the starting X position of a Gui.
|
static int |
getGuiTop(net.minecraft.client.gui.inventory.GuiContainer gui)
Retrieves the starting Y position of a Gui.
|
static void |
renderColor(int colorVal)
A wrapper for glColor3f.
|
static void |
renderEntity(net.minecraft.entity.Entity entity,
double x,
double y,
double z,
float entityYaw,
float partialTicks)
Renders an entity onto the screen.
|
static void |
synArmorModelToEntity(net.minecraft.client.model.ModelBiped armorModel,
int armorSlot,
net.minecraft.entity.EntityLivingBase entity)
Synchronizes a ModelBiped to an EntityLivingBase.
|
public static java.lang.reflect.Field guiLeft
public static java.lang.reflect.Field guiTop
public static void synArmorModelToEntity(net.minecraft.client.model.ModelBiped armorModel,
int armorSlot,
net.minecraft.entity.EntityLivingBase entity)
armorModel: - The armor model to synchronize to the entity.armorSlot: - The type of armor which is being used.entity: - The entity to synchronize the armor model to.public static void renderColor(int colorVal)
colorVal: - A single integer which represents the RGB compoinents of a color.public static void drawTextureModalRectSize(int posX,
int posY,
int u,
int v,
int width,
int length,
float size,
float zLevel)
public static int getGuiLeft(net.minecraft.client.gui.inventory.GuiContainer gui)
gui: - An instance of the GuiContainer to grab the guiLeft variable from.public static int getGuiTop(net.minecraft.client.gui.inventory.GuiContainer gui)
gui: - An instance of the GuiContainer to grab the guiTop variable from.public static void renderEntity(net.minecraft.entity.Entity entity,
double x,
double y,
double z,
float entityYaw,
float partialTicks)
entity: - The Entity to render.x: - The X position to render the entity at.y: - The Y position to render the entity at.z: - The Z position to render the entity at.entityYaw: - The yaw to use for the entity.partialTicks: - A tick to pass to the entity render.