Class DimensionEffects

java.lang.Object
net.minecraft.client.render.DimensionEffects
Direct Known Subclasses:
DimensionEffects.End, DimensionEffects.Nether, DimensionEffects.Overworld

@Environment(CLIENT) public abstract class DimensionEffects extends Object
Mappings:
Namespace Name
named net/minecraft/client/render/DimensionEffects
intermediary net/minecraft/class_5294
official hai
  • Field Details

    • BY_IDENTIFIER

      private static final Object2ObjectMap<Identifier,DimensionEffects> 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 Lhai;a:Lit/unimi/dsi/fastutil/objects/Object2ObjectMap;
    • skyType

      private final DimensionEffects.SkyType 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 b Lhai;b:Lhai$d;
    • 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 c Lhai;c:Z
    • field_62030

      private final boolean field_62030
      Mappings:
      Namespace Name Mixin selector
      named field_62030 Lnet/minecraft/client/render/DimensionEffects;field_62030:Z
      intermediary field_62030 Lnet/minecraft/class_5294;field_62030:Z
      official d Lhai;d:Z
  • Constructor Details

    • DimensionEffects

      public DimensionEffects(DimensionEffects.SkyType skyType, boolean alternateSkyColor, boolean darkened)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/render/DimensionEffects;<init>(Lnet/minecraft/client/render/DimensionEffects$SkyType;ZZ)V
      intermediary <init> Lnet/minecraft/class_5294;<init>(Lnet/minecraft/class_5294$class_5401;ZZ)V
      official <init> Lhai;<init>(Lhai$d;ZZ)V
  • Method Details

    • byDimensionType

      public static DimensionEffects byDimensionType(DimensionType dimensionType)
      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 Lhai;a(Lejs;)Lhai;
    • isSunRisingOrSetting

      public boolean isSunRisingOrSetting(float skyAngle)
      Mappings:
      Namespace Name Mixin selector
      named isSunRisingOrSetting Lnet/minecraft/client/render/DimensionEffects;isSunRisingOrSetting(F)Z
      intermediary method_62183 Lnet/minecraft/class_5294;method_62183(F)Z
      official a Lhai;a(F)Z
    • getSkyColor

      public int getSkyColor(float skyAngle)
      Mappings:
      Namespace Name Mixin selector
      named getSkyColor Lnet/minecraft/client/render/DimensionEffects;getSkyColor(F)I
      intermediary method_62184 Lnet/minecraft/class_5294;method_62184(F)I
      official b Lhai;b(F)I
    • adjustFogColor

      public abstract Vec3d adjustFogColor(Vec3d color, float sunHeight)
      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 Lhai;a(Lfkm;F)Lfkm;
    • 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 Lhai;a(II)Z
    • getSkyType

      public DimensionEffects.SkyType 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 a Lhai;a()Lhai$d;
    • 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 b Lhai;b()Z
    • method_73235

      public boolean method_73235()
      Mappings:
      Namespace Name Mixin selector
      named method_73235 Lnet/minecraft/client/render/DimensionEffects;method_73235()Z
      intermediary method_73235 Lnet/minecraft/class_5294;method_73235()Z
      official c Lhai;c()Z