Class BlackAndWhiteImageEffect.Builder

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

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

    • fileId

      public BlackAndWhiteImageEffect.Builder fileId(net.minecraft.util.Identifier fileId)
      Sets the fileId and returns a reference to this Builder enabling method chaining. This will override any specified string filename
      Parameters:
      fileId - the fileId to set
      Returns:
      a reference to this Builder
    • iterations

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

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

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

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

      public BlackAndWhiteImageEffect.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
    • yawOffset

      public BlackAndWhiteImageEffect.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 BlackAndWhiteImageEffect.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 BlackAndWhiteImageEffect.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 BlackAndWhiteImageEffect.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 BlackAndWhiteImageEffect.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
    • fileName

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

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

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

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

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

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

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

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

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

      public BlackAndWhiteImageEffect.Builder orient(boolean orient)
      Sets the orient and returns a reference to this Builder enabling method chaining.
      Parameters:
      orient - 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:
      plane - the plane to set
      Returns:
      a reference to this Builder
    • angularVelocityX

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

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

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

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

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