Class ParticleTargeted

java.lang.Object
net.minecraft.client.particle.Particle
net.minecraft.client.particle.SingleQuadParticle
net.minecraft.client.particle.TextureSheetParticle
com.binaris.wizardry.api.client.particle.ParticleWizardry
com.binaris.wizardry.api.client.particle.ParticleTargeted
Direct Known Subclasses:
ParticleBeam, ParticleGuardianBeam, ParticleLightning

public abstract class ParticleTargeted extends ParticleWizardry
  • Field Details

    • targetX

      protected double targetX
    • targetY

      protected double targetY
    • targetZ

      protected double targetZ
    • targetVelX

      protected double targetVelX
    • targetVelY

      protected double targetVelY
    • targetVelZ

      protected double targetVelZ
    • length

      protected double length
    • target

      @Nullable protected @Nullable net.minecraft.world.entity.Entity target
  • Constructor Details

    • ParticleTargeted

      public ParticleTargeted(net.minecraft.client.multiplayer.ClientLevel world, double x, double y, double z, net.minecraft.client.particle.SpriteSet spriteProvider, boolean updateTextureOnTick)
  • Method Details

    • setTargetPosition

      public void setTargetPosition(double x, double y, double z)
    • setTargetVelocity

      public void setTargetVelocity(double vx, double vy, double vz)
    • setTargetEntity

      public void setTargetEntity(@Nullable @Nullable net.minecraft.world.entity.Entity target)
    • setLength

      public void setLength(double length)
    • tick

      public void tick()
      Overrides:
      tick in class ParticleWizardry
    • updateEntityLinking

      protected void updateEntityLinking(float partialTicks)
      Overrides:
      updateEntityLinking in class ParticleWizardry
    • render

      public void render(@NotNull @NotNull com.mojang.blaze3d.vertex.VertexConsumer vertexConsumer, @NotNull @NotNull net.minecraft.client.Camera camera, float tickDelta)
      Overrides:
      render in class ParticleWizardry
    • shouldApplyOriginOffset

      protected boolean shouldApplyOriginOffset()
    • shouldApplyOriginOffsetInFirstPerson

      protected boolean shouldApplyOriginOffsetInFirstPerson()
    • draw

      protected abstract void draw(com.mojang.blaze3d.vertex.PoseStack stack, com.mojang.blaze3d.vertex.Tesselator tesselator, float length, float tickDelta)