类 SkyProperties
- java.lang.Object
-
- net.minecraft.client.render.SkyProperties
-
@Environment(CLIENT) public abstract class SkyProperties extends Object
- Mappings:
Namespace Name official elpintermediary net/minecraft/class_5294named net/minecraft/client/render/SkyProperties
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static classSkyProperties.Endstatic classSkyProperties.Netherstatic classSkyProperties.Overworldstatic classSkyProperties.SkyType
-
字段概要
字段 修饰符和类型 字段 说明 private booleanalternateSkyColorprivate booleanbrightenLightingprivate static Object2ObjectMap<Identifier,SkyProperties>BY_IDENTIFIERprivate floatcloudsHeightprivate booleandarkenedprivate float[]rgbaprivate SkyProperties.SkyTypeskyType
-
构造器概要
构造器 构造器 说明 SkyProperties(float cloudsHeight, boolean alternateSkyColor, SkyProperties.SkyType skyType, boolean brightenLighting, boolean darkened)
-
方法概要
所有方法 静态方法 实例方法 抽象方法 具体方法 修饰符和类型 方法 说明 abstract Vec3dadjustFogColor(Vec3d color, float sunHeight)Transforms the given fog color based on the current height of the sun.static SkyPropertiesbyDimensionType(DimensionType dimensionType)floatgetCloudsHeight()@org.jetbrains.annotations.Nullable float[]getFogColorOverride(float skyAngle, float tickDelta)Returns a fog color override based on the current sky angle.SkyProperties.SkyTypegetSkyType()booleanisAlternateSkyColor()booleanisDarkened()booleanshouldBrightenLighting()abstract booleanuseThickFog(int camX, int camY)
-
-
-
字段详细资料
-
BY_IDENTIFIER
private static final Object2ObjectMap<Identifier,SkyProperties> BY_IDENTIFIER
- Mappings:
Namespace Name Mixin selector official aLelp;a:Lit/unimi/dsi/fastutil/objects/Object2ObjectMap;intermediary field_24609Lnet/minecraft/class_5294;field_24609:Lit/unimi/dsi/fastutil/objects/Object2ObjectMap;named BY_IDENTIFIERLnet/minecraft/client/render/SkyProperties;BY_IDENTIFIER:Lit/unimi/dsi/fastutil/objects/Object2ObjectMap;
-
rgba
private final float[] rgba
- Mappings:
Namespace Name Mixin selector official bLelp;b:[Fintermediary field_24610Lnet/minecraft/class_5294;field_24610:[Fnamed rgbaLnet/minecraft/client/render/SkyProperties;rgba:[F
-
cloudsHeight
private final float cloudsHeight
- Mappings:
Namespace Name Mixin selector official cLelp;c:Fintermediary field_24611Lnet/minecraft/class_5294;field_24611:Fnamed cloudsHeightLnet/minecraft/client/render/SkyProperties;cloudsHeight:F
-
alternateSkyColor
private final boolean alternateSkyColor
- Mappings:
Namespace Name Mixin selector official dLelp;d:Zintermediary field_24612Lnet/minecraft/class_5294;field_24612:Znamed alternateSkyColorLnet/minecraft/client/render/SkyProperties;alternateSkyColor:Z
-
skyType
private final SkyProperties.SkyType skyType
- Mappings:
Namespace Name Mixin selector official eLelp;e:Lelp$d;intermediary field_25637Lnet/minecraft/class_5294;field_25637:Lnet/minecraft/class_5294$class_5401;named skyTypeLnet/minecraft/client/render/SkyProperties;skyType:Lnet/minecraft/client/render/SkyProperties$SkyType;
-
brightenLighting
private final boolean brightenLighting
- Mappings:
Namespace Name Mixin selector official fLelp;f:Zintermediary field_24613Lnet/minecraft/class_5294;field_24613:Znamed brightenLightingLnet/minecraft/client/render/SkyProperties;brightenLighting:Z
-
darkened
private final boolean darkened
- Mappings:
Namespace Name Mixin selector official gLelp;g:Zintermediary field_25638Lnet/minecraft/class_5294;field_25638:Znamed darkenedLnet/minecraft/client/render/SkyProperties;darkened:Z
-
-
构造器详细资料
-
SkyProperties
public SkyProperties(float cloudsHeight, boolean alternateSkyColor, SkyProperties.SkyType skyType, boolean brightenLighting, boolean darkened)- Mappings:
Namespace Name Mixin selector official <init>Lelp;<init>(FZLelp$d;ZZ)Vintermediary <init>Lnet/minecraft/class_5294;<init>(FZLnet/minecraft/class_5294$class_5401;ZZ)Vnamed <init>Lnet/minecraft/client/render/SkyProperties;<init>(FZLnet/minecraft/client/render/SkyProperties$SkyType;ZZ)V
-
-
方法详细资料
-
byDimensionType
public static SkyProperties byDimensionType(DimensionType dimensionType)
- Mappings:
Namespace Name Mixin selector official aLelp;a(Lcmt;)Lelp;intermediary method_28111Lnet/minecraft/class_5294;method_28111(Lnet/minecraft/class_2874;)Lnet/minecraft/class_5294;named byDimensionTypeLnet/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.- 返回:
- an RGBA array of four floats, or
nullif fog color should not be overridden - Mappings:
Namespace Name Mixin selector official aLelp;a(FF)[Fintermediary method_28109Lnet/minecraft/class_5294;method_28109(FF)[Fnamed getFogColorOverrideLnet/minecraft/client/render/SkyProperties;getFogColorOverride(FF)[F
-
getCloudsHeight
public float getCloudsHeight()
- Mappings:
Namespace Name Mixin selector official aLelp;a()Fintermediary method_28108Lnet/minecraft/class_5294;method_28108()Fnamed getCloudsHeightLnet/minecraft/client/render/SkyProperties;getCloudsHeight()F
-
isAlternateSkyColor
public boolean isAlternateSkyColor()
- Mappings:
Namespace Name Mixin selector official bLelp;b()Zintermediary method_28113Lnet/minecraft/class_5294;method_28113()Znamed isAlternateSkyColorLnet/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 aLelp;a(Ldma;F)Ldma;intermediary method_28112Lnet/minecraft/class_5294;method_28112(Lnet/minecraft/class_243;F)Lnet/minecraft/class_243;named adjustFogColorLnet/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 aLelp;a(II)Zintermediary method_28110Lnet/minecraft/class_5294;method_28110(II)Znamed useThickFogLnet/minecraft/client/render/SkyProperties;useThickFog(II)Z
-
getSkyType
public SkyProperties.SkyType getSkyType()
- Mappings:
Namespace Name Mixin selector official cLelp;c()Lelp$d;intermediary method_29992Lnet/minecraft/class_5294;method_29992()Lnet/minecraft/class_5294$class_5401;named getSkyTypeLnet/minecraft/client/render/SkyProperties;getSkyType()Lnet/minecraft/client/render/SkyProperties$SkyType;
-
shouldBrightenLighting
public boolean shouldBrightenLighting()
- Mappings:
Namespace Name Mixin selector official dLelp;d()Zintermediary method_28114Lnet/minecraft/class_5294;method_28114()Znamed shouldBrightenLightingLnet/minecraft/client/render/SkyProperties;shouldBrightenLighting()Z
-
isDarkened
public boolean isDarkened()
- Mappings:
Namespace Name Mixin selector official eLelp;e()Zintermediary method_29993Lnet/minecraft/class_5294;method_29993()Znamed isDarkenedLnet/minecraft/client/render/SkyProperties;isDarkened()Z
-
-