Class VfxManager

java.lang.Object
net.ixdarklord.coolcatcanvas.internal.client.vfx.VfxManager

public final class VfxManager extends Object
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    addBeam(VfxMaterial material, net.minecraft.world.phys.Vec3 from, net.minecraft.world.phys.Vec3 to, float width, int argb, int ticks)
     
    static void
    addFlash(VfxMaterial material, net.minecraft.world.phys.Vec3 position, Curve size, int argb, int ticks, boolean onGround)
     
    static void
     
    static void
     
    static void
     
    static void
     
    static int
     
    static boolean
    playEffect(net.minecraft.resources.Identifier id, VfxParams params)
    Plays a named effect in the world the client is in; unknown ids are skipped (the client may lack the mod).
    static void
    register(net.minecraft.resources.Identifier id, VfxRenderer renderer)
     
    static void
    registerEffect(net.minecraft.resources.Identifier id, VfxEffect effect)
     
    static void
    After shaders reload: pipelines are rebuilt on next use, and a failure gets another chance.
    static void
    render(net.minecraft.client.renderer.state.level.CameraRenderState camera, net.minecraft.client.DeltaTracker deltaTracker)
    Draws every world effect.
    static void
    spawn(ParticleSpec particle, double x, double y, double z, double velocityX, double velocityY, double velocityZ)
     
    static void
    unregister(net.minecraft.resources.Identifier id)
     
    static void
    unregisterEffect(net.minecraft.resources.Identifier id)
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • init

      public static void init()
    • register

      public static void register(net.minecraft.resources.Identifier id, VfxRenderer renderer)
    • unregister

      public static void unregister(net.minecraft.resources.Identifier id)
    • registerEffect

      public static void registerEffect(net.minecraft.resources.Identifier id, VfxEffect effect)
    • unregisterEffect

      public static void unregisterEffect(net.minecraft.resources.Identifier id)
    • playEffect

      public static boolean playEffect(net.minecraft.resources.Identifier id, VfxParams params)
      Plays a named effect in the world the client is in; unknown ids are skipped (the client may lack the mod).
    • spawn

      public static void spawn(ParticleSpec particle, double x, double y, double z, double velocityX, double velocityY, double velocityZ)
    • particleCount

      public static int particleCount()
    • clearParticles

      public static void clearParticles()
    • addBeam

      public static void addBeam(VfxMaterial material, net.minecraft.world.phys.Vec3 from, net.minecraft.world.phys.Vec3 to, float width, int argb, int ticks)
    • addFlash

      public static void addFlash(VfxMaterial material, net.minecraft.world.phys.Vec3 position, Curve size, int argb, int ticks, boolean onGround)
    • render

      public static void render(net.minecraft.client.renderer.state.level.CameraRenderState camera, net.minecraft.client.DeltaTracker deltaTracker)
      Draws every world effect. Called with the level drawn, its projection still set and its depth still there.
    • endFrame

      public static void endFrame()
    • reload

      public static void reload()
      After shaders reload: pipelines are rebuilt on next use, and a failure gets another chance.
    • close

      public static void close()