Class LightUtil
java.lang.Object
net.minecraftforge.client.model.pipeline.LightUtil
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
private static class
-
Field Summary
Modifier and TypeFieldDescriptionprivate static VertexFormat
private static int[]
private static VertexFormat
private static ConcurrentMap<org.apache.commons.lang3.tuple.Pair<VertexFormat,VertexFormat>,int[]>
private static ThreadLocal<LightUtil.ItemPipeline>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic float
diffuseLight(float x, float y, float z)
static float
diffuseLight(Direction side)
private static int[]
generateMapping(VertexFormat from, VertexFormat to)
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)
-
Field Details
-
formatMaps
private static final ConcurrentMap<org.apache.commons.lang3.tuple.Pair<VertexFormat,VertexFormat>,int[]> formatMaps -
DEFAULT_FROM
-
DEFAULT_TO
-
DEFAULT_MAPPING
private static final int[] DEFAULT_MAPPING -
itemPipeline
-
-
Constructor Details
-
LightUtil
public LightUtil()
-
-
Method Details
-
diffuseLight
public static float diffuseLight(float x, float y, float z) -
diffuseLight
-
toSide
-
putBakedQuad
-
mapFormats
-
generateMapping
-
unpack
-
pack
-
getLightOffset
public static int getLightOffset(int v) -
setLightData
-