Class CustomLightModule
java.lang.Object
foundry.veil.api.quasar.emitters.module.render.CustomLightModule
- All Implemented Interfaces:
ParticleModule
,RenderParticleModule
,UpdateParticleModule
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfloat
org.joml.Vector4f
getColor()
float
void
onRemove()
Called when the module is removed.void
render
(QuasarParticle particle, float partialTicks) Called each frame to update render data ifRenderParticleModule.isEnabled()
istrue
.void
setBrightness
(float brightness) void
setRadius
(float radius) void
update
(QuasarParticle particle) Updates this module with theMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface foundry.veil.api.quasar.emitters.module.RenderParticleModule
isEnabled
-
Constructor Details
-
CustomLightModule
public CustomLightModule()
-
-
Method Details
-
update
Description copied from interface:UpdateParticleModule
Updates this module with the- Specified by:
update
in interfaceUpdateParticleModule
- Parameters:
particle
- The particle to update for
-
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
-
getColor
public org.joml.Vector4f getColor() -
getBrightness
public float getBrightness() -
getRadius
public float getRadius() -
setBrightness
public void setBrightness(float brightness) -
setRadius
public void setRadius(float radius)
-