Class SpellParticle


public class SpellParticle extends TextureSheetParticle
  • Field Details

    • RANDOM

      private static final RandomSource RANDOM
    • sprites

      private final SpriteSet sprites
    • originalAlpha

      private float originalAlpha
  • Constructor Details

    • SpellParticle

      protected SpellParticle(ClientLevel pLevel, double pX, double pY, double pZ, double pXSpeed, double pYSpeed, double pZSpeed, SpriteSet pSprites)
  • Method Details

    • getRenderType

      public ParticleRenderType getRenderType()
      Specified by:
      getRenderType in class Particle
    • tick

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

      protected void setAlpha(float pAlpha)
      Sets the particle alpha (float)
      Overrides:
      setAlpha in class Particle
    • isCloseToScopingPlayer

      private boolean isCloseToScopingPlayer()