public class RenderUtils
extends java.lang.Object
| Constructor and Description |
|---|
RenderUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
drawCuboidOutline(Cuboid6 c) |
static double |
fluidDensityToAlpha(double density) |
static void |
postFluidRender()
Re-enables lighting and disables blending.
|
static IIcon |
prepareFluidRender(FluidStack stack,
int alpha) |
static void |
renderBlockOverlaySide(int x,
int y,
int z,
int side,
double tx1,
double tx2,
double ty1,
double ty2) |
static void |
renderFluidCuboid(Cuboid6 bound,
IIcon tex,
double res) |
static void |
renderFluidCuboid(FluidStack stack,
Cuboid6 bound,
double density,
double res)
Renders a fluid within a bounding box.
|
static void |
renderFluidGauge(FluidStack stack,
Rectangle4i rect,
double density,
double res) |
static void |
renderFluidQuad(Vector3 base,
Vector3 wide,
Vector3 high,
IIcon icon,
double res)
Draws a tessellated quadrilateral bottom to top, left to right
|
static void |
renderFluidQuad(Vector3 point1,
Vector3 point2,
Vector3 point3,
Vector3 point4,
IIcon icon,
double res) |
static void |
renderItemUniform(ItemStack item)
Renders items and blocks in the world at 0,0,0 with transformations that size them appropriately
|
static void |
renderItemUniform(ItemStack item,
double spin)
Renders items and blocks in the world at 0,0,0 with transformations that size them appropriately
|
static boolean |
shouldRenderFluid(FluidStack stack) |
static void |
translateToWorldCoords(Entity entity,
float frame) |
public static void renderFluidQuad(Vector3 point1, Vector3 point2, Vector3 point3, Vector3 point4, IIcon icon, double res)
public static void renderFluidQuad(Vector3 base, Vector3 wide, Vector3 high, IIcon icon, double res)
base - The bottom left corner of the quadwide - The bottom of the quadhigh - The left side of the quadres - Units per iconpublic static void translateToWorldCoords(Entity entity,
float frame)
public static void drawCuboidOutline(Cuboid6 c)
public static void renderFluidCuboid(Cuboid6 bound, IIcon tex, double res)
public static void renderBlockOverlaySide(int x,
int y,
int z,
int side,
double tx1,
double tx2,
double ty1,
double ty2)
public static boolean shouldRenderFluid(FluidStack stack)
public static IIcon prepareFluidRender(FluidStack stack,
int alpha)
stack - The fluid stack to renderpublic static void postFluidRender()
public static double fluidDensityToAlpha(double density)
public static void renderFluidCuboid(FluidStack stack,
Cuboid6 bound,
double density,
double res)
stack - The fluid to render.bound - The box within which the fluid is contained.density - The volume of fluid / the capacity of the tank. For gases this determines the alpha, for liquids this determines the height.res - The resolution to render at.public static void renderFluidGauge(FluidStack stack,
Rectangle4i rect,
double density,
double res)
public static void renderItemUniform(ItemStack item)
public static void renderItemUniform(ItemStack item,
double spin)
spin - The spin angle of the item around the y axis in degrees