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(Direction side) |
static float |
diffuseLight(float x,
float y,
float z) |
static int |
getLightOffset(int v) |
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 |
setLightData(BakedQuad q,
int light) |
static Direction |
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(Direction side)
public static Direction 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 int getLightOffset(int v)
public static void setLightData(BakedQuad q, int light)