Class ParticleWizardry

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
Direct Known Subclasses:
ParticleBuff, ParticleCloud, ParticleDarkMagic, ParticleDust, ParticleFlash, ParticleIce, ParticleLeaf, ParticleLightningPulse, ParticleMagicBubble, ParticleMagicFire, ParticlePath, ParticleScorch, ParticleSnow, ParticleSpark, ParticleSparkle, ParticleSphere, ParticleTargeted

public abstract class ParticleWizardry extends net.minecraft.client.particle.TextureSheetParticle
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected boolean
     
    protected float
     
    protected @Nullable net.minecraft.world.entity.Entity
     
    protected float
     
    protected float
     
    protected float
     
    protected float
     
    protected float
     
    protected float
     
    protected float
     
    static final Map<net.minecraft.core.particles.SimpleParticleType,BiFunction<net.minecraft.client.multiplayer.ClientLevel,net.minecraft.world.phys.Vec3,ParticleWizardry>>
     
    protected double
     
    protected Random
     
    protected double
     
    protected double
     
    protected double
     
    protected double
     
    protected double
     
    protected double
     
    protected long
     
    protected boolean
     
    protected double
     
    protected float
     

    Fields inherited from class net.minecraft.client.particle.TextureSheetParticle

    sprite

    Fields inherited from class net.minecraft.client.particle.SingleQuadParticle

    quadSize

    Fields inherited from class net.minecraft.client.particle.Particle

    age, alpha, bbHeight, bbWidth, bCol, friction, gCol, gravity, hasPhysics, level, lifetime, onGround, oRoll, rCol, removed, roll, speedUpWhenYMotionIsBlocked, x, xd, xo, y, yd, yo, z, zd, zo
  • Constructor Summary

    Constructors
    Constructor
    Description
    ParticleWizardry(net.minecraft.client.multiplayer.ClientLevel world, double x, double y, double z, net.minecraft.client.particle.SpriteSet spriteSet, boolean updateTextureOnTick)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    drawParticle(com.mojang.blaze3d.vertex.VertexConsumer buffer, net.minecraft.client.Camera camera, float partialTicks, org.joml.Quaternionf rotation)
     
    protected int
    getLightColor(float f)
     
    @NotNull net.minecraft.client.particle.ParticleRenderType
     
    void
    move(double dx, double dy, double dz)
     
    void
    render(@NotNull com.mojang.blaze3d.vertex.VertexConsumer vertexConsumer, @NotNull net.minecraft.client.Camera camera, float tickDelta)
     
    void
    setCollisions(boolean canCollide)
     
    void
    setColor(float red, float green, float blue)
     
    void
    setEntity(net.minecraft.world.entity.Entity entity)
     
    void
    setFacing(float yaw, float pitch)
     
    void
    setFadeColor(float r, float g, float b)
     
    void
    setGravity(boolean gravity)
     
    void
    setSeed(long seed)
     
    void
    setShaded(boolean shaded)
     
    void
    setSpin(double radius, double speed)
     
    void
     
    protected void
    updateEntityLinking(float partialTicks)
     

    Methods inherited from class net.minecraft.client.particle.TextureSheetParticle

    getU0, getU1, getV0, getV1, pickSprite, setSprite, setSpriteFromAge

    Methods inherited from class net.minecraft.client.particle.SingleQuadParticle

    getQuadSize, scale

    Methods inherited from class net.minecraft.client.particle.Particle

    getBoundingBox, getLifetime, getParticleGroup, isAlive, remove, setAlpha, setBoundingBox, setLifetime, setLocationFromBoundingbox, setParticleSpeed, setPos, setPower, setSize, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • PROVIDERS

      public static final Map<net.minecraft.core.particles.SimpleParticleType,BiFunction<net.minecraft.client.multiplayer.ClientLevel,net.minecraft.world.phys.Vec3,ParticleWizardry>> PROVIDERS
    • seed

      protected long seed
    • random

      protected Random random
    • shaded

      protected boolean shaded
    • initialRed

      protected float initialRed
    • initialGreen

      protected float initialGreen
    • initialBlue

      protected float initialBlue
    • fadeRed

      protected float fadeRed
    • fadeGreen

      protected float fadeGreen
    • fadeBlue

      protected float fadeBlue
    • angle

      protected float angle
    • radius

      protected double radius
    • speed

      protected double speed
    • entity

      @Nullable protected @Nullable net.minecraft.world.entity.Entity entity
    • relativeX

      protected double relativeX
    • relativeY

      protected double relativeY
    • relativeZ

      protected double relativeZ
    • relativeMotionX

      protected double relativeMotionX
    • relativeMotionY

      protected double relativeMotionY
    • relativeMotionZ

      protected double relativeMotionZ
    • yaw

      protected float yaw
    • pitch

      protected float pitch
    • adjustQuadSize

      protected boolean adjustQuadSize
  • Constructor Details

    • ParticleWizardry

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

    • setSeed

      public void setSeed(long seed)
    • setShaded

      public void setShaded(boolean shaded)
    • setGravity

      public void setGravity(boolean gravity)
    • setCollisions

      public void setCollisions(boolean canCollide)
    • setSpin

      public void setSpin(double radius, double speed)
    • setEntity

      public void setEntity(net.minecraft.world.entity.Entity entity)
    • setColor

      public void setColor(float red, float green, float blue)
      Overrides:
      setColor in class net.minecraft.client.particle.Particle
    • setFadeColor

      public void setFadeColor(float r, float g, float b)
    • setFacing

      public void setFacing(float yaw, float pitch)
    • getRenderType

      @NotNull public @NotNull net.minecraft.client.particle.ParticleRenderType getRenderType()
      Specified by:
      getRenderType in class net.minecraft.client.particle.Particle
    • getLightColor

      protected int getLightColor(float f)
      Overrides:
      getLightColor in class net.minecraft.client.particle.Particle
    • 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 net.minecraft.client.particle.SingleQuadParticle
    • drawParticle

      protected void drawParticle(com.mojang.blaze3d.vertex.VertexConsumer buffer, net.minecraft.client.Camera camera, float partialTicks, org.joml.Quaternionf rotation)
    • updateEntityLinking

      protected void updateEntityLinking(float partialTicks)
    • tick

      public void tick()
      Overrides:
      tick in class net.minecraft.client.particle.Particle
    • move

      public void move(double dx, double dy, double dz)
      Overrides:
      move in class net.minecraft.client.particle.Particle