Package net.minecraft.client.render
Class DimensionEffects
java.lang.Object
net.minecraft.client.render.DimensionEffects
- Direct Known Subclasses:
DimensionEffects.End
,DimensionEffects.Nether
,DimensionEffects.Overworld
- Mappings:
Namespace Name named net/minecraft/client/render/DimensionEffects
intermediary net/minecraft/class_5294
official gei
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static class
static enum
-
Field Summary
Modifier and TypeFieldDescriptionprivate final boolean
private final boolean
private static final Object2ObjectMap
<Identifier, DimensionEffects> private final float
private final boolean
private final float[]
private final DimensionEffects.SkyType
-
Constructor Summary
ConstructorDescriptionDimensionEffects
(float cloudsHeight, boolean alternateSkyColor, DimensionEffects.SkyType skyType, boolean brightenLighting, boolean darkened) -
Method Summary
Modifier and TypeMethodDescriptionabstract Vec3d
adjustFogColor
(Vec3d color, float sunHeight) Transforms the given fog color based on the current height of the sun.static DimensionEffects
byDimensionType
(DimensionType dimensionType) float
@org.jetbrains.annotations.Nullable float[]
getFogColorOverride
(float skyAngle, float tickDelta) Returns an RGBA fog color override based on the current sky angle, ornull
if fog color should not be overridden.boolean
boolean
boolean
abstract boolean
useThickFog
(int camX, int camY)
-
Field Details
-
BY_IDENTIFIER
- Mappings:
Namespace Name Mixin selector named BY_IDENTIFIER
Lnet/minecraft/client/render/DimensionEffects;BY_IDENTIFIER:Lit/unimi/dsi/fastutil/objects/Object2ObjectMap;
intermediary field_24609
Lnet/minecraft/class_5294;field_24609:Lit/unimi/dsi/fastutil/objects/Object2ObjectMap;
official a
Lgei;a:Lit/unimi/dsi/fastutil/objects/Object2ObjectMap;
-
rgba
private final float[] rgba- Mappings:
Namespace Name Mixin selector named rgba
Lnet/minecraft/client/render/DimensionEffects;rgba:[F
intermediary field_24610
Lnet/minecraft/class_5294;field_24610:[F
official b
Lgei;b:[F
-
cloudsHeight
private final float cloudsHeight- Mappings:
Namespace Name Mixin selector named cloudsHeight
Lnet/minecraft/client/render/DimensionEffects;cloudsHeight:F
intermediary field_24611
Lnet/minecraft/class_5294;field_24611:F
official c
Lgei;c:F
-
alternateSkyColor
private final boolean alternateSkyColor- Mappings:
Namespace Name Mixin selector named alternateSkyColor
Lnet/minecraft/client/render/DimensionEffects;alternateSkyColor:Z
intermediary field_24612
Lnet/minecraft/class_5294;field_24612:Z
official d
Lgei;d:Z
-
skyType
- Mappings:
Namespace Name Mixin selector named skyType
Lnet/minecraft/client/render/DimensionEffects;skyType:Lnet/minecraft/client/render/DimensionEffects$SkyType;
intermediary field_25637
Lnet/minecraft/class_5294;field_25637:Lnet/minecraft/class_5294$class_5401;
official e
Lgei;e:Lgei$d;
-
brightenLighting
private final boolean brightenLighting- Mappings:
Namespace Name Mixin selector named brightenLighting
Lnet/minecraft/client/render/DimensionEffects;brightenLighting:Z
intermediary field_24613
Lnet/minecraft/class_5294;field_24613:Z
official f
Lgei;f:Z
-
darkened
private final boolean darkened- Mappings:
Namespace Name Mixin selector named darkened
Lnet/minecraft/client/render/DimensionEffects;darkened:Z
intermediary field_25638
Lnet/minecraft/class_5294;field_25638:Z
official g
Lgei;g:Z
-
-
Constructor Details
-
DimensionEffects
public DimensionEffects(float cloudsHeight, boolean alternateSkyColor, DimensionEffects.SkyType skyType, boolean brightenLighting, boolean darkened) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/client/render/DimensionEffects;<init>(FZLnet/minecraft/client/render/DimensionEffects$SkyType;ZZ)V
intermediary <init>
Lnet/minecraft/class_5294;<init>(FZLnet/minecraft/class_5294$class_5401;ZZ)V
official <init>
Lgei;<init>(FZLgei$d;ZZ)V
-
-
Method Details
-
byDimensionType
- Mappings:
Namespace Name Mixin selector named byDimensionType
Lnet/minecraft/client/render/DimensionEffects;byDimensionType(Lnet/minecraft/world/dimension/DimensionType;)Lnet/minecraft/client/render/DimensionEffects;
intermediary method_28111
Lnet/minecraft/class_5294;method_28111(Lnet/minecraft/class_2874;)Lnet/minecraft/class_5294;
official a
Lgei;a(Ldwv;)Lgei;
-
getFogColorOverride
@Nullable public @org.jetbrains.annotations.Nullable float[] getFogColorOverride(float skyAngle, float tickDelta) Returns an RGBA fog color override based on the current sky angle, ornull
if fog color should not be overridden. This is used in vanilla to render sunset and sunrise fog.- Returns:
- an RGBA fog color override based on the current sky angle, or
null
if fog color should not be overridden - Mappings:
Namespace Name Mixin selector named getFogColorOverride
Lnet/minecraft/client/render/DimensionEffects;getFogColorOverride(FF)[F
intermediary method_28109
Lnet/minecraft/class_5294;method_28109(FF)[F
official a
Lgei;a(FF)[F
-
getCloudsHeight
public float getCloudsHeight()- Mappings:
Namespace Name Mixin selector named getCloudsHeight
Lnet/minecraft/client/render/DimensionEffects;getCloudsHeight()F
intermediary method_28108
Lnet/minecraft/class_5294;method_28108()F
official a
Lgei;a()F
-
isAlternateSkyColor
public boolean isAlternateSkyColor()- Mappings:
Namespace Name Mixin selector named isAlternateSkyColor
Lnet/minecraft/client/render/DimensionEffects;isAlternateSkyColor()Z
intermediary method_28113
Lnet/minecraft/class_5294;method_28113()Z
official b
Lgei;b()Z
-
adjustFogColor
Transforms the given fog color based on the current height of the sun. This is used in vanilla to darken fog during night.- Mappings:
Namespace Name Mixin selector named adjustFogColor
Lnet/minecraft/client/render/DimensionEffects;adjustFogColor(Lnet/minecraft/util/math/Vec3d;F)Lnet/minecraft/util/math/Vec3d;
intermediary method_28112
Lnet/minecraft/class_5294;method_28112(Lnet/minecraft/class_243;F)Lnet/minecraft/class_243;
official a
Lgei;a(Leww;F)Leww;
-
useThickFog
public abstract boolean useThickFog(int camX, int camY) - Mappings:
Namespace Name Mixin selector named useThickFog
Lnet/minecraft/client/render/DimensionEffects;useThickFog(II)Z
intermediary method_28110
Lnet/minecraft/class_5294;method_28110(II)Z
official a
Lgei;a(II)Z
-
getSkyType
- Mappings:
Namespace Name Mixin selector named getSkyType
Lnet/minecraft/client/render/DimensionEffects;getSkyType()Lnet/minecraft/client/render/DimensionEffects$SkyType;
intermediary method_29992
Lnet/minecraft/class_5294;method_29992()Lnet/minecraft/class_5294$class_5401;
official c
Lgei;c()Lgei$d;
-
shouldBrightenLighting
public boolean shouldBrightenLighting()- Mappings:
Namespace Name Mixin selector named shouldBrightenLighting
Lnet/minecraft/client/render/DimensionEffects;shouldBrightenLighting()Z
intermediary method_28114
Lnet/minecraft/class_5294;method_28114()Z
official d
Lgei;d()Z
-
isDarkened
public boolean isDarkened()- Mappings:
Namespace Name Mixin selector named isDarkened
Lnet/minecraft/client/render/DimensionEffects;isDarkened()Z
intermediary method_29993
Lnet/minecraft/class_5294;method_29993()Z
official e
Lgei;e()Z
-