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 class
static class
static class
static enum
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final boolean
private static final it.unimi.dsi.fastutil.objects.Object2ObjectMap
<ResourceLocation, DimensionSpecialEffects> private final boolean
private final DimensionSpecialEffects.SkyType
-
Constructor Summary
ConstructorsConstructorDescriptionDimensionSpecialEffects
(DimensionSpecialEffects.SkyType pSkyType, boolean pForceBrightLightmap, boolean pConstantAmbientLight) -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
static DimensionSpecialEffects
forType
(DimensionType pDimensionType) abstract Vec3
getBrightnessDependentFogColor
(Vec3 pFogColor, float pBrightness) int
getSunriseOrSunsetColor
(float pTimeOfDay) abstract boolean
isFoggyAt
(int pX, int pY) boolean
isSunriseOrSunset
(float pTimeOfDay) skyType()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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 -
skyType
-
forceBrightLightmap
private final boolean forceBrightLightmap -
constantAmbientLight
private final boolean constantAmbientLight
-
-
Constructor Details
-
DimensionSpecialEffects
public DimensionSpecialEffects(DimensionSpecialEffects.SkyType pSkyType, boolean pForceBrightLightmap, boolean pConstantAmbientLight)
-
-
Method Details
-
forType
-
isSunriseOrSunset
public boolean isSunriseOrSunset(float pTimeOfDay) -
getSunriseOrSunsetColor
public int getSunriseOrSunsetColor(float pTimeOfDay) -
getBrightnessDependentFogColor
-
isFoggyAt
public abstract boolean isFoggyAt(int pX, int pY) -
skyType
-
forceBrightLightmap
public boolean forceBrightLightmap() -
constantAmbientLight
public boolean constantAmbientLight()
-