java.lang.Object
tech.anonymoushacker1279.immersiveweapons.client.particle.smoke_grenade.SmokeGrenadeParticleOptions
All Implemented Interfaces:
net.minecraft.core.particles.ParticleOptions

public class SmokeGrenadeParticleOptions extends Object implements net.minecraft.core.particles.ParticleOptions
  • Field Details

    • color

      protected final org.joml.Vector3f color
    • scale

      protected final float scale
  • Constructor Details

    • SmokeGrenadeParticleOptions

      public SmokeGrenadeParticleOptions(org.joml.Vector3f vector3f, float vibrancy)
  • Method Details

    • getColor

      public org.joml.Vector3f getColor()
    • getType

      public net.minecraft.core.particles.ParticleType<SmokeGrenadeParticleOptions> getType()
      Specified by:
      getType in interface net.minecraft.core.particles.ParticleOptions
    • getParticleByColor

      public static SmokeGrenadeParticleOptions getParticleByColor(int colorID)
      Utility for getting particle colors from resources spawning smoke grenade particles.
      Parameters:
      colorID - the ID representing the color to be selected.
      0 -> Gray
      1 -> Red
      2 -> Green
      3 -> Blue
      4 -> Purple
      5 -> Yellow
      Returns:
      SmokeGrenadeParticleOptions