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/DimensionEffectsintermediary net/minecraft/class_5294official geo
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic enum -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanprivate final booleanprivate static final Object2ObjectMap<Identifier, DimensionEffects> private final floatprivate final booleanprivate final float[]private final DimensionEffects.SkyType -
Constructor Summary
ConstructorsConstructorDescriptionDimensionEffects(float cloudsHeight, boolean alternateSkyColor, DimensionEffects.SkyType skyType, boolean brightenLighting, boolean darkened) -
Method Summary
Modifier and TypeMethodDescriptionabstract Vec3dadjustFogColor(Vec3d color, float sunHeight) Transforms the given fog color based on the current height of the sun.static DimensionEffectsbyDimensionType(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, ornullif fog color should not be overridden.booleanbooleanbooleanabstract booleanuseThickFog(int camX, int camY)
-
Field Details
-
BY_IDENTIFIER
- Mappings:
Namespace Name Mixin selector named BY_IDENTIFIERLnet/minecraft/client/render/DimensionEffects;BY_IDENTIFIER:Lit/unimi/dsi/fastutil/objects/Object2ObjectMap;intermediary field_24609Lnet/minecraft/class_5294;field_24609:Lit/unimi/dsi/fastutil/objects/Object2ObjectMap;official aLgeo;a:Lit/unimi/dsi/fastutil/objects/Object2ObjectMap;
-
rgba
private final float[] rgba- Mappings:
Namespace Name Mixin selector named rgbaLnet/minecraft/client/render/DimensionEffects;rgba:[Fintermediary field_24610Lnet/minecraft/class_5294;field_24610:[Fofficial bLgeo;b:[F
-
cloudsHeight
private final float cloudsHeight- Mappings:
Namespace Name Mixin selector named cloudsHeightLnet/minecraft/client/render/DimensionEffects;cloudsHeight:Fintermediary field_24611Lnet/minecraft/class_5294;field_24611:Fofficial cLgeo;c:F
-
alternateSkyColor
private final boolean alternateSkyColor- Mappings:
Namespace Name Mixin selector named alternateSkyColorLnet/minecraft/client/render/DimensionEffects;alternateSkyColor:Zintermediary field_24612Lnet/minecraft/class_5294;field_24612:Zofficial dLgeo;d:Z
-
skyType
- Mappings:
Namespace Name Mixin selector named skyTypeLnet/minecraft/client/render/DimensionEffects;skyType:Lnet/minecraft/client/render/DimensionEffects$SkyType;intermediary field_25637Lnet/minecraft/class_5294;field_25637:Lnet/minecraft/class_5294$class_5401;official eLgeo;e:Lgeo$d;
-
brightenLighting
private final boolean brightenLighting- Mappings:
Namespace Name Mixin selector named brightenLightingLnet/minecraft/client/render/DimensionEffects;brightenLighting:Zintermediary field_24613Lnet/minecraft/class_5294;field_24613:Zofficial fLgeo;f:Z
-
darkened
private final boolean darkened- Mappings:
Namespace Name Mixin selector named darkenedLnet/minecraft/client/render/DimensionEffects;darkened:Zintermediary field_25638Lnet/minecraft/class_5294;field_25638:Zofficial gLgeo;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)Vintermediary <init>Lnet/minecraft/class_5294;<init>(FZLnet/minecraft/class_5294$class_5401;ZZ)Vofficial <init>Lgeo;<init>(FZLgeo$d;ZZ)V
-
-
Method Details
-
byDimensionType
- Mappings:
Namespace Name Mixin selector named byDimensionTypeLnet/minecraft/client/render/DimensionEffects;byDimensionType(Lnet/minecraft/world/dimension/DimensionType;)Lnet/minecraft/client/render/DimensionEffects;intermediary method_28111Lnet/minecraft/class_5294;method_28111(Lnet/minecraft/class_2874;)Lnet/minecraft/class_5294;official aLgeo;a(Ldwy;)Lgeo;
-
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, ornullif 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
nullif fog color should not be overridden - Mappings:
Namespace Name Mixin selector named getFogColorOverrideLnet/minecraft/client/render/DimensionEffects;getFogColorOverride(FF)[Fintermediary method_28109Lnet/minecraft/class_5294;method_28109(FF)[Fofficial aLgeo;a(FF)[F
-
getCloudsHeight
public float getCloudsHeight()- Mappings:
Namespace Name Mixin selector named getCloudsHeightLnet/minecraft/client/render/DimensionEffects;getCloudsHeight()Fintermediary method_28108Lnet/minecraft/class_5294;method_28108()Fofficial aLgeo;a()F
-
isAlternateSkyColor
public boolean isAlternateSkyColor()- Mappings:
Namespace Name Mixin selector named isAlternateSkyColorLnet/minecraft/client/render/DimensionEffects;isAlternateSkyColor()Zintermediary method_28113Lnet/minecraft/class_5294;method_28113()Zofficial bLgeo;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 adjustFogColorLnet/minecraft/client/render/DimensionEffects;adjustFogColor(Lnet/minecraft/util/math/Vec3d;F)Lnet/minecraft/util/math/Vec3d;intermediary method_28112Lnet/minecraft/class_5294;method_28112(Lnet/minecraft/class_243;F)Lnet/minecraft/class_243;official aLgeo;a(Lexc;F)Lexc;
-
useThickFog
public abstract boolean useThickFog(int camX, int camY) - Mappings:
Namespace Name Mixin selector named useThickFogLnet/minecraft/client/render/DimensionEffects;useThickFog(II)Zintermediary method_28110Lnet/minecraft/class_5294;method_28110(II)Zofficial aLgeo;a(II)Z
-
getSkyType
- Mappings:
Namespace Name Mixin selector named getSkyTypeLnet/minecraft/client/render/DimensionEffects;getSkyType()Lnet/minecraft/client/render/DimensionEffects$SkyType;intermediary method_29992Lnet/minecraft/class_5294;method_29992()Lnet/minecraft/class_5294$class_5401;official cLgeo;c()Lgeo$d;
-
shouldBrightenLighting
public boolean shouldBrightenLighting()- Mappings:
Namespace Name Mixin selector named shouldBrightenLightingLnet/minecraft/client/render/DimensionEffects;shouldBrightenLighting()Zintermediary method_28114Lnet/minecraft/class_5294;method_28114()Zofficial dLgeo;d()Z
-
isDarkened
public boolean isDarkened()- Mappings:
Namespace Name Mixin selector named isDarkenedLnet/minecraft/client/render/DimensionEffects;isDarkened()Zintermediary method_29993Lnet/minecraft/class_5294;method_29993()Zofficial eLgeo;e()Z
-