Package net.minecraft.client.render
Record Class DimensionEffects
java.lang.Object
java.lang.Record
net.minecraft.client.render.DimensionEffects
- Record Components:
cloudsHeight-alternateSkyColor-brightenLighting-darkened-
public record DimensionEffects(Optional<Float> cloudsHeight, boolean alternateSkyColor, Optional<DimensionEffects.class_11082> e, boolean brightenLighting, boolean darkened, DimensionEffects.class_11079 h, boolean i, boolean j)
extends Record
- Mappings:
Namespace Name named net/minecraft/client/render/DimensionEffectsintermediary net/minecraft/class_5294official eiqnamed cloudsHeightintermediary field_24611official cnamed alternateSkyColorintermediary comp_3881official dnamed brightenLightingintermediary comp_3882official fnamed darkenedintermediary comp_3883official g
-
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.private final Optional<DimensionEffects.class_11082> The field for theerecord component.static final com.mojang.serialization.Codec<DimensionEffects> static final PacketCodec<RegistryByteBuf, DimensionEffects> private static final floatprivate final DimensionEffects.class_11079The field for thehrecord component.private final booleanThe field for theirecord component.private final booleanThe field for thejrecord 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.e()Returns the value of theerecord component.final booleanIndicates whether some other object is "equal to" this one.floatintgetSkyColor(float skyAngle) h()Returns the value of thehrecord component.final inthashCode()Returns a hash code value for this object.booleani()Returns the value of theirecord component.booleanisSunRisingOrSetting(float skyAngle) booleanj()Returns the value of thejrecord component.method_69774(Optional<DimensionEffects.class_11082> optional) 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. -
e
The field for theerecord component. -
brightenLighting
private final boolean brightenLightingThe field for thebrightenLightingrecord component. -
darkened
private final boolean darkenedThe field for thedarkenedrecord component. -
h
The field for thehrecord component. -
i
private final boolean iThe field for theirecord component. -
j
private final boolean jThe field for thejrecord 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
-
e
Returns the value of theerecord component.- Returns:
- the value of the
erecord 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
-
h
Returns the value of thehrecord component.- Returns:
- the value of the
hrecord component
-
i
public boolean i()Returns the value of theirecord component.- Returns:
- the value of the
irecord component
-
j
public boolean j()Returns the value of thejrecord component.- Returns:
- the value of the
jrecord component
-