Class MissileContrailParticle

java.lang.Object
net.minecraft.client.particle.Particle
net.minecraft.client.particle.SingleQuadParticle
net.minecraft.client.particle.TextureSheetParticle
com.hbm_m.particle.custom.MissileContrailParticle

public class MissileContrailParticle extends net.minecraft.client.particle.TextureSheetParticle
Port of 1.7.10 ParticleRocketFlame (missileContrail effect): orange exhaust, motion damping, multi-layer billboard, particle atlas alpha blend (FX layer 1).
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static float
    Set by MissileBaseEntity before spawning contrail particles.

    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
    MissileContrailParticle(net.minecraft.client.multiplayer.ClientLevel level, double x, double y, double z, double dx, double dy, double dz, net.minecraft.client.particle.SpriteSet sprites)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    getLightColor(float partialTick)
     
    net.minecraft.client.particle.ParticleRenderType
    1.7.10 FX layer 1 used particle atlas + alpha blend (not emissive LIT shader).
    void
    render(com.mojang.blaze3d.vertex.VertexConsumer buffer, net.minecraft.client.Camera camera, float partialTick)
     
    boolean
     
    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

    getQuadSize, scale

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

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

    Methods inherited from class java.lang.Object

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

    • currentSpawnScale

      public static float currentSpawnScale
      Set by MissileBaseEntity before spawning contrail particles.
  • Constructor Details

    • MissileContrailParticle

      protected MissileContrailParticle(net.minecraft.client.multiplayer.ClientLevel level, double x, double y, double z, double dx, double dy, double dz, net.minecraft.client.particle.SpriteSet sprites)
  • Method Details

    • tick

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

      public net.minecraft.client.particle.ParticleRenderType getRenderType()
      1.7.10 FX layer 1 used particle atlas + alpha blend (not emissive LIT shader).
      Specified by:
      getRenderType in class net.minecraft.client.particle.Particle
    • shouldCull

      public boolean shouldCull()
      Overrides:
      shouldCull in class net.minecraft.client.particle.Particle
    • getLightColor

      public int getLightColor(float partialTick)
      Overrides:
      getLightColor in class net.minecraft.client.particle.Particle
    • render

      public void render(com.mojang.blaze3d.vertex.VertexConsumer buffer, net.minecraft.client.Camera camera, float partialTick)
      Overrides:
      render in class net.minecraft.client.particle.SingleQuadParticle