2021-01-07 21:24:40 +01:00
|
|
|
/*
|
2022-02-28 13:41:23 -08:00
|
|
|
* Minecraft Forge - Forge Development LLC
|
|
|
|
|
* SPDX-License-Identifier: LGPL-2.1-only
|
2021-01-07 21:24:40 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
package net.minecraftforge.client;
|
|
|
|
|
|
|
|
|
|
import net.minecraft.client.Minecraft;
|
2021-07-17 00:08:49 -05:00
|
|
|
import net.minecraft.client.Camera;
|
|
|
|
|
import net.minecraft.client.multiplayer.ClientLevel;
|
2021-01-07 21:24:40 +01:00
|
|
|
|
|
|
|
|
/**
|
2021-11-26 05:09:56 +08:00
|
|
|
* 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.
|
2021-01-07 21:24:40 +01:00
|
|
|
* 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 {
|
2022-03-02 02:59:37 +08:00
|
|
|
void render(int ticks, ClientLevel level, Minecraft minecraft, Camera camera);
|
2021-01-07 21:24:40 +01:00
|
|
|
}
|