mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-20 12:20:11 +00:00
After internal discussion, it was decided that we need to include "contributors" to the license header. This avoids claiming that the Java source files are under the exclusive copyright ownership of Forge LLC, which excludes contributors that still hold copyright ownership over their contributions (but is licensed under the LGPLv2.1 as stated in the Forge CLA).
22 lines
833 B
Java
22 lines
833 B
Java
/*
|
|
* Copyright (c) Forge Development LLC and contributors
|
|
* 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);
|
|
}
|