Class ImageEffect.Builder
java.lang.Object
me.emafire003.dev.particleanimationlib.effects.ImageEffect.Builder
- Enclosing class:
ImageEffect
ImageEffect builder static inner class.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionangularVelocityX(double val) Sets theangularVelocityXand returns a reference to this Builder enabling method chaining.angularVelocityY(double val) Sets theangularVelocityYand returns a reference to this Builder enabling method chaining.angularVelocityZ(double val) Sets theangularVelocityZand returns a reference to this Builder enabling method chaining.blackAndWhite(boolean val) Sets theblackAndWhiteand returns a reference to this Builder enabling method chaining.build()Returns aImageEffectbuilt from the parameters previously set.enableRotation(boolean val) Sets theenableRotationand returns a reference to this Builder enabling method chaining.entityOrigin(net.minecraft.entity.Entity val) Sets theentityOriginand returns a reference to this Builder enabling method chaining.Sets theexecuteOnStopand returns a reference to this Builder enabling method chaining.fileId(net.minecraft.util.Identifier val) Same as fileName but with an Identifier insteadSets thefileNameand returns a reference to this Builder enabling method chaining.forced(boolean forced) Sets theforcedand returns a reference to this Builder enabling method chaining.frameDelay(int val) Sets theframeDelayand returns a reference to this Builder enabling method chaining.invertColors(boolean val) Sets theinvertColorsand returns a reference to this Builder enabling method chaining.iterations(int val) Sets theiterationsand returns a reference to this Builder enabling method chaining.limitParticlesEveryNIterations(int val) Sets thelimitParticlesEveryNIterationsand returns a reference to this Builder enabling method chaining.orient(boolean val) Sets theorientand returns a reference to this Builder enabling method chaining.originOffset(net.minecraft.util.math.Vec3d val) Sets theoriginOffsetand returns a reference to this Builder enabling method chaining.originPos(net.minecraft.util.math.Vec3d val) Sets theoriginPosand returns a reference to this Builder enabling method chaining.particleLimit(int val) Sets theparticleLimitand returns a reference to this Builder enabling method chaining.particleSize(float val) Sets theparticleSizeand returns a reference to this Builder enabling method chaining.pitch(float val) Sets thepitchand returns a reference to this Builder enabling method chaining.pitchOffset(float val) Sets thepitchOffsetand returns a reference to this Builder enabling method chaining.plane(ImageEffect.Plane val) Sets theplaneand returns a reference to this Builder enabling method chaining.rotation(net.minecraft.util.math.Vec3d val) Sets therotationand returns a reference to this Builder enabling method chaining.scale(float val) Sets thescaleand returns a reference to this Builder enabling method chaining.shouldLimitParticlesEveryNIterations(boolean val) Sets theshouldLimitParticlesEveryNIterationsand returns a reference to this Builder enabling method chaining.shouldLimitParticlesSpawnedPerIteration(boolean val) Sets theshouldLimitParticlesSpawnedPerIterationand returns a reference to this Builder enabling method chaining.shouldSpawnParticlesEveryNIteration(boolean val) Sets theshouldSpawnParticlesEveryNIterationand returns a reference to this Builder enabling method chaining.shouldUpdateYPR(boolean val) Sets theshouldUpdateYPRand returns a reference to this Builder enabling method chaining.spawnParticlesEveryNIteration(int val) Sets thespawnParticlesEveryNIterationand returns a reference to this Builder enabling method chaining.stepX(int val) Sets thestepXand returns a reference to this Builder enabling method chaining.stepY(int val) Sets thestepYand returns a reference to this Builder enabling method chaining.transparency(boolean val) Sets thetransparencyand returns a reference to this Builder enabling method chaining.updatePositions(boolean val) Sets theupdatePositionsand returns a reference to this Builder enabling method chaining.useEyePosAsOrigin(boolean val) Sets theuseEyePosAsOriginand returns a reference to this Builder enabling method chaining.world(net.minecraft.server.world.ServerWorld val) Sets theworldand returns a reference to this Builder enabling method chaining.yaw(float val) Sets theyawand returns a reference to this Builder enabling method chaining.yawOffset(float val) Sets theyawOffsetand returns a reference to this Builder enabling method chaining.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
iterations
Sets theiterationsand returns a reference to this Builder enabling method chaining.- Parameters:
val- theiterationsto set- Returns:
- a reference to this Builder
-
originPos
Sets theoriginPosand returns a reference to this Builder enabling method chaining.- Parameters:
val- theoriginPosto set- Returns:
- a reference to this Builder
-
updatePositions
Sets theupdatePositionsand returns a reference to this Builder enabling method chaining.- Parameters:
val- theupdatePositionsto set- Returns:
- a reference to this Builder
-
useEyePosAsOrigin
Sets theuseEyePosAsOriginand returns a reference to this Builder enabling method chaining.- Parameters:
val- theuseEyePosAsOriginto set- Returns:
- a reference to this Builder
-
entityOrigin
Sets theentityOriginand returns a reference to this Builder enabling method chaining.- Parameters:
val- theentityOriginto set- Returns:
- a reference to this Builder
-
originOffset
Sets theoriginOffsetand returns a reference to this Builder enabling method chaining.- Parameters:
val- theoriginOffsetto set- Returns:
- a reference to this Builder
-
executeOnStop
Sets theexecuteOnStopand returns a reference to this Builder enabling method chaining.- Parameters:
val- theexecuteOnStopto set- Returns:
- a reference to this Builder
-
shouldSpawnParticlesEveryNIteration
Sets theshouldSpawnParticlesEveryNIterationand returns a reference to this Builder enabling method chaining.- Parameters:
val- theshouldSpawnParticlesEveryNIterationto set- Returns:
- a reference to this Builder
-
spawnParticlesEveryNIteration
Sets thespawnParticlesEveryNIterationand returns a reference to this Builder enabling method chaining.- Parameters:
val- thespawnParticlesEveryNIterationto set- Returns:
- a reference to this Builder
-
shouldLimitParticlesSpawnedPerIteration
Sets theshouldLimitParticlesSpawnedPerIterationand returns a reference to this Builder enabling method chaining.- Parameters:
val- theshouldLimitParticlesSpawnedPerIterationto set- Returns:
- a reference to this Builder
-
particleLimit
Sets theparticleLimitand returns a reference to this Builder enabling method chaining.- Parameters:
val- theparticleLimitto set- Returns:
- a reference to this Builder
-
shouldLimitParticlesEveryNIterations
Sets theshouldLimitParticlesEveryNIterationsand returns a reference to this Builder enabling method chaining.- Parameters:
val- theshouldLimitParticlesEveryNIterationsto set- Returns:
- a reference to this Builder
-
limitParticlesEveryNIterations
Sets thelimitParticlesEveryNIterationsand returns a reference to this Builder enabling method chaining.- Parameters:
val- thelimitParticlesEveryNIterationsto set- Returns:
- a reference to this Builder
-
world
Sets theworldand returns a reference to this Builder enabling method chaining.- Parameters:
val- theworldto set- Returns:
- a reference to this Builder
-
yawOffset
Sets theyawOffsetand returns a reference to this Builder enabling method chaining.- Parameters:
val- theyawOffsetto set- Returns:
- a reference to this Builder
-
pitchOffset
Sets thepitchOffsetand returns a reference to this Builder enabling method chaining.- Parameters:
val- thepitchOffsetto set- Returns:
- a reference to this Builder
-
yaw
Sets theyawand returns a reference to this Builder enabling method chaining.- Parameters:
val- theyawto set- Returns:
- a reference to this Builder
-
pitch
Sets thepitchand returns a reference to this Builder enabling method chaining.- Parameters:
val- thepitchto set- Returns:
- a reference to this Builder
-
shouldUpdateYPR
Sets theshouldUpdateYPRand returns a reference to this Builder enabling method chaining.- Parameters:
val- theshouldUpdateYPRto set- Returns:
- a reference to this Builder
-
fileName
Sets thefileNameand returns a reference to this Builder enabling method chaining.- Parameters:
val- thefileNameto set- Returns:
- a reference to this Builder
-
fileId
Same as fileName but with an Identifier instead- Parameters:
val- thefileNameto set- Returns:
- a reference to this Builder
-
transparency
Sets thetransparencyand returns a reference to this Builder enabling method chaining.- Parameters:
val- thetransparencyto set- Returns:
- a reference to this Builder
-
frameDelay
Sets theframeDelayand returns a reference to this Builder enabling method chaining.- Parameters:
val- theframeDelayto set- Returns:
- a reference to this Builder
-
stepX
Sets thestepXand returns a reference to this Builder enabling method chaining.- Parameters:
val- thestepXto set- Returns:
- a reference to this Builder
-
stepY
Sets thestepYand returns a reference to this Builder enabling method chaining.- Parameters:
val- thestepYto set- Returns:
- a reference to this Builder
-
scale
Sets thescaleand returns a reference to this Builder enabling method chaining.- Parameters:
val- thescaleto set- Returns:
- a reference to this Builder
-
particleSize
Sets theparticleSizeand returns a reference to this Builder enabling method chaining.- Parameters:
val- theparticleSizeto set- Returns:
- a reference to this Builder
-
enableRotation
Sets theenableRotationand returns a reference to this Builder enabling method chaining.- Parameters:
val- theenableRotationto set- Returns:
- a reference to this Builder
-
rotation
Sets therotationand returns a reference to this Builder enabling method chaining.- Parameters:
val- therotationto set- Returns:
- a reference to this Builder
-
orient
Sets theorientand returns a reference to this Builder enabling method chaining.- Parameters:
val- theorientto set- Returns:
- a reference to this Builder
-
plane
Sets theplaneand returns a reference to this Builder enabling method chaining.- Parameters:
val- theplaneto set- Returns:
- a reference to this Builder
-
angularVelocityX
Sets theangularVelocityXand returns a reference to this Builder enabling method chaining.- Parameters:
val- theangularVelocityXto set- Returns:
- a reference to this Builder
-
angularVelocityY
Sets theangularVelocityYand returns a reference to this Builder enabling method chaining.- Parameters:
val- theangularVelocityYto set- Returns:
- a reference to this Builder
-
angularVelocityZ
Sets theangularVelocityZand returns a reference to this Builder enabling method chaining.- Parameters:
val- theangularVelocityZto set- Returns:
- a reference to this Builder
-
blackAndWhite
Sets theblackAndWhiteand returns a reference to this Builder enabling method chaining.- Parameters:
val- theblackAndWhiteto set- Returns:
- a reference to this Builder
-
invertColors
Sets theinvertColorsand returns a reference to this Builder enabling method chaining.- Parameters:
val- theinvertColorsto set- Returns:
- a reference to this Builder
-
forced
Sets theforcedand returns a reference to this Builder enabling method chaining.- Parameters:
forced- theforcedto set- Returns:
- a reference to this Builder
-
build
Returns aImageEffectbuilt from the parameters previously set.- Returns:
- a
ImageEffectbuilt with parameters of thisImageEffect.Builder
-