public class LightUtil
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
LightUtil.ItemConsumer |
Constructor and Description |
---|
LightUtil() |
Modifier and Type | Method and Description |
---|---|
static float |
diffuseLight(EnumFacing side) |
static float |
diffuseLight(float x,
float y,
float z) |
static LightUtil.ItemConsumer |
getItemConsumer() |
static IVertexConsumer |
getTessellator() |
static int[] |
mapFormats(VertexFormat from,
VertexFormat to) |
static void |
pack(float[] from,
int[] to,
VertexFormat formatTo,
int v,
int e) |
static void |
putBakedQuad(IVertexConsumer consumer,
BakedQuad quad) |
static void |
renderQuadColor(VertexBuffer wr,
BakedQuad quad,
int auxColor) |
static void |
renderQuadColorSlow(VertexBuffer wr,
BakedQuad quad,
int auxColor) |
static EnumFacing |
toSide(float x,
float y,
float z) |
static void |
unpack(int[] from,
float[] to,
VertexFormat formatFrom,
int v,
int e) |
public static float diffuseLight(float x, float y, float z)
public static float diffuseLight(EnumFacing side)
public static EnumFacing toSide(float x, float y, float z)
public static void putBakedQuad(IVertexConsumer consumer, BakedQuad quad)
public static int[] mapFormats(VertexFormat from, VertexFormat to)
public static void unpack(int[] from, float[] to, VertexFormat formatFrom, int v, int e)
public static void pack(float[] from, int[] to, VertexFormat formatTo, int v, int e)
public static IVertexConsumer getTessellator()
public static LightUtil.ItemConsumer getItemConsumer()
public static void renderQuadColorSlow(VertexBuffer wr, BakedQuad quad, int auxColor)
public static void renderQuadColor(VertexBuffer wr, BakedQuad quad, int auxColor)