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

public class Electric extends ParticleEffect
  • Constructor Summary

    Constructors
    Constructor
    Description
    Electric(int age, boolean parent, float pitch, float yaw, float velocity, float inaccuracy, float r, float g, float b)
     
    Electric(int age, boolean parent, float pitch, float yaw, float velocity, float inaccuracy, float r, float g, float b, float a)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    void
    init(ParticleArcanery particle, net.minecraft.world.level.Level world, double x, double y, double z, double vx, double vy, double vz, float size)
    A function called by ParticleArcanery's constructor.
    void
    render(com.mojang.blaze3d.vertex.PoseStack matrix, ParticleArcanery particle, com.mojang.blaze3d.vertex.Tesselator tesselator, net.minecraft.client.renderer.MultiBufferSource.BufferSource bufferSource, float partialTicks)
    Renders particles.
    net.minecraft.resources.ResourceLocation
     
    void
    A function called every tick by ParticleArcanery.tick().

    Methods inherited from class com.pixelmonmod.pixelmon.client.particle.ParticleEffect

    postRender, preRender, render

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Electric

      public Electric(int age, boolean parent, float pitch, float yaw, float velocity, float inaccuracy, float r, float g, float b)
    • Electric

      public Electric(int age, boolean parent, float pitch, float yaw, float velocity, float inaccuracy, float r, float g, float b, float a)
  • Method Details

    • render

      public void render(com.mojang.blaze3d.vertex.PoseStack matrix, ParticleArcanery particle, com.mojang.blaze3d.vertex.Tesselator tesselator, net.minecraft.client.renderer.MultiBufferSource.BufferSource bufferSource, 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.
    • customRenderer

      public boolean customRenderer()
      Overrides:
      customRenderer in class ParticleEffect
      Returns:
      Whether a particle should use ParticleEffect's render functions.
    • 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...?
    • texture

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