Class SkyProperties

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

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

    • BY_IDENTIFIER

      private static final Object2ObjectMap<Identifier,SkyProperties> BY_IDENTIFIER
      Mappings:
      Namespace Name Mixin selector
      official a Lemw;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/SkyProperties;BY_IDENTIFIER:Lit/unimi/dsi/fastutil/objects/Object2ObjectMap;
    • rgba

      private final float[] rgba
      Mappings:
      Namespace Name Mixin selector
      official b Lemw;b:[F
      intermediary field_24610 Lnet/minecraft/class_5294;field_24610:[F
      named rgba Lnet/minecraft/client/render/SkyProperties;rgba:[F
    • cloudsHeight

      private final float cloudsHeight
      Mappings:
      Namespace Name Mixin selector
      official c Lemw;c:F
      intermediary field_24611 Lnet/minecraft/class_5294;field_24611:F
      named cloudsHeight Lnet/minecraft/client/render/SkyProperties;cloudsHeight:F
    • alternateSkyColor

      private final boolean alternateSkyColor
      Mappings:
      Namespace Name Mixin selector
      official d Lemw;d:Z
      intermediary field_24612 Lnet/minecraft/class_5294;field_24612:Z
      named alternateSkyColor Lnet/minecraft/client/render/SkyProperties;alternateSkyColor:Z
    • skyType

      private final SkyProperties.SkyType skyType
      Mappings:
      Namespace Name Mixin selector
      official e Lemw;e:Lemw$d;
      intermediary field_25637 Lnet/minecraft/class_5294;field_25637:Lnet/minecraft/class_5294$class_5401;
      named skyType Lnet/minecraft/client/render/SkyProperties;skyType:Lnet/minecraft/client/render/SkyProperties$SkyType;
    • brightenLighting

      private final boolean brightenLighting
      Mappings:
      Namespace Name Mixin selector
      official f Lemw;f:Z
      intermediary field_24613 Lnet/minecraft/class_5294;field_24613:Z
      named brightenLighting Lnet/minecraft/client/render/SkyProperties;brightenLighting:Z
    • darkened

      private final boolean darkened
      Mappings:
      Namespace Name Mixin selector
      official g Lemw;g:Z
      intermediary field_25638 Lnet/minecraft/class_5294;field_25638:Z
      named darkened Lnet/minecraft/client/render/SkyProperties;darkened:Z
  • Constructor Details

    • SkyProperties

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

    • byDimensionType

      public static SkyProperties byDimensionType(DimensionType dimensionType)
      Mappings:
      Namespace Name Mixin selector
      official a Lemw;a(Lcnu;)Lemw;
      intermediary method_28111 Lnet/minecraft/class_5294;method_28111(Lnet/minecraft/class_2874;)Lnet/minecraft/class_5294;
      named byDimensionType Lnet/minecraft/client/render/SkyProperties;byDimensionType(Lnet/minecraft/world/dimension/DimensionType;)Lnet/minecraft/client/render/SkyProperties;
    • getFogColorOverride

      @Nullable public @org.jetbrains.annotations.Nullable float[] getFogColorOverride(float skyAngle, float tickDelta)
      Returns a fog color override based on the current sky angle. This is used in vanilla to render sunset and sunrise fog.
      Returns:
      an RGBA array of four floats, or null if fog color should not be overridden
      Mappings:
      Namespace Name Mixin selector
      official a Lemw;a(FF)[F
      intermediary method_28109 Lnet/minecraft/class_5294;method_28109(FF)[F
      named getFogColorOverride Lnet/minecraft/client/render/SkyProperties;getFogColorOverride(FF)[F
    • getCloudsHeight

      public float getCloudsHeight()
      Mappings:
      Namespace Name Mixin selector
      official a Lemw;a()F
      intermediary method_28108 Lnet/minecraft/class_5294;method_28108()F
      named getCloudsHeight Lnet/minecraft/client/render/SkyProperties;getCloudsHeight()F
    • isAlternateSkyColor

      public boolean isAlternateSkyColor()
      Mappings:
      Namespace Name Mixin selector
      official b Lemw;b()Z
      intermediary method_28113 Lnet/minecraft/class_5294;method_28113()Z
      named isAlternateSkyColor Lnet/minecraft/client/render/SkyProperties;isAlternateSkyColor()Z
    • 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
      official a Lemw;a(Ldna;F)Ldna;
      intermediary method_28112 Lnet/minecraft/class_5294;method_28112(Lnet/minecraft/class_243;F)Lnet/minecraft/class_243;
      named adjustFogColor Lnet/minecraft/client/render/SkyProperties;adjustFogColor(Lnet/minecraft/util/math/Vec3d;F)Lnet/minecraft/util/math/Vec3d;
    • useThickFog

      public abstract boolean useThickFog(int camX, int camY)
      Mappings:
      Namespace Name Mixin selector
      official a Lemw;a(II)Z
      intermediary method_28110 Lnet/minecraft/class_5294;method_28110(II)Z
      named useThickFog Lnet/minecraft/client/render/SkyProperties;useThickFog(II)Z
    • getSkyType

      public SkyProperties.SkyType getSkyType()
      Mappings:
      Namespace Name Mixin selector
      official c Lemw;c()Lemw$d;
      intermediary method_29992 Lnet/minecraft/class_5294;method_29992()Lnet/minecraft/class_5294$class_5401;
      named getSkyType Lnet/minecraft/client/render/SkyProperties;getSkyType()Lnet/minecraft/client/render/SkyProperties$SkyType;
    • shouldBrightenLighting

      public boolean shouldBrightenLighting()
      Mappings:
      Namespace Name Mixin selector
      official d Lemw;d()Z
      intermediary method_28114 Lnet/minecraft/class_5294;method_28114()Z
      named shouldBrightenLighting Lnet/minecraft/client/render/SkyProperties;shouldBrightenLighting()Z
    • isDarkened

      public boolean isDarkened()
      Mappings:
      Namespace Name Mixin selector
      official e Lemw;e()Z
      intermediary method_29993 Lnet/minecraft/class_5294;method_29993()Z
      named isDarkened Lnet/minecraft/client/render/SkyProperties;isDarkened()Z