Class FlatQuadLighter
java.lang.Object
net.minecraftforge.client.model.lighting.QuadLighter
net.minecraftforge.client.model.lighting.FlatQuadLighter
Implementation of 
QuadLighter that lights quads with flat lighting.- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate booleanprivate static final byteprivate static final floatprivate final int[]private static final Direction[]
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected floatcalculateBrightness(float[] position) protected intcalculateLightmap(float[] position, byte[] normal) protected voidcomputeLightingAt(BlockAndTintGetter level, BlockPos pos, BlockState state) Methods inherited from class net.minecraftforge.client.model.lighting.QuadLightercalculateShade, getLightColor, process, reset, setup
- 
Field Details- 
SIDES
- 
MAX_POSITIONprivate static final float MAX_POSITION- See Also:
 
- 
MAX_NORMALprivate static final byte MAX_NORMAL- See Also:
 
- 
isFullCubeprivate boolean isFullCube
- 
packedLightprivate final int[] packedLight
 
- 
- 
Constructor Details- 
FlatQuadLighter
 
- 
- 
Method Details- 
computeLightingAt- Specified by:
- computeLightingAtin class- QuadLighter
 
- 
calculateBrightnessprotected float calculateBrightness(float[] position) - Specified by:
- calculateBrightnessin class- QuadLighter
 
- 
calculateLightmapprotected int calculateLightmap(float[] position, byte[] normal) - Specified by:
- calculateLightmapin class- QuadLighter
 
 
-