Class RadialThunder
java.lang.Object
com.pixelmonmod.pixelmon.client.particle.ParticleSystem
com.pixelmonmod.pixelmon.client.particle.systems.RadialThunder
The
NecrozmaFormChange
class uses this when combining a Necrozma with a Lunala or Solgaleo.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(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.booleanisParticleWithinRadius(double x, double z, double posX, double posZ, double radius) Methods inherited from class com.pixelmonmod.pixelmon.client.particle.ParticleSystem
execute
-
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 aElectricparticle 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:
executein classParticleSystem- 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)
-