Package net.minecraft.client.renderer
Class DimensionSpecialEffects
java.lang.Object
net.minecraft.client.renderer.DimensionSpecialEffects
- All Implemented Interfaces:
IDimensionSpecialEffectsExtension
- Direct Known Subclasses:
DimensionSpecialEffects.EndEffects,DimensionSpecialEffects.NetherEffects,DimensionSpecialEffects.OverworldEffects
public abstract class DimensionSpecialEffects
extends Object
implements IDimensionSpecialEffectsExtension
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic enum -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final floatprivate final booleanprivate static final it.unimi.dsi.fastutil.objects.Object2ObjectMap<ResourceLocation, DimensionSpecialEffects> private final booleanprivate final booleanprivate final DimensionSpecialEffects.SkyType -
Constructor Summary
ConstructorsConstructorDescriptionDimensionSpecialEffects(float cloudLevel, boolean hasGround, DimensionSpecialEffects.SkyType skyType, boolean forceBrightLightmap, boolean constantAmbientLight) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanstatic DimensionSpecialEffectsforType(DimensionType dimensionType) abstract Vec3getBrightnessDependentFogColor(Vec3 fogColor, float brightness) floatintgetSunriseOrSunsetColor(float timeOfDay) booleanabstract booleanisFoggyAt(int x, int y) booleanisSunriseOrSunset(float timeOfDay) skyType()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.neoforged.neoforge.client.extensions.IDimensionSpecialEffectsExtension
renderClouds, renderSky, renderSnowAndRain, tickRain
-
Field Details
-
EFFECTS
private static final it.unimi.dsi.fastutil.objects.Object2ObjectMap<ResourceLocation,DimensionSpecialEffects> EFFECTS -
cloudLevel
private final float cloudLevel -
hasGround
private final boolean hasGround -
skyType
-
forceBrightLightmap
private final boolean forceBrightLightmap -
constantAmbientLight
private final boolean constantAmbientLight
-
-
Constructor Details
-
DimensionSpecialEffects
public DimensionSpecialEffects(float cloudLevel, boolean hasGround, DimensionSpecialEffects.SkyType skyType, boolean forceBrightLightmap, boolean constantAmbientLight)
-
-
Method Details
-
forType
-
isSunriseOrSunset
public boolean isSunriseOrSunset(float timeOfDay) -
getSunriseOrSunsetColor
public int getSunriseOrSunsetColor(float timeOfDay) -
getCloudHeight
public float getCloudHeight() -
hasGround
public boolean hasGround() -
getBrightnessDependentFogColor
-
isFoggyAt
public abstract boolean isFoggyAt(int x, int y) -
skyType
-
forceBrightLightmap
public boolean forceBrightLightmap() -
constantAmbientLight
public boolean constantAmbientLight()
-