Class AnimatedBallEffect.Builder

java.lang.Object
me.emafire003.dev.particleanimationlib.effects.AnimatedBallEffect.Builder
Enclosing class:
AnimatedBallEffect

public static final class AnimatedBallEffect.Builder extends Object
AnimatedBallEffect builder static inner class.
  • Method Details

    • iterations

      public AnimatedBallEffect.Builder iterations(int iterations)
      Sets the iterations and returns a reference to this Builder enabling method chaining.
      Parameters:
      iterations - the iterations to set
      Returns:
      a reference to this Builder
    • originPos

      public AnimatedBallEffect.Builder originPos(net.minecraft.util.math.Vec3d originPos)
      Sets the originPos and returns a reference to this Builder enabling method chaining.
      Parameters:
      originPos - the originPos to set
      Returns:
      a reference to this Builder
    • forced

      public AnimatedBallEffect.Builder forced(boolean forced)
      Sets the forced and returns a reference to this Builder enabling method chaining.
      Parameters:
      forced - the forced to set
      Returns:
      a reference to this Builder
    • updatePositions

      public AnimatedBallEffect.Builder updatePositions(boolean updatePositions)
      Sets the updatePositions and returns a reference to this Builder enabling method chaining.
      Parameters:
      updatePositions - the updatePositions to set
      Returns:
      a reference to this Builder
    • useEyePosAsOrigin

      public AnimatedBallEffect.Builder useEyePosAsOrigin(boolean useEyePos)
      Sets the useEyePosAsOrigin and returns a reference to this Builder enabling method chaining.
      Parameters:
      useEyePos - the useEyePosAsOrigin to set
      Returns:
      a reference to this Builder
    • entityOrigin

      public AnimatedBallEffect.Builder entityOrigin(net.minecraft.entity.Entity entityOrigin)
      Sets the entityOrigin and returns a reference to this Builder enabling method chaining.
      Parameters:
      entityOrigin - the entityOrigin to set
      Returns:
      a reference to this Builder
    • originOffset

      public AnimatedBallEffect.Builder originOffset(net.minecraft.util.math.Vec3d originOffset)
      Sets the originOffset and returns a reference to this Builder enabling method chaining.
      Parameters:
      originOffset - the originOffset to set
      Returns:
      a reference to this Builder
    • world

      public AnimatedBallEffect.Builder world(net.minecraft.server.world.ServerWorld world)
      Sets the world and returns a reference to this Builder enabling method chaining.
      Parameters:
      world - the world to set
      Returns:
      a reference to this Builder
    • particle

      public AnimatedBallEffect.Builder particle(net.minecraft.particle.ParticleEffect particle)
      Sets the particle and returns a reference to this Builder enabling method chaining.
      Parameters:
      particle - the particle to set
      Returns:
      a reference to this Builder
    • particles

      public AnimatedBallEffect.Builder particles(int particles)
      Sets the particles and returns a reference to this Builder enabling method chaining.
      Parameters:
      particles - the particles to set
      Returns:
      a reference to this Builder
    • executeOnStop

      public AnimatedBallEffect.Builder executeOnStop(EffectModifier executeOnStop)
      Sets the executeOnStop and returns a reference to this Builder enabling method chaining.
      Parameters:
      executeOnStop - the executeOnStop to set
      Returns:
      a reference to this Builder
    • particlesPerIteration

      public AnimatedBallEffect.Builder particlesPerIteration(int particlesPerIteration)
      Sets the particlesPerIteration and returns a reference to this Builder enabling method chaining.
      Parameters:
      particlesPerIteration - the particlesPerIteration to set
      Returns:
      a reference to this Builder
    • size

      public AnimatedBallEffect.Builder size(float size)
      Sets the size and returns a reference to this Builder enabling method chaining.
      Parameters:
      size - the size to set
      Returns:
      a reference to this Builder
    • factor

      public AnimatedBallEffect.Builder factor(net.minecraft.util.math.Vec3d factor)
      Sets the factor and returns a reference to this Builder enabling method chaining.
      Parameters:
      factor - A Vec3d representing the xyz factors (aka xyz "strech" values) of the effect
      Returns:
      a reference to this Builder
    • rotation

      public AnimatedBallEffect.Builder rotation(net.minecraft.util.math.Vec3d rotation)
      Sets the rotation and returns a reference to this Builder enabling method chaining.
      Parameters:
      rotation - A Vec3d representing the xyz rotations to set to the effect
      Returns:
      a reference to this Builder
    • build

      public AnimatedBallEffect build()
      Returns a AnimatedBallEffect built from the parameters previously set.
      Returns:
      a AnimatedBallEffect built with parameters of this AnimatedBallEffect.Builder
    • spawnParticlesEveryNIteration

      public AnimatedBallEffect.Builder spawnParticlesEveryNIteration(int val)
      Sets the spawnParticlesEveryNIteration and returns a reference to this Builder enabling method chaining.
      Parameters:
      val - the spawnParticlesEveryNIteration to set
      Returns:
      a reference to this Builder
    • shouldLimitParticlesSpawnedPerIteration

      public AnimatedBallEffect.Builder shouldLimitParticlesSpawnedPerIteration(boolean val)
      Sets the shouldLimitParticlesSpawnedPerIteration and returns a reference to this Builder enabling method chaining.
      Parameters:
      val - the shouldLimitParticlesSpawnedPerIteration to set
      Returns:
      a reference to this Builder
    • shouldSpawnParticlesEveryNIteration

      public AnimatedBallEffect.Builder shouldSpawnParticlesEveryNIteration(boolean val)
      Sets the shouldSpawnParticlesEveryNIteration and returns a reference to this Builder enabling method chaining.
      Parameters:
      val - the shouldSpawnParticlesEveryNIteration to set
      Returns:
      a reference to this Builder
    • particleLimit

      public AnimatedBallEffect.Builder particleLimit(int val)
      Sets the particleLimit and returns a reference to this Builder enabling method chaining.
      Parameters:
      val - the particleLimit to set
      Returns:
      a reference to this Builder
    • shouldLimitParticlesEveryNIterations

      public AnimatedBallEffect.Builder shouldLimitParticlesEveryNIterations(boolean val)
      Sets the shouldLimitParticlesEveryNIterations and returns a reference to this Builder enabling method chaining.
      Parameters:
      val - the shouldLimitParticlesEveryNIterations to set
      Returns:
      a reference to this Builder
    • limitParticlesEveryNIterations

      public AnimatedBallEffect.Builder limitParticlesEveryNIterations(int val)
      Sets the limitParticlesEveryNIterations and returns a reference to this Builder enabling method chaining.
      Parameters:
      val - the limitParticlesEveryNIterations to set
      Returns:
      a reference to this Builder