Class SingleQuadParticle

java.lang.Object
net.minecraft.client.particle.Particle
net.minecraft.client.particle.SingleQuadParticle
Direct Known Subclasses:
TextureSheetParticle

public abstract class SingleQuadParticle extends Particle
  • Field Details

    • quadSize

      protected float quadSize
    • rotation

      private final org.joml.Quaternionf rotation
  • Constructor Details

    • SingleQuadParticle

      protected SingleQuadParticle(ClientLevel p_107665_, double p_107666_, double p_107667_, double p_107668_)
    • SingleQuadParticle

      protected SingleQuadParticle(ClientLevel p_107670_, double p_107671_, double p_107672_, double p_107673_, double p_107674_, double p_107675_, double p_107676_)
  • Method Details

    • getFacingCameraMode

      public SingleQuadParticle.FacingCameraMode getFacingCameraMode()
    • render

      public void render(VertexConsumer p_107678_, Camera p_107679_, float p_107680_)
      Specified by:
      render in class Particle
    • getRenderBoundingBox

      public AABB getRenderBoundingBox(float partialTicks)
      Description copied from class: Particle
      Returns the bounding box that should be used for particle culling. AABB.INFINITE can be returned for particles that should not be culled.
      Overrides:
      getRenderBoundingBox in class Particle
    • getQuadSize

      public float getQuadSize(float p_107681_)
    • scale

      public Particle scale(float p_107683_)
      Overrides:
      scale in class Particle
    • getU0

      protected abstract float getU0()
    • getU1

      protected abstract float getU1()
    • getV0

      protected abstract float getV0()
    • getV1

      protected abstract float getV1()