@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 boolean |
brightenLighting |
private static it.unimi.dsi.fastutil.objects.Object2ObjectMap<Identifier,SkyProperties> |
BY_IDENTIFIER |
private float |
cloudsHeight |
private boolean |
darkened |
private float[] |
rgba |
private SkyProperties.SkyType |
skyType |
Constructor and Description |
---|
SkyProperties(float cloudsHeight,
boolean alternateSkyColor,
SkyProperties.SkyType skyType,
boolean brightenLighting,
boolean darkened) |
Modifier and Type | Method and Description |
---|---|
abstract Vec3d |
adjustFogColor(Vec3d color,
float sunHeight)
Transforms the given fog color based on the current height of the sun.
|
static SkyProperties |
byDimensionType(DimensionType dimensionType) |
float |
getCloudsHeight() |
float[] |
getFogColorOverride(float skyAngle,
float tickDelta)
Returns a fog color override based on the current sky angle.
|
SkyProperties.SkyType |
getSkyType() |
boolean |
isAlternateSkyColor() |
boolean |
isDarkened() |
boolean |
shouldBrightenLighting() |
abstract boolean |
useThickFog(int camX,
int camY) |
private static final it.unimi.dsi.fastutil.objects.Object2ObjectMap<Identifier,SkyProperties> BY_IDENTIFIER
private final float[] rgba
private final float cloudsHeight
private final boolean alternateSkyColor
private final SkyProperties.SkyType skyType
private final boolean brightenLighting
private final boolean darkened
public SkyProperties(float cloudsHeight, boolean alternateSkyColor, SkyProperties.SkyType skyType, boolean brightenLighting, boolean darkened)
public static SkyProperties byDimensionType(DimensionType dimensionType)
@Nullable public float[] getFogColorOverride(float skyAngle, float tickDelta)
null
if fog color should not be overriddenpublic float getCloudsHeight()
public boolean isAlternateSkyColor()
public abstract Vec3d adjustFogColor(Vec3d color, float sunHeight)
public abstract boolean useThickFog(int camX, int camY)
public SkyProperties.SkyType getSkyType()
public boolean shouldBrightenLighting()
public boolean isDarkened()