Class LightUtil
java.lang.Object
net.minecraftforge.client.model.pipeline.LightUtil
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
private static final class
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final VertexFormat
private static final int[]
private static final VertexFormat
private static final ConcurrentMap<org.apache.commons.lang3.tuple.Pair<VertexFormat,
VertexFormat>, int[]> private static final 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>, formatMapsint[]> -
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
-