Class ImageEffect.Builder

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

public static final class ImageEffect.Builder extends Object
ImageEffect builder static inner class.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • iterations

      public ImageEffect.Builder iterations(int val)
      Sets the iterations and returns a reference to this Builder enabling method chaining.
      Parameters:
      val - the iterations to set
      Returns:
      a reference to this Builder
    • originPos

      public ImageEffect.Builder originPos(net.minecraft.util.math.Vec3d val)
      Sets the originPos and returns a reference to this Builder enabling method chaining.
      Parameters:
      val - the originPos to set
      Returns:
      a reference to this Builder
    • updatePositions

      public ImageEffect.Builder updatePositions(boolean val)
      Sets the updatePositions and returns a reference to this Builder enabling method chaining.
      Parameters:
      val - the updatePositions to set
      Returns:
      a reference to this Builder
    • useEyePosAsOrigin

      public ImageEffect.Builder useEyePosAsOrigin(boolean val)
      Sets the useEyePosAsOrigin and returns a reference to this Builder enabling method chaining.
      Parameters:
      val - the useEyePosAsOrigin to set
      Returns:
      a reference to this Builder
    • entityOrigin

      public ImageEffect.Builder entityOrigin(net.minecraft.entity.Entity val)
      Sets the entityOrigin and returns a reference to this Builder enabling method chaining.
      Parameters:
      val - the entityOrigin to set
      Returns:
      a reference to this Builder
    • originOffset

      public ImageEffect.Builder originOffset(net.minecraft.util.math.Vec3d val)
      Sets the originOffset and returns a reference to this Builder enabling method chaining.
      Parameters:
      val - the originOffset to set
      Returns:
      a reference to this Builder
    • executeOnStop

      public ImageEffect.Builder executeOnStop(EffectModifier val)
      Sets the executeOnStop and returns a reference to this Builder enabling method chaining.
      Parameters:
      val - the executeOnStop to set
      Returns:
      a reference to this Builder
    • shouldSpawnParticlesEveryNIteration

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

      public ImageEffect.Builder world(net.minecraft.server.world.ServerWorld val)
      Sets the world and returns a reference to this Builder enabling method chaining.
      Parameters:
      val - the world to set
      Returns:
      a reference to this Builder
    • yawOffset

      public ImageEffect.Builder yawOffset(float val)
      Sets the yawOffset and returns a reference to this Builder enabling method chaining.
      Parameters:
      val - the yawOffset to set
      Returns:
      a reference to this Builder
    • pitchOffset

      public ImageEffect.Builder pitchOffset(float val)
      Sets the pitchOffset and returns a reference to this Builder enabling method chaining.
      Parameters:
      val - the pitchOffset to set
      Returns:
      a reference to this Builder
    • yaw

      public ImageEffect.Builder yaw(float val)
      Sets the yaw and returns a reference to this Builder enabling method chaining.
      Parameters:
      val - the yaw to set
      Returns:
      a reference to this Builder
    • pitch

      public ImageEffect.Builder pitch(float val)
      Sets the pitch and returns a reference to this Builder enabling method chaining.
      Parameters:
      val - the pitch to set
      Returns:
      a reference to this Builder
    • shouldUpdateYPR

      public ImageEffect.Builder shouldUpdateYPR(boolean val)
      Sets the shouldUpdateYPR and returns a reference to this Builder enabling method chaining.
      Parameters:
      val - the shouldUpdateYPR to set
      Returns:
      a reference to this Builder
    • fileName

      public ImageEffect.Builder fileName(String val)
      Sets the fileName and returns a reference to this Builder enabling method chaining.
      Parameters:
      val - the fileName to set
      Returns:
      a reference to this Builder
    • fileId

      public ImageEffect.Builder fileId(net.minecraft.util.Identifier val)
      Same as fileName but with an Identifier instead
      Parameters:
      val - the fileName to set
      Returns:
      a reference to this Builder
    • transparency

      public ImageEffect.Builder transparency(boolean val)
      Sets the transparency and returns a reference to this Builder enabling method chaining.
      Parameters:
      val - the transparency to set
      Returns:
      a reference to this Builder
    • frameDelay

      public ImageEffect.Builder frameDelay(int val)
      Sets the frameDelay and returns a reference to this Builder enabling method chaining.
      Parameters:
      val - the frameDelay to set
      Returns:
      a reference to this Builder
    • stepX

      public ImageEffect.Builder stepX(int val)
      Sets the stepX and returns a reference to this Builder enabling method chaining.
      Parameters:
      val - the stepX to set
      Returns:
      a reference to this Builder
    • stepY

      public ImageEffect.Builder stepY(int val)
      Sets the stepY and returns a reference to this Builder enabling method chaining.
      Parameters:
      val - the stepY to set
      Returns:
      a reference to this Builder
    • scale

      public ImageEffect.Builder scale(float val)
      Sets the scale and returns a reference to this Builder enabling method chaining.
      Parameters:
      val - the scale to set
      Returns:
      a reference to this Builder
    • particleSize

      public ImageEffect.Builder particleSize(float val)
      Sets the particleSize and returns a reference to this Builder enabling method chaining.
      Parameters:
      val - the particleSize to set
      Returns:
      a reference to this Builder
    • enableRotation

      public ImageEffect.Builder enableRotation(boolean val)
      Sets the enableRotation and returns a reference to this Builder enabling method chaining.
      Parameters:
      val - the enableRotation to set
      Returns:
      a reference to this Builder
    • rotation

      public ImageEffect.Builder rotation(net.minecraft.util.math.Vec3d val)
      Sets the rotation and returns a reference to this Builder enabling method chaining.
      Parameters:
      val - the rotation to set
      Returns:
      a reference to this Builder
    • orient

      public ImageEffect.Builder orient(boolean val)
      Sets the orient and returns a reference to this Builder enabling method chaining.
      Parameters:
      val - the orient to set
      Returns:
      a reference to this Builder
    • plane

      Sets the plane and returns a reference to this Builder enabling method chaining.
      Parameters:
      val - the plane to set
      Returns:
      a reference to this Builder
    • angularVelocityX

      public ImageEffect.Builder angularVelocityX(double val)
      Sets the angularVelocityX and returns a reference to this Builder enabling method chaining.
      Parameters:
      val - the angularVelocityX to set
      Returns:
      a reference to this Builder
    • angularVelocityY

      public ImageEffect.Builder angularVelocityY(double val)
      Sets the angularVelocityY and returns a reference to this Builder enabling method chaining.
      Parameters:
      val - the angularVelocityY to set
      Returns:
      a reference to this Builder
    • angularVelocityZ

      public ImageEffect.Builder angularVelocityZ(double val)
      Sets the angularVelocityZ and returns a reference to this Builder enabling method chaining.
      Parameters:
      val - the angularVelocityZ to set
      Returns:
      a reference to this Builder
    • blackAndWhite

      public ImageEffect.Builder blackAndWhite(boolean val)
      Sets the blackAndWhite and returns a reference to this Builder enabling method chaining.
      Parameters:
      val - the blackAndWhite to set
      Returns:
      a reference to this Builder
    • invertColors

      public ImageEffect.Builder invertColors(boolean val)
      Sets the invertColors and returns a reference to this Builder enabling method chaining.
      Parameters:
      val - the invertColors to set
      Returns:
      a reference to this Builder
    • forced

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

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