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
    Keeps the level's projection, as the level is about to be drawn with it.
    static void
     
    static void
     
    static void
     
    static int
     
    static boolean
    playEffect(net.minecraft.resources.ResourceLocation 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.ResourceLocation id, VfxRenderer renderer)
     
    static void
    registerEffect(net.minecraft.resources.ResourceLocation id, VfxEffect effect)
     
    static void
    After shaders reload: programs are compiled again on next use, and a failure gets another chance.
    static void
    render(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.ResourceLocation id)
     
    static void
    unregisterEffect(net.minecraft.resources.ResourceLocation id)
     

    Methods inherited from class java.lang.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.ResourceLocation id, VfxRenderer renderer)
    • unregister

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

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

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

      public static boolean playEffect(net.minecraft.resources.ResourceLocation 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)
    • beginLevel

      public static void beginLevel()
      Keeps the level's projection, as the level is about to be drawn with it.
    • render

      public static void render(net.minecraft.client.DeltaTracker deltaTracker)
      Draws every world effect. Called with the level drawn and its depth still there, before the hand.
    • reload

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

      public static void close()