Class ParticleHelper

java.lang.Object
top.girlkisser.lazuli.api.client.particle.ParticleHelper

public final class ParticleHelper extends Object
Generic helper functions for particles.
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    addDust(net.minecraft.core.particles.DustParticleOptions options, net.minecraft.world.level.Level level, net.minecraft.world.phys.Vec3 pos)
    Adds a dust particle at the given location.
    static void
    addDust(net.minecraft.core.particles.DustParticleOptions options, net.minecraft.world.level.Level level, net.minecraft.world.phys.Vec3 pos, net.minecraft.world.phys.Vec3 vel)
    Adds a dust particle at the given location.
    static void
    addDustInBlock(net.minecraft.core.particles.DustParticleOptions options, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos)
    Adds many dust particles inside the given block pos.
    static void
    addDustInBlock(net.minecraft.core.particles.DustParticleOptions options, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, int spread, float density)
    Adds many dust particles inside the given block pos or around the position.

    Methods inherited from class java.lang.Object

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

    • addDust

      public static void addDust(net.minecraft.core.particles.DustParticleOptions options, net.minecraft.world.level.Level level, net.minecraft.world.phys.Vec3 pos, net.minecraft.world.phys.Vec3 vel)
      Adds a dust particle at the given location.
      Parameters:
      options - Particle options to use.
      level - The level to spawn the particle in.
      pos - Where to spawn the particle.
      vel - Velocity for the particle.
    • addDust

      public static void addDust(net.minecraft.core.particles.DustParticleOptions options, net.minecraft.world.level.Level level, net.minecraft.world.phys.Vec3 pos)
      Adds a dust particle at the given location.
      Parameters:
      options - Particle options to use.
      level - The level to spawn the particle in.
      pos - Where to spawn the particle.
    • addDustInBlock

      public static void addDustInBlock(net.minecraft.core.particles.DustParticleOptions options, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos)
      Adds many dust particles inside the given block pos.
      Parameters:
      options - Particle options to use.
      level - The level to spawn particles in.
      pos - Where to spawn the particles.
    • addDustInBlock

      public static void addDustInBlock(net.minecraft.core.particles.DustParticleOptions options, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, int spread, float density)
      Adds many dust particles inside the given block pos or around the position. The total amount of particles spawned is (spread*2)^3.
      Parameters:
      options - Particle options to use.
      level - The level to spawn particles in.
      pos - Where to spawn the particles.
      spread - A range to spawn particles in. A value of 1 will only spawn particles inside the provided block pos.
      density - How close together particles should spawn.