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 voidKeeps the level's projection, as the level is about to be drawn with it.static voidstatic voidclose()static voidinit()static intstatic booleanplayEffect(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 voidregister(net.minecraft.resources.ResourceLocation id, VfxRenderer renderer) static voidregisterEffect(net.minecraft.resources.ResourceLocation id, VfxEffect effect) static voidreload()After shaders reload: programs are compiled again on next use, and a failure gets another chance.static voidrender(float partialTick) 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.ResourceLocation id) static voidunregisterEffect(net.minecraft.resources.ResourceLocation id)
-
Method Details
-
init
public static void init() -
register
-
unregister
public static void unregister(net.minecraft.resources.ResourceLocation id) -
registerEffect
-
unregisterEffect
public static void unregisterEffect(net.minecraft.resources.ResourceLocation 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) -
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(float partialTick) Draws every world effect. Called with the level drawn and its depth still there, before the hand.- Parameters:
partialTick- the level's (held where it was while the game is paused)
-
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()
-