java.lang.Object
net.minecraft.client.particle.Particle
net.minecraft.client.particle.SingleQuadParticle
net.minecraft.client.particle.TextureSheetParticle
tech.anonymoushacker1279.immersiveweapons.client.particle.smoke_grenade.SmokeGrenadeParticle

public class SmokeGrenadeParticle extends net.minecraft.client.particle.TextureSheetParticle
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     

    Nested classes/interfaces inherited from class net.minecraft.client.particle.SingleQuadParticle

    net.minecraft.client.particle.SingleQuadParticle.FacingCameraMode
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected static @Nullable net.minecraft.client.particle.SpriteSet
     

    Fields inherited from class net.minecraft.client.particle.TextureSheetParticle

    sprite

    Fields inherited from class net.minecraft.client.particle.SingleQuadParticle

    quadSize

    Fields inherited from class net.minecraft.client.particle.Particle

    age, alpha, bbHeight, bbWidth, bCol, friction, gCol, gravity, hasPhysics, level, lifetime, onGround, oRoll, random, rCol, removed, roll, speedUpWhenYMotionIsBlocked, x, xd, xo, y, yd, yo, z, zd, zo
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    SmokeGrenadeParticle(net.minecraft.client.multiplayer.ClientLevel level, double x, double y, double z, double xSpeed, double ySpeed, double zSpeed, net.minecraft.client.particle.SpriteSet spriteSet, org.joml.Vector3f color)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    float
    getQuadSize(float pScaleFactor)
     
    net.minecraft.client.particle.ParticleRenderType
     
    protected float
    randomizeColor(float color, float multiplier)
     
    void
     

    Methods inherited from class net.minecraft.client.particle.TextureSheetParticle

    getU0, getU1, getV0, getV1, pickSprite, setSprite, setSpriteFromAge

    Methods inherited from class net.minecraft.client.particle.SingleQuadParticle

    getFacingCameraMode, render, scale

    Methods inherited from class net.minecraft.client.particle.Particle

    getBoundingBox, getLifetime, getLightColor, getParticleGroup, getPos, isAlive, move, remove, setAlpha, setBoundingBox, setColor, setLifetime, setLocationFromBoundingbox, setParticleSpeed, setPos, setPower, setSize, shouldCull, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • sprites

      @Nullable protected static @Nullable net.minecraft.client.particle.SpriteSet sprites
  • Constructor Details

    • SmokeGrenadeParticle

      protected SmokeGrenadeParticle(net.minecraft.client.multiplayer.ClientLevel level, double x, double y, double z, double xSpeed, double ySpeed, double zSpeed, net.minecraft.client.particle.SpriteSet spriteSet, org.joml.Vector3f color)
  • Method Details

    • randomizeColor

      protected float randomizeColor(float color, float multiplier)
    • getRenderType

      public net.minecraft.client.particle.ParticleRenderType getRenderType()
      Specified by:
      getRenderType in class net.minecraft.client.particle.Particle
    • getQuadSize

      public float getQuadSize(float pScaleFactor)
      Overrides:
      getQuadSize in class net.minecraft.client.particle.SingleQuadParticle
    • tick

      public void tick()
      Overrides:
      tick in class net.minecraft.client.particle.Particle