Class BillboardParticle

java.lang.Object
net.minecraft.client.particle.Particle
net.minecraft.client.particle.BillboardParticle
Direct Known Subclasses:
SpriteBillboardParticle

@Environment(CLIENT) public abstract class BillboardParticle extends Particle
A Particle which renders a camera-facing sprite with a target texture scale.
Mappings:
Namespace Name
named net/minecraft/client/particle/BillboardParticle
intermediary net/minecraft/class_3940
official gbq
  • Field Details

    • scale

      protected float scale
      Mappings:
      Namespace Name Mixin selector
      named scale Lnet/minecraft/client/particle/BillboardParticle;scale:F
      intermediary field_17867 Lnet/minecraft/class_3940;field_17867:F
      official D Lgbq;D:F
    • rotation

      private final Quaternionf rotation
      Mappings:
      Namespace Name Mixin selector
      named rotation Lnet/minecraft/client/particle/BillboardParticle;rotation:Lorg/joml/Quaternionf;
      intermediary field_47456 Lnet/minecraft/class_3940;field_47456:Lorg/joml/Quaternionf;
      official a Lgbq;a:Lorg/joml/Quaternionf;
  • Constructor Details

    • BillboardParticle

      protected BillboardParticle(ClientWorld world, double x, double y, double z)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/particle/Particle;<init>(Lnet/minecraft/client/world/ClientWorld;DDD)V
      intermediary <init> Lnet/minecraft/class_703;<init>(Lnet/minecraft/class_638;DDD)V
      official <init> Lgbd;<init>(Lfxw;DDD)V
    • BillboardParticle

      protected BillboardParticle(ClientWorld world, double x, double y, double z, double velocityX, double velocityY, double velocityZ)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/particle/Particle;<init>(Lnet/minecraft/client/world/ClientWorld;DDDDDD)V
      intermediary <init> Lnet/minecraft/class_703;<init>(Lnet/minecraft/class_638;DDDDDD)V
      official <init> Lgbd;<init>(Lfxw;DDDDDD)V
  • Method Details

    • getRotator

      public BillboardParticle.Rotator getRotator()
      Mappings:
      Namespace Name Mixin selector
      named getRotator Lnet/minecraft/client/particle/BillboardParticle;getRotator()Lnet/minecraft/client/particle/BillboardParticle$Rotator;
      intermediary method_55245 Lnet/minecraft/class_3940;method_55245()Lnet/minecraft/class_3940$class_8981;
      official p Lgbq;p()Lgbq$a;
    • buildGeometry

      public void buildGeometry(VertexConsumer vertexConsumer, Camera camera, float tickDelta)
      Renders this particle to the given VertexConsumer buffer.
      Specified by:
      buildGeometry in class Particle
      Parameters:
      vertexConsumer - the buffer to render to
      camera - the current active game Camera
      tickDelta - frame tick delta amount
      Mappings:
      Namespace Name Mixin selector
      named buildGeometry Lnet/minecraft/client/particle/Particle;buildGeometry(Lnet/minecraft/client/render/VertexConsumer;Lnet/minecraft/client/render/Camera;F)V
      intermediary method_3074 Lnet/minecraft/class_703;method_3074(Lnet/minecraft/class_4588;Lnet/minecraft/class_4184;F)V
      official a Lgbd;a(Lfad;Lfer;F)V
    • getSize

      public float getSize(float tickDelta)
      Returns the draw scale of this particle, which is used while rendering in buildGeometry(net.minecraft.client.render.VertexConsumer, net.minecraft.client.render.Camera, float).
      Returns:
      the draw scale of this particle, which is used while rendering in buildGeometry(net.minecraft.client.render.VertexConsumer, net.minecraft.client.render.Camera, float)
      Mappings:
      Namespace Name Mixin selector
      named getSize Lnet/minecraft/client/particle/BillboardParticle;getSize(F)F
      intermediary method_18132 Lnet/minecraft/class_3940;method_18132(F)F
      official b Lgbq;b(F)F
    • scale

      public Particle scale(float scale)
      Scales the size of this particle by the given scale amount.
      Overrides:
      scale in class Particle
      Parameters:
      scale - the amount to scale this particle's size by
      Returns:
      this particle
      Mappings:
      Namespace Name Mixin selector
      named scale Lnet/minecraft/client/particle/Particle;scale(F)Lnet/minecraft/client/particle/Particle;
      intermediary method_3087 Lnet/minecraft/class_703;method_3087(F)Lnet/minecraft/class_703;
      official d Lgbd;d(F)Lgbd;
    • getMinU

      protected abstract float getMinU()
      Returns the lower U coordinate of the UV coordinates used to draw this particle.
      Returns:
      the lower U coordinate of the UV coordinates used to draw this particle
      Mappings:
      Namespace Name Mixin selector
      named getMinU Lnet/minecraft/client/particle/BillboardParticle;getMinU()F
      intermediary method_18133 Lnet/minecraft/class_3940;method_18133()F
      official c Lgbq;c()F
    • getMaxU

      protected abstract float getMaxU()
      Returns the upper U coordinate of the UV coordinates used to draw this particle.
      Returns:
      the upper U coordinate of the UV coordinates used to draw this particle
      Mappings:
      Namespace Name Mixin selector
      named getMaxU Lnet/minecraft/client/particle/BillboardParticle;getMaxU()F
      intermediary method_18134 Lnet/minecraft/class_3940;method_18134()F
      official d Lgbq;d()F
    • getMinV

      protected abstract float getMinV()
      Returns the lower V coordinate of the UV coordinates used to draw this particle.
      Returns:
      the lower V coordinate of the UV coordinates used to draw this particle
      Mappings:
      Namespace Name Mixin selector
      named getMinV Lnet/minecraft/client/particle/BillboardParticle;getMinV()F
      intermediary method_18135 Lnet/minecraft/class_3940;method_18135()F
      official e Lgbq;e()F
    • getMaxV

      protected abstract float getMaxV()
      Returns the upper V coordinate of the UV coordinates used to draw this particle.
      Returns:
      the upper V coordinate of the UV coordinates used to draw this particle
      Mappings:
      Namespace Name Mixin selector
      named getMaxV Lnet/minecraft/client/particle/BillboardParticle;getMaxV()F
      intermediary method_18136 Lnet/minecraft/class_3940;method_18136()F
      official f Lgbq;f()F