mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-13 16:54:22 +00:00
22 lines
820 B
Java
22 lines
820 B
Java
/*
|
|
* Minecraft Forge - Forge Development LLC
|
|
* SPDX-License-Identifier: LGPL-2.1-only
|
|
*/
|
|
|
|
package net.minecraftforge.client;
|
|
|
|
import net.minecraft.client.Minecraft;
|
|
import net.minecraft.client.Camera;
|
|
import net.minecraft.client.multiplayer.ClientLevel;
|
|
|
|
/**
|
|
* Call {@link net.minecraft.client.renderer.DimensionSpecialEffects#setWeatherParticleRenderHandler(IWeatherParticleRenderHandler)},
|
|
* obtained from a {@link ClientLevel} with an implementation of this to override all weather particle rendering with your own.
|
|
* This handles ground particles that can be seen when it's raining (splash/smoke particles).
|
|
* This also includes playing rain sounds.
|
|
*/
|
|
@FunctionalInterface
|
|
public interface IWeatherParticleRenderHandler {
|
|
void render(int ticks, ClientLevel level, Minecraft minecraft, Camera camera);
|
|
}
|