Interface CustomWeatherEffectRenderer


public interface CustomWeatherEffectRenderer
A custom renderer for snow and rain that can be registered using RegisterCustomEnvironmentEffectRendererEvent.registerWeatherEffectRenderer(net.minecraft.resources.Identifier, net.neoforged.neoforge.client.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 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

      default boolean tickRain(ClientLevel level, int ticks, Camera camera)
      Ticks the rain of this dimension.
      Returns:
      true to prevent vanilla rain ticking