2025-11-24 22:52:51 +03:00

31 lines
918 B
Java

/*
* Decompiled with CFR 0.152.
*/
package net.minecraft.client.renderer.state;
import java.util.ArrayList;
import java.util.List;
import net.minecraft.client.renderer.SubmitNodeStorage;
import net.minecraft.client.renderer.state.CameraRenderState;
import net.minecraft.client.renderer.state.ParticleGroupRenderState;
public class ParticlesRenderState {
public final List<ParticleGroupRenderState> particles = new ArrayList<ParticleGroupRenderState>();
public void reset() {
this.particles.forEach(ParticleGroupRenderState::clear);
this.particles.clear();
}
public void add(ParticleGroupRenderState state) {
this.particles.add(state);
}
public void submit(SubmitNodeStorage submitNodeStorage, CameraRenderState camera) {
for (ParticleGroupRenderState particle : this.particles) {
particle.submit(submitNodeStorage, camera);
}
}
}