Package net.minecraft.client.render
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/DimensionEffectsintermediary net/minecraft/class_5294official eiqnamed cloudsHeightintermediary comp_3951official cnamed alternateSkyColorintermediary comp_3881official dnamed skyintermediary comp_3952official enamed brightenLightingintermediary comp_3882official fnamed darkenedintermediary comp_3883official gnamed fogScalerintermediary comp_3953official hnamed isAlwaysFoggyintermediary comp_3954official inamed hasSunriseAndSunsetintermediary comp_3955official j
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic final recordstatic classstatic enumstatic classstatic classstatic interfacestatic enum -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanThe field for thealternateSkyColorrecord component.private final booleanThe field for thebrightenLightingrecord component.The field for thecloudsHeightrecord component.private final booleanThe field for thedarkenedrecord component.static final com.mojang.serialization.Codec<DimensionEffects> static final PacketCodec<RegistryByteBuf, DimensionEffects> private static final floatprivate final DimensionEffects.class_11079The field for thefogScalerrecord component.private final booleanThe field for thehasSunriseAndSunsetrecord component.private final booleanThe field for theisAlwaysFoggyrecord component.private final Optional<DimensionEffects.class_11082> The field for theskyrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionDimensionEffects(Optional<Float> optional, boolean alternateSkyColor, Optional<DimensionEffects.class_11082> optional2, boolean bool, boolean bool2, DimensionEffects.class_11079 class_11079, boolean bool3, boolean bool4) -
Method Summary
Modifier and TypeMethodDescriptionadjustFogColor(Vec3d color, float sunHeight) Transforms the given fog color based on the current height of the sun.booleanReturns the value of thealternateSkyColorrecord component.booleanReturns the value of thebrightenLightingrecord component.Returns the value of thecloudsHeightrecord component.booleandarkened()Returns the value of thedarkenedrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefogScalerrecord component.floatintgetSkyColor(float skyAngle) final inthashCode()Returns a hash code value for this object.booleanReturns the value of thehasSunriseAndSunsetrecord component.booleanReturns the value of theisAlwaysFoggyrecord component.booleanisSunRisingOrSetting(float skyAngle) method_69774(Optional<DimensionEffects.class_11082> optional) sky()Returns the value of theskyrecord component.final StringtoString()Returns a string representation of this record class.booleanuseThickFog(int camX, int camY)
-
Field Details
-
cloudsHeight
The field for thecloudsHeightrecord component. -
alternateSkyColor
private final boolean alternateSkyColorThe field for thealternateSkyColorrecord component. -
sky
The field for theskyrecord component. -
brightenLighting
private final boolean brightenLightingThe field for thebrightenLightingrecord component. -
darkened
private final boolean darkenedThe field for thedarkenedrecord component. -
fogScaler
The field for thefogScalerrecord component. -
isAlwaysFoggy
private final boolean isAlwaysFoggyThe field for theisAlwaysFoggyrecord component. -
hasSunriseAndSunset
private final boolean hasSunriseAndSunsetThe field for thehasSunriseAndSunsetrecord component. -
field_58978
- Mappings:
Namespace Name Mixin selector named field_58978Lnet/minecraft/client/render/DimensionEffects;field_58978:Lcom/mojang/serialization/Codec;intermediary field_58978Lnet/minecraft/class_5294;field_58978:Lcom/mojang/serialization/Codec;official aLeiq;a:Lcom/mojang/serialization/Codec;
-
field_58979
- Mappings:
Namespace Name Mixin selector named field_58979Lnet/minecraft/client/render/DimensionEffects;field_58979:Lnet/minecraft/network/codec/PacketCodec;intermediary field_58979Lnet/minecraft/class_5294;field_58979:Lnet/minecraft/class_9139;official bLeiq;b:Lzg;
-
field_58980
private static final float field_58980- See Also:
- Mappings:
Namespace Name Mixin selector named field_58980Lnet/minecraft/client/render/DimensionEffects;field_58980:Fintermediary field_58980Lnet/minecraft/class_5294;field_58980:Fofficial kLeiq;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)Vintermediary <init>Lnet/minecraft/class_5294;<init>(Ljava/util/Optional;ZLjava/util/Optional;ZZLnet/minecraft/class_5294$class_11079;ZZ)Vofficial <init>Leiq;<init>(Ljava/util/Optional;ZLjava/util/Optional;ZZLeiq$d;ZZ)V
-
-
Method Details
-
method_69774
- Mappings:
Namespace Name Mixin selector named method_69774Lnet/minecraft/client/render/DimensionEffects;method_69774(Ljava/util/Optional;)Lnet/minecraft/client/render/DimensionEffects;intermediary method_69774Lnet/minecraft/class_5294;method_69774(Ljava/util/Optional;)Lnet/minecraft/class_5294;official aLeiq;a(Ljava/util/Optional;)Leiq;
-
isSunRisingOrSetting
public boolean isSunRisingOrSetting(float skyAngle) - Mappings:
Namespace Name Mixin selector named isSunRisingOrSettingLnet/minecraft/client/render/DimensionEffects;isSunRisingOrSetting(F)Zintermediary method_62183Lnet/minecraft/class_5294;method_62183(F)Zofficial aLeiq;a(F)Z
-
getSkyColor
public int getSkyColor(float skyAngle) - Mappings:
Namespace Name Mixin selector named getSkyColorLnet/minecraft/client/render/DimensionEffects;getSkyColor(F)Iintermediary method_62184Lnet/minecraft/class_5294;method_62184(F)Iofficial bLeiq;b(F)I
-
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 aLeiq;a()F
-
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 aLeiq;a(Lfkb;F)Lfkb;
-
useThickFog
public 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 aLeiq;a(II)Z
-
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. -
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. -
equals
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 withObjects::equals(Object,Object); primitive components are compared with '=='. -
cloudsHeight
Returns the value of thecloudsHeightrecord component.- Returns:
- the value of the
cloudsHeightrecord component
-
alternateSkyColor
public boolean alternateSkyColor()Returns the value of thealternateSkyColorrecord component.- Returns:
- the value of the
alternateSkyColorrecord component
-
sky
Returns the value of theskyrecord component.- Returns:
- the value of the
skyrecord component
-
brightenLighting
public boolean brightenLighting()Returns the value of thebrightenLightingrecord component.- Returns:
- the value of the
brightenLightingrecord component
-
darkened
public boolean darkened()Returns the value of thedarkenedrecord component.- Returns:
- the value of the
darkenedrecord component
-
fogScaler
Returns the value of thefogScalerrecord component.- Returns:
- the value of the
fogScalerrecord component
-
isAlwaysFoggy
public boolean isAlwaysFoggy()Returns the value of theisAlwaysFoggyrecord component.- Returns:
- the value of the
isAlwaysFoggyrecord component
-
hasSunriseAndSunset
public boolean hasSunriseAndSunset()Returns the value of thehasSunriseAndSunsetrecord component.- Returns:
- the value of the
hasSunriseAndSunsetrecord component
-