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

public class Beam extends ParticleEffect
Uses the beam from a beacon block to render the light that a Poké Ball emits when sending out and retrieving a Pokémon.
  • Constructor Details

    • Beam

      public Beam(PokeBallEntity start, net.minecraft.world.phys.Vec3 end, float startLength, int extensionDuration, int fullLengthDuration, int retractionDuration)
  • 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.