Package net.minecraft.client.render
Class SkyProperties.End
java.lang.Object
net.minecraft.client.render.SkyProperties
net.minecraft.client.render.SkyProperties.End
- Enclosing class:
- SkyProperties
@Environment(CLIENT) public static class SkyProperties.End extends SkyProperties
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.render.SkyProperties
SkyProperties.End, SkyProperties.Nether, SkyProperties.Overworld, SkyProperties.SkyType
-
Constructor Summary
Constructors Constructor Description End()
-
Method Summary
Modifier and Type Method Description Vec3d
adjustFogColor(Vec3d color, float sunHeight)
Transforms the given fog color based on the current height of the sun.float[]
getFogColorOverride(float skyAngle, float tickDelta)
Returns a fog color override based on the current sky angle.boolean
useThickFog(int camX, int camY)
Methods inherited from class net.minecraft.client.render.SkyProperties
byDimensionType, getCloudsHeight, getSkyType, isAlternateSkyColor, isDarkened, shouldBrightenLighting
-
Constructor Details
-
End
public End()
-
-
Method Details
-
adjustFogColor
Transforms the given fog color based on the current height of the sun. This is used in vanilla to darken fog during night.- Specified by:
adjustFogColor
in classSkyProperties
-
useThickFog
public boolean useThickFog(int camX, int camY)- Specified by:
useThickFog
in classSkyProperties
-
getFogColorOverride
Returns a fog color override based on the current sky angle. This is used in vanilla to render sunset and sunrise fog.- Overrides:
getFogColorOverride
in classSkyProperties
- Returns:
- an RGBA array of four floats, or
null
if fog color should not be overridden
-