Class VortexEffect.Builder

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

public static final class VortexEffect.Builder extends Object
VortexEffect builder static inner class.
  • Field Details

    • inverted

      public boolean inverted
      Inverts the direction of the effect, making the particles appear from the max radius and end at the origin
  • Method Details

    • iterations

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

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

      public VortexEffect.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 VortexEffect.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
    • radius

      public VortexEffect.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
    • radiusGrow

      public VortexEffect.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
    • startRange

      public VortexEffect.Builder startRange(float startRange)
      Sets the startRange and returns a reference to this Builder enabling method chaining.
      Parameters:
      startRange - the startRange to set
      Returns:
      a reference to this Builder
    • lengthGrow

      public VortexEffect.Builder lengthGrow(float lengthGrow)
      Sets the lengthGrow and returns a reference to this Builder enabling method chaining.
      Parameters:
      lengthGrow - the lengthGrow to set
      Returns:
      a reference to this Builder
    • radials

      public VortexEffect.Builder radials(double radials)
      Sets the radials and returns a reference to this Builder enabling method chaining.
      Parameters:
      radials - the radials to set
      Returns:
      a reference to this Builder
    • circles

      public VortexEffect.Builder circles(int circles)
      Sets the circles and returns a reference to this Builder enabling method chaining.
      Parameters:
      circles - the circles to set
      Returns:
      a reference to this Builder
    • helixes

      public VortexEffect.Builder helixes(int helixes)
      Sets the helixes and returns a reference to this Builder enabling method chaining.
      Parameters:
      helixes - the helixes to set
      Returns:
      a reference to this Builder
    • flipped

      public VortexEffect.Builder flipped(boolean flipped)
      Sets the flipped and returns a reference to this Builder enabling method chaining.
      Parameters:
      flipped - the inverted to set
      Returns:
      a reference to this Builder
    • inverted

      public VortexEffect.Builder inverted(boolean inverted)
      Sets the inverted and returns a reference to this Builder enabling method chaining.
      Parameters:
      inverted - the inverted to set
      Returns:
      a reference to this Builder
    • yawOffset

      public VortexEffect.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 VortexEffect.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 VortexEffect.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 VortexEffect.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 VortexEffect.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 VortexEffect build()
      Returns a VortexEffect built from the parameters previously set.
      Returns:
      a VortexEffect built with parameters of this VortexEffect.Builder
    • shouldLimitParticlesEveryNIterations

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

      public VortexEffect.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
    • shouldLimitParticlesSpawnedPerIteration

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

      public VortexEffect.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
    • shouldSpawnParticlesEveryNIteration

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

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