Interface CustomWeatherEffectRenderer
public interface CustomWeatherEffectRenderer
A custom renderer for snow and rain that can be registered using
RegisterCustomEnvironmentEffectRendererEvent.registerWeatherEffectRenderer(Identifier, CustomWeatherEffectRenderer)
and used with NeoForgeEnvironmentAttributes.CUSTOM_WEATHER_EFFECTS.
Custom render state needed for the various render methods must be extracted via ExtractLevelRenderStateEvent
and stored in the provided LevelRenderState.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleanrenderSnowAndRain(LevelRenderState levelRenderState, WeatherRenderState weatherRenderState, MultiBufferSource bufferSource, Vec3 camPos) Renders the snow and rain effects of this dimension.default booleantickRain(ClientLevel level, int ticks, Camera camera) Ticks the rain of this dimension.
-
Method Details
-
renderSnowAndRain
default boolean renderSnowAndRain(LevelRenderState levelRenderState, WeatherRenderState weatherRenderState, MultiBufferSource bufferSource, Vec3 camPos) Renders the snow and rain effects of this dimension.- Returns:
- true to prevent vanilla snow and rain rendering
-
tickRain
Ticks the rain of this dimension.- Returns:
- true to prevent vanilla rain ticking
-