Class AnimatedParticle

Direct Known Subclasses:
EndRodParticle, FireworksSparkParticle.Explosion, SquidInkParticle, TotemParticle

@Environment(CLIENT)
public class AnimatedParticle
extends SpriteBillboardParticle
  • Field Details

    • spriteProvider

      protected final SpriteProvider spriteProvider
    • upwardsAcceleration

      private final float upwardsAcceleration
    • resistance

      private float resistance
    • targetColorRed

      private float targetColorRed
    • targetColorGreen

      private float targetColorGreen
    • targetColorBlue

      private float targetColorBlue
    • changesColor

      private boolean changesColor
  • Constructor Details

    • AnimatedParticle

      protected AnimatedParticle​(ClientWorld world, double x, double y, double z, SpriteProvider spriteProvider, float upwardsAcceleration)
  • Method Details

    • setColor

      public void setColor​(int rgbHex)
    • setTargetColor

      public void setTargetColor​(int rgbHex)
    • getType

      public ParticleTextureSheet getType()
      Specified by:
      getType in class Particle
    • tick

      public void tick()
      Overrides:
      tick in class Particle
    • getColorMultiplier

      public int getColorMultiplier​(float tint)
      Overrides:
      getColorMultiplier in class Particle
    • setResistance

      protected void setResistance​(float resistance)