public class LightUtil
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
LightUtil.ItemConsumer |
private static class |
LightUtil.ItemPipeline |
Modifier and Type | Field and Description |
---|---|
private static VertexFormat |
DEFAULT_FROM |
private static int[] |
DEFAULT_MAPPING |
private static VertexFormat |
DEFAULT_TO |
private static java.util.concurrent.ConcurrentMap<org.apache.commons.lang3.tuple.Pair<VertexFormat,VertexFormat>,int[]> |
formatMaps |
private static LightUtil.ItemConsumer |
itemConsumer |
private static java.lang.ThreadLocal<LightUtil.ItemPipeline> |
itemPipeline |
private static IVertexConsumer |
tessellator |
Constructor and Description |
---|
LightUtil() |
Modifier and Type | Method and Description |
---|---|
static float |
diffuseLight(EnumFacing side) |
static float |
diffuseLight(float x,
float y,
float z) |
private static int[] |
generateMapping(VertexFormat from,
VertexFormat to) |
static LightUtil.ItemConsumer |
getItemConsumer()
Deprecated.
|
static IVertexConsumer |
getTessellator()
Deprecated.
|
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(BufferBuilder buffer,
BakedQuad quad,
int auxColor) |
static void |
renderQuadColorSlow(BufferBuilder buffer,
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) |
private static final java.util.concurrent.ConcurrentMap<org.apache.commons.lang3.tuple.Pair<VertexFormat,VertexFormat>,int[]> formatMaps
private static final VertexFormat DEFAULT_FROM
private static final VertexFormat DEFAULT_TO
private static final int[] DEFAULT_MAPPING
private static IVertexConsumer tessellator
private static LightUtil.ItemConsumer itemConsumer
private static final java.lang.ThreadLocal<LightUtil.ItemPipeline> itemPipeline
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)
private static int[] generateMapping(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)
@Deprecated public static IVertexConsumer getTessellator()
@Deprecated public static LightUtil.ItemConsumer getItemConsumer()
public static void renderQuadColorSlow(BufferBuilder buffer, BakedQuad quad, int auxColor)
public static void renderQuadColor(BufferBuilder buffer, BakedQuad quad, int auxColor)