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

    • CODEC

      public static final com.mojang.serialization.Codec<SmokeGrenadeParticleOptions> CODEC
    • color

      protected final org.joml.Vector3f color
    • scale

      protected final float scale
    • DESERIALIZER

      public static final net.minecraft.core.particles.ParticleOptions.Deserializer<SmokeGrenadeParticleOptions> DESERIALIZER
  • Constructor Details

    • SmokeGrenadeParticleOptions

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

    • readVector3f

      public static org.joml.Vector3f readVector3f(com.mojang.brigadier.StringReader reader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • readVector3f

      public static org.joml.Vector3f readVector3f(net.minecraft.network.FriendlyByteBuf byteBuf)
    • writeToNetwork

      public void writeToNetwork(net.minecraft.network.FriendlyByteBuf byteBuf)
      Specified by:
      writeToNetwork in interface net.minecraft.core.particles.ParticleOptions
    • writeToString

      public String writeToString()
      Specified by:
      writeToString in interface net.minecraft.core.particles.ParticleOptions
    • 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