Class ParticleArcanery

java.lang.Object
net.minecraft.client.particle.Particle
com.pixelmonmod.pixelmon.client.particle.ParticleArcanery

public class ParticleArcanery extends net.minecraft.client.particle.Particle
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     
    net.minecraft.client.Camera
     
    double
     
    double
     
    double
     
    float
     
    float
     
    float
     
    float
     
    float
     

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

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

    Constructors
    Constructor
    Description
    ParticleArcanery(double x, double y, double z, double vx, double vy, double vz, float size, ParticleEffect effect)
    Particle with specified sizing.
    ParticleArcanery(double x, double y, double z, double vx, double vy, double vz, ParticleEffect effect)
    Particle with default sizing.
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    dispatch(com.mojang.blaze3d.vertex.PoseStack matrix, com.mojang.blaze3d.vertex.Tesselator tesselator, float ticks)
     
    org.joml.Vector3f[]
    doStandardParticleRotation(net.minecraft.world.phys.Vec3 vector3d, float partialTicks)
     
    int
     
    float
     
    float
     
    float
     
    float
     
     
    float
     
    float
     
    int
     
    double
     
    double
     
    double
     
    float
     
    double
     
    double
     
    double
     
    net.minecraft.util.RandomSource
     
    float
     
    net.minecraft.client.particle.ParticleRenderType
     
    float
     
    net.minecraft.resources.ResourceLocation
     
    float
     
    net.minecraft.world.level.Level
     
    double
     
    double
     
    double
     
    void
     
    void
    move(double dx, double dy, double dz)
     
    boolean
     
    void
    render(com.mojang.blaze3d.vertex.PoseStack matrix, com.mojang.blaze3d.vertex.Tesselator tesselator, com.mojang.blaze3d.vertex.BufferBuilder buffer, float partialTicks)
     
    void
    render(com.mojang.blaze3d.vertex.VertexConsumer buffer, net.minecraft.client.Camera renderInfo, float partialTicks)
     
    void
    setAngle(float theta)
     
    void
    setHeading(double x, double y, double z, float velocity, float inaccuracy)
    Sets the current motion based on a given heading.
    void
    setHeight(float height)
     
    void
    setLifetime(int lifetime)
     
    protected void
     
    void
    setMotion(double x, double y, double z)
    Set the motion of this particle.
    void
     
    void
    setPos(double x, double y, double z)
     
    void
    setPrevPos(double x, double y, double z)
     
    void
    setRGBA(float r, float g, float b, float a)
    Set the color of this particle.
    void
    setSize(float size)
     
    void
    setWidth(float width)
     
    boolean
     
    void
     

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

    getBoundingBox, getLightColor, getParticleGroup, getPos, isAlive, remove, scale, setAlpha, setBoundingBox, setColor, setParticleSpeed, setPower, setSize, toString

    Methods inherited from class java.lang.Object

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

    • effect

      public ParticleEffect effect
    • rotationX

      public float rotationX
    • rotationZ

      public float rotationZ
    • rotationYZ

      public float rotationYZ
    • rotationXY

      public float rotationXY
    • rotationXZ

      public float rotationXZ
    • interpPosX

      public double interpPosX
    • interpPosY

      public double interpPosY
    • interpPosZ

      public double interpPosZ
    • info

      public net.minecraft.client.Camera info
  • Constructor Details

    • ParticleArcanery

      public ParticleArcanery(double x, double y, double z, double vx, double vy, double vz, ParticleEffect effect)
      Particle with default sizing.
      Parameters:
      x - X position.
      y - Y position.
      z - Z position.
      vx - Initial X motion. Note, these values might not directly correlate to motion. Depends on the ParticleEffect impl.
      vy - Initial Y motion.
      vz - Initial Z motion.
      effect - The ParticleEffect to render.
    • ParticleArcanery

      public ParticleArcanery(double x, double y, double z, double vx, double vy, double vz, float size, ParticleEffect effect)
      Particle with specified sizing.
      Parameters:
      x - X position.
      y - Y position.
      z - Z position.
      vx - Initial X motion. Note, these values might not directly correlate to motion. Depends on the ParticleEffect impl.
      vy - Initial Y motion.
      vz - Initial Z motion.
      size - Initial particle size.
      effect - The ParticleEffect to render.
  • Method Details

    • setRGBA

      public void setRGBA(float r, float g, float b, float a)
      Set the color of this particle. Note that this may not always do what you expect, see the current ParticleEffect implementation in use by this instance to check.
      Parameters:
      r - Red portion.
      g - Green portion.
      b - Blue portion.
      a - Alpha portion.
    • getMotionX

      public double getMotionX()
    • getMotionY

      public double getMotionY()
    • getMotionZ

      public double getMotionZ()
    • setMotion

      public void setMotion(double x, double y, double z)
      Set the motion of this particle. Note that this may not always do what you expect, see the current ParticleEffect implementation in use by this instance to check.
      Parameters:
      x - X motion.
      y - Y motion.
      z - Z motion.
    • setOnGround

      public void setOnGround()
    • setLifetime

      public void setLifetime(int lifetime)
      Overrides:
      setLifetime in class net.minecraft.client.particle.Particle
    • getLifetime

      public int getLifetime()
      Overrides:
      getLifetime in class net.minecraft.client.particle.Particle
    • getRenderType

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

      public boolean shouldCull()
      Overrides:
      shouldCull in class net.minecraft.client.particle.Particle
    • incrementAge

      public void incrementAge()
    • getAge

      public int getAge()
    • getSize

      public float getSize()
    • setSize

      public void setSize(float size)
    • getWidth

      public float getWidth()
    • setWidth

      public void setWidth(float width)
    • getHeight

      public float getHeight()
    • setHeight

      public void setHeight(float height)
    • getX

      public double getX()
    • getY

      public double getY()
    • getZ

      public double getZ()
    • setPos

      public void setPos(double x, double y, double z)
      Overrides:
      setPos in class net.minecraft.client.particle.Particle
    • getPrevX

      public double getPrevX()
    • getPrevY

      public double getPrevY()
    • getPrevZ

      public double getPrevZ()
    • setPrevPos

      public void setPrevPos(double x, double y, double z)
    • setHeading

      public void setHeading(double x, double y, double z, float velocity, float inaccuracy)
      Sets the current motion based on a given heading.
      Parameters:
      x - X direction.
      y - Y direction.
      z - Z direction.
      velocity - Rate of movement.
      inaccuracy - Factor of how much the heading can vary from what is specified.
    • onGround

      public boolean onGround()
    • dispatch

      public static void dispatch(com.mojang.blaze3d.vertex.PoseStack matrix, com.mojang.blaze3d.vertex.Tesselator tesselator, float ticks)
    • render

      public void render(com.mojang.blaze3d.vertex.VertexConsumer buffer, net.minecraft.client.Camera renderInfo, float partialTicks)
      Specified by:
      render in class net.minecraft.client.particle.Particle
    • getAngle

      public float getAngle()
    • getPrevAngle

      public float getPrevAngle()
    • getAlphaF

      public float getAlphaF()
    • getTexture

      public net.minecraft.resources.ResourceLocation getTexture()
    • render

      public void render(com.mojang.blaze3d.vertex.PoseStack matrix, com.mojang.blaze3d.vertex.Tesselator tesselator, com.mojang.blaze3d.vertex.BufferBuilder buffer, float partialTicks)
    • getEffect

      public ParticleEffect getEffect()
    • tick

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

      protected void setLocationFromBoundingbox()
      Overrides:
      setLocationFromBoundingbox 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
    • setAngle

      public void setAngle(float theta)
    • getRandom

      public net.minecraft.util.RandomSource getRandom()
    • getWorld

      public net.minecraft.world.level.Level getWorld()
    • getRedColorF

      public float getRedColorF()
    • getGreenColorF

      public float getGreenColorF()
    • getBlueColorF

      public float getBlueColorF()
    • getAlphaColorF

      public float getAlphaColorF()
    • doStandardParticleRotation

      public org.joml.Vector3f[] doStandardParticleRotation(net.minecraft.world.phys.Vec3 vector3d, float partialTicks)