Class CuboidEffect.Builder

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

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

    • iterations

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

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

      public CuboidEffect.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 CuboidEffect.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 CuboidEffect.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
    • xLength

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

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

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

      public CuboidEffect.Builder xLength(net.minecraft.util.math.Vec3d lengths)
      Sets the lenghts and returns a reference to this Builder enabling method chaining.
      Parameters:
      lengths - A Vec3d of the xyz lengths to set
      Returns:
      a reference to this Builder
    • padding

      public CuboidEffect.Builder padding(double padding)
      Sets the padding and returns a reference to this Builder enabling method chaining.
      Parameters:
      padding - the padding to set
      Returns:
      a reference to this Builder
    • blockSnap

      public CuboidEffect.Builder blockSnap(boolean blockSnap)
      Sets the blockSnap and returns a reference to this Builder enabling method chaining.
      Parameters:
      blockSnap - the blockSnap to set
      Returns:
      a reference to this Builder
    • targetPos

      public CuboidEffect.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 CuboidEffect.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 CuboidEffect.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 CuboidEffect.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
    • build

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

      public CuboidEffect.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 CuboidEffect.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 CuboidEffect.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 CuboidEffect.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
    • shouldLimitParticlesEveryNIterations

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