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

public class Blob extends ParticleEffect
  • Constructor Details

    • Blob

      public Blob(double random, double theta, double wu, double r, float red, float green, float blue, boolean white, int maxAge, int colorPattern, float scale)
  • Method Details

    • 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.
    • 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...?
    • calcChangingColor

      public float calcChangingColor(int colorSpeed, int colorDeterminant)
    • calcR

      public float calcR(int colorSpeed, int colorDeterminant)
    • calcG

      public float calcG(int colorSpeed, int colorDeterminant)
    • calcB

      public float calcB(int colorSpeed, int colorDeterminant)
    • texture

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