Class SphereEffect.Builder

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

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

    • halfSphere

      public boolean halfSphere
      Should it display as an half sphere?
    • invertHalfSphere

      public boolean invertHalfSphere
      If it is an half sphere, should it be inverted the other way around? Like upside down
  • Method Details

    • iterations

      public SphereEffect.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 SphereEffect.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 SphereEffect.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 SphereEffect.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 SphereEffect.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 SphereEffect.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 SphereEffect.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 SphereEffect.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 SphereEffect.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 SphereEffect.Builder radius(double 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
    • particles

      public SphereEffect.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
    • radiusIncrease

      public SphereEffect.Builder radiusIncrease(double radiusIncrease)
      Sets the radiusIncrease and returns a reference to this Builder enabling method chaining.
      Parameters:
      radiusIncrease - the radiusIncrease to set
      Returns:
      a reference to this Builder
    • particleIncrease

      public SphereEffect.Builder particleIncrease(int particleIncrease)
      Sets the particleIncrease and returns a reference to this Builder enabling method chaining.
      Parameters:
      particleIncrease - the particleIncrease to set
      Returns:
      a reference to this Builder
    • halfSphere

      public SphereEffect.Builder halfSphere(boolean halfSphere)
      Sets the halfSphere and returns a reference to this Builder enabling method chaining.
      Parameters:
      halfSphere - the halfSphere to set
      Returns:
      a reference to this Builder
    • invertHalfSphere

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

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

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