Class CustomLightModule

java.lang.Object
foundry.veil.api.quasar.emitters.module.render.CustomLightModule
All Implemented Interfaces:
ParticleModule, RenderParticleModule, UpdateParticleModule

public class CustomLightModule extends Object implements UpdateParticleModule, RenderParticleModule
  • Constructor Details

    • CustomLightModule

      public CustomLightModule()
  • Method Details

    • update

      public void update(QuasarParticle particle)
      Description copied from interface: UpdateParticleModule
      Updates this module with the
      Specified by:
      update in interface UpdateParticleModule
      Parameters:
      particle - The particle to update for
    • render

      public void render(QuasarParticle particle, float partialTicks)
      Description copied from interface: RenderParticleModule
      Called each frame to update render data if RenderParticleModule.isEnabled() is true.
      Specified by:
      render in interface RenderParticleModule
      Parameters:
      particle - The particle to update for
      partialTicks - 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 interface ParticleModule
    • isEnabled

      public boolean isEnabled()
      Specified by:
      isEnabled in interface RenderParticleModule
      Returns:
      Whether this module is enabled and should be considered for the next few frames
    • 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)