Class SweepAttackParticle


@Environment(CLIENT) public class SweepAttackParticle extends BillboardParticle
Mappings:
Namespace Name
named net/minecraft/client/particle/SweepAttackParticle
intermediary net/minecraft/class_645
official hbl
  • Field Details

    • spriteProvider

      private final SpriteProvider spriteProvider
      Mappings:
      Namespace Name Mixin selector
      named spriteProvider Lnet/minecraft/client/particle/SweepAttackParticle;spriteProvider:Lnet/minecraft/client/particle/SpriteProvider;
      intermediary field_17781 Lnet/minecraft/class_645;field_17781:Lnet/minecraft/class_4002;
      official a Lhbl;a:Lhdw;
  • Constructor Details

    • SweepAttackParticle

      SweepAttackParticle(ClientWorld world, double x, double y, double z, double velocityX, SpriteProvider spriteProvider)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/particle/SweepAttackParticle;<init>(Lnet/minecraft/client/world/ClientWorld;DDDDLnet/minecraft/client/particle/SpriteProvider;)V
      intermediary <init> Lnet/minecraft/class_645;<init>(Lnet/minecraft/class_638;DDDDLnet/minecraft/class_4002;)V
      official <init> Lhbl;<init>(Lgzn;DDDDLhdw;)V
  • Method Details

    • getBrightness

      public int getBrightness(float tint)
      Returns the packed light level this particle should render at.
      Overrides:
      getBrightness in class Particle
      Returns:
      the packed light level this particle should render at
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named getBrightness Lnet/minecraft/client/particle/Particle;getBrightness(F)I
      intermediary method_3068 Lnet/minecraft/class_703;method_3068(F)I
      official a Lhcy;a(F)I
    • tick

      public void tick()
      Called each game tick (20 times per second), and should be used to do core particle logic, such as movement and collision.
      Overrides:
      tick in class Particle
      Mappings:
      Namespace Name Mixin selector
      named tick Lnet/minecraft/client/particle/Particle;tick()V
      intermediary method_3070 Lnet/minecraft/class_703;method_3070()V
      official a Lhcy;a()V
    • getRenderType

      public BillboardParticle.RenderType getRenderType()
      Specified by:
      getRenderType in class BillboardParticle
      Mappings:
      Namespace Name Mixin selector
      named getRenderType Lnet/minecraft/client/particle/BillboardParticle;getRenderType()Lnet/minecraft/client/particle/BillboardParticle$RenderType;
      intermediary method_74255 Lnet/minecraft/class_3940;method_74255()Lnet/minecraft/class_3940$class_11941;
      official b Lhdo;b()Lhdo$b;