Class VfxManager
java.lang.Object
net.ixdarklord.coolcatcanvas.internal.client.vfx.VfxManager
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddBeam(VfxMaterial material, net.minecraft.world.phys.Vec3 from, net.minecraft.world.phys.Vec3 to, float width, int argb, int ticks) static voidaddFlash(VfxMaterial material, net.minecraft.world.phys.Vec3 position, Curve size, int argb, int ticks, boolean onGround) static voidstatic voidclose()static voidendFrame()static voidinit()static intstatic booleanplayEffect(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 voidregister(net.minecraft.resources.Identifier id, VfxRenderer renderer) static voidregisterEffect(net.minecraft.resources.Identifier id, VfxEffect effect) static voidreload()After shaders reload: pipelines are rebuilt on next use, and a failure gets another chance.static voidrender(net.minecraft.client.renderer.state.level.CameraRenderState camera, net.minecraft.client.DeltaTracker deltaTracker) Draws every world effect.static voidspawn(ParticleSpec particle, double x, double y, double z, double velocityX, double velocityY, double velocityZ) static voidunregister(net.minecraft.resources.Identifier id) static voidunregisterEffect(net.minecraft.resources.Identifier id)
-
Method Details
-
init
public static void init() -
register
-
unregister
public static void unregister(net.minecraft.resources.Identifier id) -
registerEffect
-
unregisterEffect
public static void unregisterEffect(net.minecraft.resources.Identifier id) -
playEffect
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()
-