@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 |
static class |
SkyProperties.SkyType |
| 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 boolean |
darkened |
private float[] |
rgba |
private boolean |
shouldRenderSky |
private SkyProperties.SkyType |
skyType |
| Constructor and Description |
|---|
SkyProperties(float cloudsHeight,
boolean alternateSkyColor,
SkyProperties.SkyType skyType,
boolean shouldRenderSky,
boolean darkened) |
| 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) |
SkyProperties.SkyType |
getSkyType() |
boolean |
isAlternateSkyColor() |
boolean |
isDarkened() |
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 SkyProperties.SkyType skyType
private final boolean shouldRenderSky
private final boolean darkened
public SkyProperties(float cloudsHeight,
boolean alternateSkyColor,
SkyProperties.SkyType skyType,
boolean shouldRenderSky,
boolean darkened)
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 SkyProperties.SkyType getSkyType()
public boolean shouldRenderSky()
public boolean isDarkened()