Class StaticLightModule
java.lang.Object
foundry.veil.api.quasar.emitters.module.render.StaticLightModule
- All Implemented Interfaces:
ParticleModule
,RenderParticleModule
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
void
onRemove()
Called when the module is removed.void
render
(QuasarParticle particle, float partialTicks) Called each frame to update render data ifRenderParticleModule.isEnabled()
istrue
.
-
Constructor Details
-
StaticLightModule
-
StaticLightModule
public StaticLightModule(org.joml.Vector4fc color, float brightness, float radius)
-
-
Method Details
-
isVisible
public boolean isVisible() -
render
Description copied from interface:RenderParticleModule
Called each frame to update render data ifRenderParticleModule.isEnabled()
istrue
.- Specified by:
render
in interfaceRenderParticleModule
- Parameters:
particle
- The particle to update forpartialTicks
- The percentage from last tick to this tick
-
onRemove
public void onRemove()Description copied from interface:ParticleModule
Called when the module is removed.- Specified by:
onRemove
in interfaceParticleModule
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabled
in interfaceRenderParticleModule
- Returns:
- Whether this module is enabled and should be considered for the next few frames
-