Package net.minecraft.client.render
Class SkyProperties
java.lang.Object
net.minecraft.client.render.SkyProperties
- Direct Known Subclasses:
SkyProperties.End,SkyProperties.Nether,SkyProperties.Overworld
@Environment(CLIENT) public abstract class SkyProperties extends Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSkyProperties.Endstatic classSkyProperties.Netherstatic classSkyProperties.Overworldstatic classSkyProperties.SkyType -
Field Summary
Fields Modifier and Type Field Description private booleanalternateSkyColorprivate static Object2ObjectMap<RegistryKey<DimensionType>,SkyProperties>BY_DIMENSION_TYPEprivate floatcloudsHeightprivate booleandarkenedprivate float[]rgbaprivate booleanshouldRenderSkyprivate SkyProperties.SkyTypeskyType -
Constructor Summary
Constructors Constructor Description SkyProperties(float cloudsHeight, boolean alternateSkyColor, SkyProperties.SkyType skyType, boolean shouldRenderSky, boolean darkened) -
Method Summary
Modifier and Type Method Description abstract Vec3dadjustSkyColor(Vec3d color, float sunHeight)static SkyPropertiesbyDimensionType(Optional<RegistryKey<DimensionType>> optional)floatgetCloudsHeight()float[]getSkyColor(float skyAngle, float tickDelta)SkyProperties.SkyTypegetSkyType()booleanisAlternateSkyColor()booleanisDarkened()booleanshouldRenderSky()abstract booleanuseThickFog(int camX, int camY)
-
Field Details
-
BY_DIMENSION_TYPE
-
rgba
private final float[] rgba -
cloudsHeight
private final float cloudsHeight -
alternateSkyColor
private final boolean alternateSkyColor -
skyType
-
shouldRenderSky
private final boolean shouldRenderSky -
darkened
private final boolean darkened
-
-
Constructor Details
-
SkyProperties
public SkyProperties(float cloudsHeight, boolean alternateSkyColor, SkyProperties.SkyType skyType, boolean shouldRenderSky, boolean darkened)
-
-
Method Details
-
byDimensionType
-
getSkyColor
-
getCloudsHeight
public float getCloudsHeight() -
isAlternateSkyColor
public boolean isAlternateSkyColor() -
adjustSkyColor
-
useThickFog
public abstract boolean useThickFog(int camX, int camY) -
getSkyType
-
shouldRenderSky
public boolean shouldRenderSky() -
isDarkened
public boolean isDarkened()
-