Class BulletImpactParticle

java.lang.Object
net.minecraft.client.particle.Particle
net.minecraft.client.particle.SingleQuadParticle
tech.anonymoushacker1279.immersiveweapons.client.particle.bullet_impact.BulletImpactParticle

public class BulletImpactParticle extends net.minecraft.client.particle.SingleQuadParticle
  • 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, net.minecraft.client.particle.SingleQuadParticle.Layer

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

    net.minecraft.client.particle.Particle.LifetimeAlpha
  • Field Summary

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

    alpha, bCol, gCol, oRoll, quadSize, rCol, roll, sprite

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

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

    Constructors
    Modifier
    Constructor
    Description
    protected
    BulletImpactParticle(net.minecraft.client.multiplayer.ClientLevel level, double x, double y, double z, double xSpeed, double ySpeed, double zSpeed, net.minecraft.client.particle.SpriteSet spriteSet, int blockID)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.joml.Vector3f
    getColorFromBlock(int blockID)
     
    protected net.minecraft.client.particle.SingleQuadParticle.Layer
     
    float
    getQuadSize(float pScaleFactor)
     
    protected float
    randomizeColor(float color, float multiplier)
     
    void
     

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

    extract, extractRotatedQuad, extractRotatedQuad, getFacingCameraMode, getGroup, getU0, getU1, getV0, getV1, scale, setAlpha, setColor, setSprite, setSpriteFromAge, toString

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

    getBoundingBox, getLifetime, getLightCoords, getParticleLimit, getPos, isAlive, move, remove, setBoundingBox, setLifetime, setLocationFromBoundingbox, setParticleSpeed, setPos, setPower, setSize

    Methods inherited from class Object

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

    • BulletImpactParticle

      protected BulletImpactParticle(net.minecraft.client.multiplayer.ClientLevel level, double x, double y, double z, double xSpeed, double ySpeed, double zSpeed, net.minecraft.client.particle.SpriteSet spriteSet, int blockID)
  • Method Details

    • randomizeColor

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

      protected org.joml.Vector3f getColorFromBlock(int blockID)
    • getQuadSize

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

      protected net.minecraft.client.particle.SingleQuadParticle.Layer getLayer()
      Specified by:
      getLayer in class net.minecraft.client.particle.SingleQuadParticle
    • tick

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