Class LineEffect.Builder

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

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

    • iterations

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

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

      public LineEffect.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 LineEffect.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
    • useEyePosAsTarget

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

      public LineEffect.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 LineEffect.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 LineEffect.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
    • isZigZag

      public LineEffect.Builder isZigZag(boolean isZigZag)
      Sets the isZigZag and returns a reference to this Builder enabling method chaining.
      Parameters:
      isZigZag - the isZigZag to set
      Returns:
      a reference to this Builder
    • zigZags

      public LineEffect.Builder zigZags(int zigZags)
      Sets the zigZags and returns a reference to this Builder enabling method chaining.
      Parameters:
      zigZags - the zigZags to set
      Returns:
      a reference to this Builder
    • zigZagOffset

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

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

      public LineEffect.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
    • length

      public LineEffect.Builder length(double length)
      Sets the length and returns a reference to this Builder enabling method chaining.
      Parameters:
      length - the length to set
      Returns:
      a reference to this Builder
    • maxLength

      public LineEffect.Builder maxLength(double maxLength)
      Sets the maxLength and returns a reference to this Builder enabling method chaining.
      Parameters:
      maxLength - the maxLength to set
      Returns:
      a reference to this Builder
    • subEffectAtEnd

      public LineEffect.Builder subEffectAtEnd(Effect subEffectAtEnd)
      Sets the subEffectAtEnd and returns a reference to this Builder enabling method chaining.
      Parameters:
      subEffectAtEnd - the subEffectAtEnd to set
      Returns:
      a reference to this Builder
    • targetPos

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

      public LineEffect.Builder updateTargetPositions(boolean updateTargetPositions)
      Sets the updateTargetPositions and returns a reference to this Builder enabling method chaining.
      Parameters:
      updateTargetPositions - the updateTargetPositions to set
      Returns:
      a reference to this Builder
    • entityTarget

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

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

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

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

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