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

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