Package foundry.veil.api.quasar.particle
Class ParticleSystemManager
java.lang.Object
foundry.veil.api.quasar.particle.ParticleSystemManager
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addParticleSystem
(ParticleEmitter particleEmitter) void
clear()
@Nullable ParticleEmitter
createEmitter
(net.minecraft.resources.ResourceLocation name) int
net.minecraft.client.multiplayer.ClientLevel
getLevel()
int
void
render
(MatrixStack matrixStack, net.minecraft.client.renderer.MultiBufferSource bufferSource, net.minecraft.client.Camera camera, CullFrustum frustum, float partialTicks) void
reserve
(int particles) Attempts to remove particles from the most dense and farthest particle emitters to make room for closer emitters.void
setLevel
(@Nullable net.minecraft.client.multiplayer.ClientLevel level) void
tick()
-
Constructor Details
-
ParticleSystemManager
public ParticleSystemManager()
-
-
Method Details
-
setLevel
@Internal public void setLevel(@Nullable @Nullable net.minecraft.client.multiplayer.ClientLevel level) -
createEmitter
@Nullable public @Nullable ParticleEmitter createEmitter(net.minecraft.resources.ResourceLocation name) -
addParticleSystem
-
clear
public void clear() -
tick
@Internal public void tick() -
render
@Internal public void render(MatrixStack matrixStack, net.minecraft.client.renderer.MultiBufferSource bufferSource, net.minecraft.client.Camera camera, CullFrustum frustum, float partialTicks) -
reserve
public void reserve(int particles) Attempts to remove particles from the most dense and farthest particle emitters to make room for closer emitters.- Parameters:
particles
- The number of particles being spawned
-
getLevel
public net.minecraft.client.multiplayer.ClientLevel getLevel() -
getScheduler
-
getEmitterCount
public int getEmitterCount() -
getParticleCount
public int getParticleCount()
-