Class ParticleBuff

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.client.particle.ParticleBuff

public class ParticleBuff extends ParticleWizardry
Particle Buff is the only particle in Electroblob's Wizardry (at least on Alpha release) that's using the linking mechanism from ParticleWizardry to follow an entity. It represents the buff effect visually by floating upwards from the entity it's linked to. The particle uses a custom texture and rendering method to achieve its appearance.
  • Constructor Details

    • ParticleBuff

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

    • getRenderType

      @NotNull public @NotNull net.minecraft.client.particle.ParticleRenderType getRenderType()
      Overrides:
      getRenderType in class ParticleWizardry
    • tick

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

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

      protected int getLightColor(float partialTick)
      Overrides:
      getLightColor in class ParticleWizardry