@Environment(value=CLIENT) public abstract class SkyProperties extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
SkyProperties.End |
static class |
SkyProperties.Nether |
static class |
SkyProperties.Overworld |
| Modifier and Type | Field and Description |
|---|---|
private boolean |
alternateSkyColor |
private static it.unimi.dsi.fastutil.objects.Object2ObjectMap<RegistryKey<DimensionType>,SkyProperties> |
BY_DIMENSION_TYPE |
private float |
cloudsHeight |
private float[] |
rgba |
private boolean |
shouldRenderSky |
| Constructor and Description |
|---|
SkyProperties(float cloudsHeight,
boolean alternateSkyColor,
boolean shouldRenderSky) |
| Modifier and Type | Method and Description |
|---|---|
abstract Vec3d |
adjustSkyColor(Vec3d color,
float sunHeight) |
static SkyProperties |
byDimensionType(Optional<RegistryKey<DimensionType>> optional) |
float |
getCloudsHeight() |
float[] |
getSkyColor(float skyAngle,
float tickDelta) |
boolean |
isAlternateSkyColor() |
boolean |
shouldRenderSky() |
abstract boolean |
useThickFog(int camX,
int camY) |
private static final it.unimi.dsi.fastutil.objects.Object2ObjectMap<RegistryKey<DimensionType>,SkyProperties> BY_DIMENSION_TYPE
private final float[] rgba
private final float cloudsHeight
private final boolean alternateSkyColor
private final boolean shouldRenderSky
public SkyProperties(float cloudsHeight,
boolean alternateSkyColor,
boolean shouldRenderSky)
public static SkyProperties byDimensionType(Optional<RegistryKey<DimensionType>> optional)
@Nullable public float[] getSkyColor(float skyAngle, float tickDelta)
public float getCloudsHeight()
public boolean isAlternateSkyColor()
public abstract boolean useThickFog(int camX,
int camY)
public boolean shouldRenderSky()