java.lang.Object
com.pixelmonmod.pixelmon.client.particle.ParticleSystem
com.pixelmonmod.pixelmon.client.particle.systems.RadialThunder

public class RadialThunder extends ParticleSystem
The NecrozmaFormChange class uses this when combining a Necrozma with a Lunala or Solgaleo.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    execute(net.minecraft.client.Minecraft mc, net.minecraft.world.level.Level w, double x, double y, double z, float scale, boolean shiny, double... args)
    Defines a radius size and then, with some randomness, defines an x, y, and z coordinate for a new particle.
    boolean
    isParticleWithinRadius(double x, double z, double posX, double posZ, double radius)
     

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

    execute

    Methods inherited from class java.lang.Object

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

    • RadialThunder

      public RadialThunder()
  • Method Details

    • execute

      public void execute(net.minecraft.client.Minecraft mc, net.minecraft.world.level.Level w, double x, double y, double z, float scale, boolean shiny, double... args)
      Defines a radius size and then, with some randomness, defines an x, y, and z coordinate for a new particle. If the coordinate is within a cylindrical radius, then a Electric particle is created out of that position.

      The new particle moves faces downwards (I think) (pitch of -90), has the colors given to the args parameter, and the ParticleArcanery defines it as moving upwards 8 blocks.

      Overrides:
      execute in class ParticleSystem
      Parameters:
      mc - The Minecraft client that will render the particles.
      w - The world/dimension where the particles will appear.
      x - The particle's starting x coordinate.
      y - The particle's starting y coordinate.
      z - The particle's starting z coordinate.
      scale - The size of the particle. Unused by this function.
      shiny - Whether the particle is shiny? Unused by this function.
      args - List of double values for setting the color of the particle.
    • isParticleWithinRadius

      public boolean isParticleWithinRadius(double x, double z, double posX, double posZ, double radius)