java.lang.Object
com.pixelmonmod.pixelmon.client.particle.ParticleEffect
com.pixelmonmod.pixelmon.client.particle.particles.AttackEffect

public class AttackEffect extends ParticleEffect
TODO:
  • Field Details

    • startX

      public double startX
    • startY

      public double startY
    • startZ

      public double startZ
    • endX

      public double endX
    • endY

      public double endY
    • endZ

      public double endZ
    • innaccuracy

      public double innaccuracy
    • travelledDistance

      public double travelledDistance
    • totalDistance

      public double totalDistance
    • maxAge

      public int maxAge
    • age

      public int age
    • eol

      public boolean eol
    • speed

      public double speed
    • mX

      public double mX
    • mY

      public double mY
    • mZ

      public double mZ
    • r

      public float r
    • g

      public float g
    • b

      public float b
    • scale

      public float scale
    • texture

      public net.minecraft.resources.ResourceLocation texture
    • hiddenUntil

      public int hiddenUntil
    • hiddenIsDisable

      public boolean hiddenIsDisable
    • ticker

      public int ticker
    • noiseParam

      public double noiseParam
    • startID

      public int startID
    • endID

      public int endID
    • mc

      public net.minecraft.client.Minecraft mc
    • callback

      public IAttackEffect callback
  • Constructor Details

    • AttackEffect

      public AttackEffect()
    • AttackEffect

      public AttackEffect(IAttackEffect effect, int startEntityID, float[] startPos, int endEntityID, float[] endPos, StandardParticleAnimationData data)
    • AttackEffect

      public AttackEffect(IAttackEffect effect, double startX, double startY, double startZ, double endX, double endY, double endZ, int accuracy, int hiddenUntil, boolean hiddenIsDisable, double noiseParam, double speed, int startID, int endID)
  • Method Details

    • setLifetimeTicks

      public AttackEffect setLifetimeTicks(int ticks)
    • setHideTicks

      public AttackEffect setHideTicks(int hideTicks, boolean hideWhileDisabled)
    • setNoise

      public AttackEffect setNoise(double noiseParam)
    • setStartPos

      public AttackEffect setStartPos(float startX, float startY, float startZ)
    • setStartPos

      public AttackEffect setStartPos(double startX, double startY, double startZ)
    • setEndPos

      public AttackEffect setEndPos(float endX, float endY, float endZ)
    • setEndPos

      public AttackEffect setEndPos(double endX, double endY, double endZ)
    • setHeading

      public void setHeading()
    • init

      public void init(ParticleArcanery particle, net.minecraft.world.level.Level world, double x, double y, double z, double vx, double vy, double vz, float size)
      Description copied from class: ParticleEffect
      A function called by ParticleArcanery's constructor.

      TODO: idk why this is needed when constructor's exist

      Specified by:
      init in class ParticleEffect
      Parameters:
      particle - An object representing a particle...?
      world - The Minecraft world.
      x - The x coordinate of the particle.
      y - The y coordinate of the particle.
      z - The z coordinate of the particle.
      vx - The x velocity of the particle.
      vy - The y velocity of the particle.
      vz - The z velocity of the particle.
      size - The size of the particle in the world.
    • update

      public void update(ParticleArcanery particle)
      Description copied from class: ParticleEffect
      A function called every tick by ParticleArcanery.tick().

      TODO: Why the fuck isn't this just called tick

      Specified by:
      update in class ParticleEffect
      Parameters:
      particle - An object representing a particle...?
    • customRenderer

      public boolean customRenderer()
      Overrides:
      customRenderer in class ParticleEffect
      Returns:
      Whether a particle should use ParticleEffect's render functions.
    • preRender

      public void preRender(ParticleArcanery particle, float partialTicks)
      Description copied from class: ParticleEffect
      Does rendering before the render functions.
      Overrides:
      preRender in class ParticleEffect
      Parameters:
      particle - An object representing a particle...?
      partialTicks - Rendering ticks between game ticks.
    • render

      public void render(com.mojang.blaze3d.vertex.PoseStack matrix, ParticleArcanery particle, com.mojang.blaze3d.vertex.Tesselator tesselator, float partialTicks)
      Description copied from class: ParticleEffect
      Overrides:
      render in class ParticleEffect
      Parameters:
      matrix - Rendering api stuff.
      particle - An object representing a particle...?
      tesselator - ???
      partialTicks - Rendering ticks between game ticks.
    • postRender

      public void postRender(ParticleArcanery particle, float partialTicks)
      Description copied from class: ParticleEffect
      Does rendering after the render functions.
      Overrides:
      postRender in class ParticleEffect
      Parameters:
      particle - An object representing a particle...?
      partialTicks - Rendering ticks between game ticks.
    • texture

      public net.minecraft.resources.ResourceLocation texture()
      Specified by:
      texture in class ParticleEffect
      Returns:
      The texture of the particle.