Package net.neoforged.neoforge.client
Class DimensionSpecialEffectsManager
java.lang.Object
net.neoforged.neoforge.client.DimensionSpecialEffectsManager
Manager for
DimensionSpecialEffects
instances.
Provides a lookup by dimension type.
-
Field Summary
Modifier and TypeFieldDescriptionprivate static DimensionSpecialEffects
private static com.google.common.collect.ImmutableMap
<ResourceLocation, DimensionSpecialEffects> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic DimensionSpecialEffects
getForType
(ResourceLocation type) Finds theDimensionSpecialEffects
for a given dimension type, or the default if none is registered.static void
init()
private static DimensionSpecialEffects
Pre-registers vanilla dimension effects and returns the default fallback effects instance.
-
Field Details
-
EFFECTS
private static com.google.common.collect.ImmutableMap<ResourceLocation,DimensionSpecialEffects> EFFECTS -
DEFAULT_EFFECTS
-
-
Constructor Details
-
DimensionSpecialEffectsManager
private DimensionSpecialEffectsManager()
-
-
Method Details
-
getForType
Finds theDimensionSpecialEffects
for a given dimension type, or the default if none is registered. -
init
@Internal public static void init() -
preRegisterVanillaEffects
private static DimensionSpecialEffects preRegisterVanillaEffects(Map<ResourceLocation, DimensionSpecialEffects> effects) Pre-registers vanilla dimension effects and returns the default fallback effects instance.Borrowed from
DimensionSpecialEffects.EFFECTS
.
-