Class AnimatedCircleEffect.Builder

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

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

    • iterations

      public AnimatedCircleEffect.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 AnimatedCircleEffect.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
    • updatePositions

      public AnimatedCircleEffect.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
    • entityOrigin

      public AnimatedCircleEffect.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
    • useEyePosAsOrigin

      public AnimatedCircleEffect.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
    • originOffset

      public AnimatedCircleEffect.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
    • executeOnStop

      public AnimatedCircleEffect.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
    • world

      public AnimatedCircleEffect.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 AnimatedCircleEffect.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
    • rotations

      public AnimatedCircleEffect.Builder rotations(net.minecraft.util.math.Vec3d rotation)
      Sets the rotations 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
    • angularVelocityX

      public AnimatedCircleEffect.Builder angularVelocityX(double angularVelocityX)
      Sets the angularVelocityX and returns a reference to this Builder enabling method chaining.
      Parameters:
      angularVelocityX - the angularVelocityX to set
      Returns:
      a reference to this Builder
    • angularVelocityY

      public AnimatedCircleEffect.Builder angularVelocityY(double angularVelocityY)
      Sets the angularVelocityY and returns a reference to this Builder enabling method chaining.
      Parameters:
      angularVelocityY - the angularVelocityY to set
      Returns:
      a reference to this Builder
    • angularVelocityZ

      public AnimatedCircleEffect.Builder angularVelocityZ(double angularVelocityZ)
      Sets the angularVelocityY and returns a reference to this Builder enabling method chaining.
      Parameters:
      angularVelocityZ - the angularVelocityY to set
      Returns:
      a reference to this Builder
    • radius

      public AnimatedCircleEffect.Builder radius(float radius)
      Sets the radius and returns a reference to this Builder enabling method chaining.
      Parameters:
      radius - the radius to set
      Returns:
      a reference to this Builder
    • maxAngle

      public AnimatedCircleEffect.Builder maxAngle(double maxAngle)
      Sets the maxAngle and returns a reference to this Builder enabling method chaining.
      Parameters:
      maxAngle - the maxAngle to set
      Returns:
      a reference to this Builder
    • resetCircle

      public AnimatedCircleEffect.Builder resetCircle(boolean resetCircle)
      Sets the resetCircle and returns a reference to this Builder enabling method chaining.
      Parameters:
      resetCircle - the resetCircle to set
      Returns:
      a reference to this Builder
    • enableRotation

      public AnimatedCircleEffect.Builder enableRotation(boolean enableRotation)
      Sets the enableRotation and returns a reference to this Builder enabling method chaining.
      Parameters:
      enableRotation - the enableRotation to set
      Returns:
      a reference to this Builder
    • particles

      public AnimatedCircleEffect.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
    • wholeCircle

      public AnimatedCircleEffect.Builder wholeCircle(boolean wholeCircle)
      Sets the wholeCircle and returns a reference to this Builder enabling method chaining.
      Parameters:
      wholeCircle - the wholeCircle to set
      Returns:
      a reference to this Builder
    • radiusGrow

      public AnimatedCircleEffect.Builder radiusGrow(float radiusGrow)
      Sets the radiusGrow and returns a reference to this Builder enabling method chaining.
      Parameters:
      radiusGrow - the radiusGrow to set
      Returns:
      a reference to this Builder
    • yawOffset

      public AnimatedCircleEffect.Builder yawOffset(float yawOffset)
      Sets the yawOffset and returns a reference to this Builder enabling method chaining.
      Parameters:
      yawOffset - the yawOffset to set
      Returns:
      a reference to this Builder
    • pitchOffset

      public AnimatedCircleEffect.Builder pitchOffset(float pitchOffset)
      Sets the pitchOffset and returns a reference to this Builder enabling method chaining.
      Parameters:
      pitchOffset - the pitchOffset to set
      Returns:
      a reference to this Builder
    • yaw

      public AnimatedCircleEffect.Builder yaw(float yaw)
      Sets the yaw and returns a reference to this Builder enabling method chaining.
      Parameters:
      yaw - the yaw to set
      Returns:
      a reference to this Builder
    • pitch

      public AnimatedCircleEffect.Builder pitch(float pitch)
      Sets the pitch and returns a reference to this Builder enabling method chaining.
      Parameters:
      pitch - the pitch to set
      Returns:
      a reference to this Builder
    • shouldUpdateYPR

      public AnimatedCircleEffect.Builder shouldUpdateYPR(boolean shouldUpdateYPR)
      Sets the shouldUpdateYPR and returns a reference to this Builder enabling method chaining.
      Parameters:
      shouldUpdateYPR - the shouldUpdateYPR to set
      Returns:
      a reference to this Builder
    • build

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

      public AnimatedCircleEffect.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
    • spawnParticlesEveryNIteration

      public AnimatedCircleEffect.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 AnimatedCircleEffect.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
    • particleLimit

      public AnimatedCircleEffect.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 AnimatedCircleEffect.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 AnimatedCircleEffect.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
    • forced

      public AnimatedCircleEffect.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