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 - official - fjm- intermediary - net/minecraft/class_5294- named - net/minecraft/client/render/DimensionEffects
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic enum
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final booleanprivate final booleanprivate static final Object2ObjectMap<Identifier,DimensionEffects> private final floatprivate final booleanprivate final float[]private final DimensionEffects.SkyType
- 
Constructor SummaryConstructorsConstructorDescriptionDimensionEffects(float cloudsHeight, boolean alternateSkyColor, DimensionEffects.SkyType skyType, boolean brightenLighting, boolean darkened) 
- 
Method SummaryModifier 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 - official - a- Lfjm;a:Lit/unimi/dsi/fastutil/objects/Object2ObjectMap;- intermediary - field_24609- Lnet/minecraft/class_5294;field_24609:Lit/unimi/dsi/fastutil/objects/Object2ObjectMap;- named - BY_IDENTIFIER- Lnet/minecraft/client/render/DimensionEffects;BY_IDENTIFIER:Lit/unimi/dsi/fastutil/objects/Object2ObjectMap;
 
- 
rgbaprivate final float[] rgba- Mappings:
- Namespace - Name - Mixin selector - official - b- Lfjm;b:[F- intermediary - field_24610- Lnet/minecraft/class_5294;field_24610:[F- named - rgba- Lnet/minecraft/client/render/DimensionEffects;rgba:[F
 
- 
cloudsHeightprivate final float cloudsHeight- Mappings:
- Namespace - Name - Mixin selector - official - c- Lfjm;c:F- intermediary - field_24611- Lnet/minecraft/class_5294;field_24611:F- named - cloudsHeight- Lnet/minecraft/client/render/DimensionEffects;cloudsHeight:F
 
- 
alternateSkyColorprivate final boolean alternateSkyColor- Mappings:
- Namespace - Name - Mixin selector - official - d- Lfjm;d:Z- intermediary - field_24612- Lnet/minecraft/class_5294;field_24612:Z- named - alternateSkyColor- Lnet/minecraft/client/render/DimensionEffects;alternateSkyColor:Z
 
- 
skyType- Mappings:
- Namespace - Name - Mixin selector - official - e- Lfjm;e:Lfjm$d;- intermediary - field_25637- Lnet/minecraft/class_5294;field_25637:Lnet/minecraft/class_5294$class_5401;- named - skyType- Lnet/minecraft/client/render/DimensionEffects;skyType:Lnet/minecraft/client/render/DimensionEffects$SkyType;
 
- 
brightenLightingprivate final boolean brightenLighting- Mappings:
- Namespace - Name - Mixin selector - official - f- Lfjm;f:Z- intermediary - field_24613- Lnet/minecraft/class_5294;field_24613:Z- named - brightenLighting- Lnet/minecraft/client/render/DimensionEffects;brightenLighting:Z
 
- 
darkenedprivate final boolean darkened- Mappings:
- Namespace - Name - Mixin selector - official - g- Lfjm;g:Z- intermediary - field_25638- Lnet/minecraft/class_5294;field_25638:Z- named - darkened- Lnet/minecraft/client/render/DimensionEffects;darkened:Z
 
 
- 
- 
Constructor Details- 
DimensionEffectspublic DimensionEffects(float cloudsHeight, boolean alternateSkyColor, DimensionEffects.SkyType skyType, boolean brightenLighting, boolean darkened) - Mappings:
- Namespace - Name - Mixin selector - official - <init>- Lfjm;<init>(FZLfjm$d;ZZ)V- intermediary - <init>- Lnet/minecraft/class_5294;<init>(FZLnet/minecraft/class_5294$class_5401;ZZ)V- named - <init>- Lnet/minecraft/client/render/DimensionEffects;<init>(FZLnet/minecraft/client/render/DimensionEffects$SkyType;ZZ)V
 
 
- 
- 
Method Details- 
byDimensionType- Mappings:
- Namespace - Name - Mixin selector - official - a- Lfjm;a(Ldfk;)Lfjm;- intermediary - method_28111- Lnet/minecraft/class_5294;method_28111(Lnet/minecraft/class_2874;)Lnet/minecraft/class_5294;- named - byDimensionType- Lnet/minecraft/client/render/DimensionEffects;byDimensionType(Lnet/minecraft/world/dimension/DimensionType;)Lnet/minecraft/client/render/DimensionEffects;
 
- 
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 - official - a- Lfjm;a(FF)[F- intermediary - method_28109- Lnet/minecraft/class_5294;method_28109(FF)[F- named - getFogColorOverride- Lnet/minecraft/client/render/DimensionEffects;getFogColorOverride(FF)[F
 
- 
getCloudsHeightpublic float getCloudsHeight()- Mappings:
- Namespace - Name - Mixin selector - official - a- Lfjm;a()F- intermediary - method_28108- Lnet/minecraft/class_5294;method_28108()F- named - getCloudsHeight- Lnet/minecraft/client/render/DimensionEffects;getCloudsHeight()F
 
- 
isAlternateSkyColorpublic boolean isAlternateSkyColor()- Mappings:
- Namespace - Name - Mixin selector - official - b- Lfjm;b()Z- intermediary - method_28113- Lnet/minecraft/class_5294;method_28113()Z- named - isAlternateSkyColor- Lnet/minecraft/client/render/DimensionEffects;isAlternateSkyColor()Z
 
- 
adjustFogColorTransforms 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 - official - a- Lfjm;a(Leei;F)Leei;- intermediary - method_28112- Lnet/minecraft/class_5294;method_28112(Lnet/minecraft/class_243;F)Lnet/minecraft/class_243;- named - adjustFogColor- Lnet/minecraft/client/render/DimensionEffects;adjustFogColor(Lnet/minecraft/util/math/Vec3d;F)Lnet/minecraft/util/math/Vec3d;
 
- 
useThickFogpublic abstract boolean useThickFog(int camX, int camY) - Mappings:
- Namespace - Name - Mixin selector - official - a- Lfjm;a(II)Z- intermediary - method_28110- Lnet/minecraft/class_5294;method_28110(II)Z- named - useThickFog- Lnet/minecraft/client/render/DimensionEffects;useThickFog(II)Z
 
- 
getSkyType- Mappings:
- Namespace - Name - Mixin selector - official - c- Lfjm;c()Lfjm$d;- intermediary - method_29992- Lnet/minecraft/class_5294;method_29992()Lnet/minecraft/class_5294$class_5401;- named - getSkyType- Lnet/minecraft/client/render/DimensionEffects;getSkyType()Lnet/minecraft/client/render/DimensionEffects$SkyType;
 
- 
shouldBrightenLightingpublic boolean shouldBrightenLighting()- Mappings:
- Namespace - Name - Mixin selector - official - d- Lfjm;d()Z- intermediary - method_28114- Lnet/minecraft/class_5294;method_28114()Z- named - shouldBrightenLighting- Lnet/minecraft/client/render/DimensionEffects;shouldBrightenLighting()Z
 
- 
isDarkenedpublic boolean isDarkened()- Mappings:
- Namespace - Name - Mixin selector - official - e- Lfjm;e()Z- intermediary - method_29993- Lnet/minecraft/class_5294;method_29993()Z- named - isDarkened- Lnet/minecraft/client/render/DimensionEffects;isDarkened()Z
 
 
-