Record Class DimensionEffects

java.lang.Object
java.lang.Record
net.minecraft.client.render.DimensionEffects
Record Components:
cloudsHeight -
alternateSkyColor -
sky -
brightenLighting -
darkened -
fogScaler -
isAlwaysFoggy -
hasSunriseAndSunset -

public record DimensionEffects(Optional<Float> cloudsHeight, boolean alternateSkyColor, Optional<DimensionEffects.class_11082> sky, boolean brightenLighting, boolean darkened, DimensionEffects.class_11079 fogScaler, boolean isAlwaysFoggy, boolean hasSunriseAndSunset) extends Record
Mappings:
Namespace Name
named net/minecraft/client/render/DimensionEffects
intermediary net/minecraft/class_5294
official eiq
named cloudsHeight
intermediary comp_3951
official c
named alternateSkyColor
intermediary comp_3881
official d
named sky
intermediary comp_3952
official e
named brightenLighting
intermediary comp_3882
official f
named darkened
intermediary comp_3883
official g
named fogScaler
intermediary comp_3953
official h
named isAlwaysFoggy
intermediary comp_3954
official i
named hasSunriseAndSunset
intermediary comp_3955
official j
  • Field Details

    • cloudsHeight

      private final Optional<Float> cloudsHeight
      The field for the cloudsHeight record component.
    • alternateSkyColor

      private final boolean alternateSkyColor
      The field for the alternateSkyColor record component.
    • sky

      The field for the sky record component.
    • brightenLighting

      private final boolean brightenLighting
      The field for the brightenLighting record component.
    • darkened

      private final boolean darkened
      The field for the darkened record component.
    • fogScaler

      private final DimensionEffects.class_11079 fogScaler
      The field for the fogScaler record component.
    • isAlwaysFoggy

      private final boolean isAlwaysFoggy
      The field for the isAlwaysFoggy record component.
    • hasSunriseAndSunset

      private final boolean hasSunriseAndSunset
      The field for the hasSunriseAndSunset record component.
    • field_58978

      public static final com.mojang.serialization.Codec<DimensionEffects> field_58978
      Mappings:
      Namespace Name Mixin selector
      named field_58978 Lnet/minecraft/client/render/DimensionEffects;field_58978:Lcom/mojang/serialization/Codec;
      intermediary field_58978 Lnet/minecraft/class_5294;field_58978:Lcom/mojang/serialization/Codec;
      official a Leiq;a:Lcom/mojang/serialization/Codec;
    • field_58979

      public static final PacketCodec<RegistryByteBuf,DimensionEffects> field_58979
      Mappings:
      Namespace Name Mixin selector
      named field_58979 Lnet/minecraft/client/render/DimensionEffects;field_58979:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_58979 Lnet/minecraft/class_5294;field_58979:Lnet/minecraft/class_9139;
      official b Leiq;b:Lzg;
    • field_58980

      private static final float field_58980
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_58980 Lnet/minecraft/client/render/DimensionEffects;field_58980:F
      intermediary field_58980 Lnet/minecraft/class_5294;field_58980:F
      official k Leiq;k:F
  • Constructor Details

    • DimensionEffects

      public DimensionEffects(Optional<Float> optional, boolean alternateSkyColor, Optional<DimensionEffects.class_11082> optional2, boolean bool, boolean bool2, DimensionEffects.class_11079 class_11079, boolean bool3, boolean bool4)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/render/DimensionEffects;<init>(Ljava/util/Optional;ZLjava/util/Optional;ZZLnet/minecraft/client/render/DimensionEffects$class_11079;ZZ)V
      intermediary <init> Lnet/minecraft/class_5294;<init>(Ljava/util/Optional;ZLjava/util/Optional;ZZLnet/minecraft/class_5294$class_11079;ZZ)V
      official <init> Leiq;<init>(Ljava/util/Optional;ZLjava/util/Optional;ZZLeiq$d;ZZ)V
  • Method Details

    • method_69774

      public DimensionEffects method_69774(Optional<DimensionEffects.class_11082> optional)
      Mappings:
      Namespace Name Mixin selector
      named method_69774 Lnet/minecraft/client/render/DimensionEffects;method_69774(Ljava/util/Optional;)Lnet/minecraft/client/render/DimensionEffects;
      intermediary method_69774 Lnet/minecraft/class_5294;method_69774(Ljava/util/Optional;)Lnet/minecraft/class_5294;
      official a Leiq;a(Ljava/util/Optional;)Leiq;
    • 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 Leiq;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 Leiq;b(F)I
    • 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 Leiq;a()F
    • adjustFogColor

      public 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 Leiq;a(Lfkb;F)Lfkb;
    • useThickFog

      public 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 Leiq;a(II)Z
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • cloudsHeight

      public Optional<Float> cloudsHeight()
      Returns the value of the cloudsHeight record component.
      Returns:
      the value of the cloudsHeight record component
    • alternateSkyColor

      public boolean alternateSkyColor()
      Returns the value of the alternateSkyColor record component.
      Returns:
      the value of the alternateSkyColor record component
    • sky

      Returns the value of the sky record component.
      Returns:
      the value of the sky record component
    • brightenLighting

      public boolean brightenLighting()
      Returns the value of the brightenLighting record component.
      Returns:
      the value of the brightenLighting record component
    • darkened

      public boolean darkened()
      Returns the value of the darkened record component.
      Returns:
      the value of the darkened record component
    • fogScaler

      public DimensionEffects.class_11079 fogScaler()
      Returns the value of the fogScaler record component.
      Returns:
      the value of the fogScaler record component
    • isAlwaysFoggy

      public boolean isAlwaysFoggy()
      Returns the value of the isAlwaysFoggy record component.
      Returns:
      the value of the isAlwaysFoggy record component
    • hasSunriseAndSunset

      public boolean hasSunriseAndSunset()
      Returns the value of the hasSunriseAndSunset record component.
      Returns:
      the value of the hasSunriseAndSunset record component