Class CustomEnvironmentEffectsRendererManager
java.lang.Object
net.neoforged.neoforge.client.CustomEnvironmentEffectsRendererManager
Manager for custom renderers referred to by
EnvironmentAttribute.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static @Nullable Map<Identifier, CustomCloudsRenderer> private static @Nullable Map<Identifier, CustomSkyboxRenderer> private static @Nullable Map<Identifier, CustomWeatherEffectRenderer> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable CustomCloudsRendererFinds theCustomCloudsRendererfor a given identifier, or null if none is registered.static @Nullable CustomCloudsRenderergetCustomCloudsRenderer(Level level, Vec3 position) Finds theCustomCloudsRendererto use for the given position in the given level.static @Nullable CustomSkyboxRendererFinds theCustomSkyboxRendererfor a given identifier, or null if none is registered.static @Nullable CustomSkyboxRenderergetCustomSkyboxRenderer(Level level, Vec3 position) Finds theCustomSkyboxRendererto use for the given position in the given level.static @Nullable CustomWeatherEffectRendererFinds theCustomWeatherEffectRendererfor a given identifier, or null if none is registered.static @Nullable CustomWeatherEffectRenderergetCustomWeatherEffectRenderer(Level level, Vec3 position) Finds theCustomWeatherEffectRendererto use for the given position in the given level.static voidinit()
-
Field Details
-
CUSTOM_CLOUD_RENDERERS
-
CUSTOM_SKYBOX_RENDERERS
-
CUSTOM_WEATHER_EFFECT_RENDERERS
private static @Nullable Map<Identifier, CustomWeatherEffectRenderer> CUSTOM_WEATHER_EFFECT_RENDERERS
-
-
Constructor Details
-
CustomEnvironmentEffectsRendererManager
private CustomEnvironmentEffectsRendererManager()
-
-
Method Details
-
getCustomCloudsRenderer
Finds theCustomCloudsRendererfor a given identifier, or null if none is registered. -
getCustomCloudsRenderer
Finds theCustomCloudsRendererto use for the given position in the given level. -
getCustomSkyboxRenderer
Finds theCustomSkyboxRendererfor a given identifier, or null if none is registered. -
getCustomSkyboxRenderer
Finds theCustomSkyboxRendererto use for the given position in the given level. -
getCustomWeatherEffectRenderer
Finds theCustomWeatherEffectRendererfor a given identifier, or null if none is registered. -
getCustomWeatherEffectRenderer
public static @Nullable CustomWeatherEffectRenderer getCustomWeatherEffectRenderer(Level level, Vec3 position) Finds theCustomWeatherEffectRendererto use for the given position in the given level. -
init
@Internal public static void init()
-