Class BlackAndWhiteImageEffect.Builder
java.lang.Object
me.emafire003.dev.particleanimationlib.effects.image.BlackAndWhiteImageEffect.Builder
- Enclosing class:
BlackAndWhiteImageEffect
BlackAndWhiteImageEffect builder static inner class.-
Method Summary
Modifier and TypeMethodDescriptionangularVelocityX(double angularVelocityX) Sets theangularVelocityXand returns a reference to this Builder enabling method chaining.angularVelocityY(double angularVelocityY) Sets theangularVelocityYand returns a reference to this Builder enabling method chaining.angularVelocityZ(double angularVelocityZ) Sets theangularVelocityZand returns a reference to this Builder enabling method chaining.build()Returns aBlackAndWhiteImageEffectbuilt from the parameters previously set.enableRotation(boolean enableRotation) Sets theenableRotationand returns a reference to this Builder enabling method chaining.entityOrigin(net.minecraft.entity.Entity entityOrigin) Sets theentityOriginand returns a reference to this Builder enabling method chaining.executeOnStop(EffectModifier executeOnStop) Sets theexecuteOnStopand returns a reference to this Builder enabling method chaining.fileId(net.minecraft.util.Identifier fileId) Sets thefileIdand returns a reference to this Builder enabling method chaining.Sets thefileNameand returns a reference to this Builder enabling method chaining.frameDelay(int frameDelay) Sets theframeDelayand returns a reference to this Builder enabling method chaining.invert(boolean invert) Sets theinvertand returns a reference to this Builder enabling method chaining.iterations(int iterations) Sets theiterationsand returns a reference to this Builder enabling method chaining.orient(boolean orient) Sets theorientand returns a reference to this Builder enabling method chaining.originOffset(net.minecraft.util.math.Vec3d originOffset) Sets theoriginOffsetand returns a reference to this Builder enabling method chaining.originPos(net.minecraft.util.math.Vec3d originPos) Sets theoriginPosand returns a reference to this Builder enabling method chaining.particleSize(float particleSize) Sets theparticleSizeand returns a reference to this Builder enabling method chaining.pitch(float pitch) Sets thepitchand returns a reference to this Builder enabling method chaining.pitchOffset(float pitchOffset) Sets thepitchOffsetand returns a reference to this Builder enabling method chaining.plane(BaseImageEffect.Plane plane) Sets theplaneand returns a reference to this Builder enabling method chaining.rotation(net.minecraft.util.math.Vec3d rotation) Sets therotationand returns a reference to this Builder enabling method chaining.scale(float scale) Sets thescaleand returns a reference to this Builder enabling method chaining.shouldUpdateYPR(boolean shouldUpdateYPR) Sets theshouldUpdateYPRand returns a reference to this Builder enabling method chaining.stepX(int stepX) Sets thestepXand returns a reference to this Builder enabling method chaining.stepY(int stepY) Sets thestepYand returns a reference to this Builder enabling method chaining.transparency(boolean transparency) Sets thetransparencyand returns a reference to this Builder enabling method chaining.updatePositions(boolean updatePositions) Sets theupdatePositionsand returns a reference to this Builder enabling method chaining.useEyePosAsOrigin(boolean useEyePosAsOrigin) Sets theuseEyePosAsOriginand returns a reference to this Builder enabling method chaining.world(net.minecraft.server.world.ServerWorld world) Sets theworldand returns a reference to this Builder enabling method chaining.yaw(float yaw) Sets theyawand returns a reference to this Builder enabling method chaining.yawOffset(float yawOffset) Sets theyawOffsetand returns a reference to this Builder enabling method chaining.
-
Method Details
-
fileId
Sets thefileIdand returns a reference to this Builder enabling method chaining. This will override any specified string filename- Parameters:
fileId- thefileIdto set- Returns:
- a reference to this Builder
-
iterations
Sets theiterationsand returns a reference to this Builder enabling method chaining.- Parameters:
iterations- theiterationsto set- Returns:
- a reference to this Builder
-
originPos
Sets theoriginPosand returns a reference to this Builder enabling method chaining.- Parameters:
originPos- theoriginPosto set- Returns:
- a reference to this Builder
-
updatePositions
Sets theupdatePositionsand returns a reference to this Builder enabling method chaining.- Parameters:
updatePositions- theupdatePositionsto set- Returns:
- a reference to this Builder
-
useEyePosAsOrigin
Sets theuseEyePosAsOriginand returns a reference to this Builder enabling method chaining.- Parameters:
useEyePosAsOrigin- theuseEyePosAsOriginto set- Returns:
- a reference to this Builder
-
entityOrigin
Sets theentityOriginand returns a reference to this Builder enabling method chaining.- Parameters:
entityOrigin- theentityOriginto set- Returns:
- a reference to this Builder
-
originOffset
Sets theoriginOffsetand returns a reference to this Builder enabling method chaining.- Parameters:
originOffset- theoriginOffsetto set- Returns:
- a reference to this Builder
-
executeOnStop
Sets theexecuteOnStopand returns a reference to this Builder enabling method chaining.- Parameters:
executeOnStop- theexecuteOnStopto set- Returns:
- a reference to this Builder
-
world
Sets theworldand returns a reference to this Builder enabling method chaining.- Parameters:
world- theworldto set- Returns:
- a reference to this Builder
-
yawOffset
Sets theyawOffsetand returns a reference to this Builder enabling method chaining.- Parameters:
yawOffset- theyawOffsetto set- Returns:
- a reference to this Builder
-
pitchOffset
Sets thepitchOffsetand returns a reference to this Builder enabling method chaining.- Parameters:
pitchOffset- thepitchOffsetto set- Returns:
- a reference to this Builder
-
yaw
Sets theyawand returns a reference to this Builder enabling method chaining.- Parameters:
yaw- theyawto set- Returns:
- a reference to this Builder
-
pitch
Sets thepitchand returns a reference to this Builder enabling method chaining.- Parameters:
pitch- thepitchto set- Returns:
- a reference to this Builder
-
shouldUpdateYPR
Sets theshouldUpdateYPRand returns a reference to this Builder enabling method chaining.- Parameters:
shouldUpdateYPR- theshouldUpdateYPRto set- Returns:
- a reference to this Builder
-
fileName
Sets thefileNameand returns a reference to this Builder enabling method chaining.- Parameters:
fileName- thefileNameto set- Returns:
- a reference to this Builder
-
transparency
Sets thetransparencyand returns a reference to this Builder enabling method chaining.- Parameters:
transparency- thetransparencyto set- Returns:
- a reference to this Builder
-
frameDelay
Sets theframeDelayand returns a reference to this Builder enabling method chaining.- Parameters:
frameDelay- theframeDelayto set- Returns:
- a reference to this Builder
-
stepX
Sets thestepXand returns a reference to this Builder enabling method chaining.- Parameters:
stepX- thestepXto set- Returns:
- a reference to this Builder
-
stepY
Sets thestepYand returns a reference to this Builder enabling method chaining.- Parameters:
stepY- thestepYto set- Returns:
- a reference to this Builder
-
scale
Sets thescaleand returns a reference to this Builder enabling method chaining.- Parameters:
scale- thescaleto set- Returns:
- a reference to this Builder
-
particleSize
Sets theparticleSizeand returns a reference to this Builder enabling method chaining.- Parameters:
particleSize- theparticleSizeto set- Returns:
- a reference to this Builder
-
enableRotation
Sets theenableRotationand returns a reference to this Builder enabling method chaining.- Parameters:
enableRotation- theenableRotationto set- Returns:
- a reference to this Builder
-
rotation
Sets therotationand returns a reference to this Builder enabling method chaining.- Parameters:
rotation- therotationto set- Returns:
- a reference to this Builder
-
orient
Sets theorientand returns a reference to this Builder enabling method chaining.- Parameters:
orient- theorientto set- Returns:
- a reference to this Builder
-
plane
Sets theplaneand returns a reference to this Builder enabling method chaining.- Parameters:
plane- theplaneto set- Returns:
- a reference to this Builder
-
angularVelocityX
Sets theangularVelocityXand returns a reference to this Builder enabling method chaining.- Parameters:
angularVelocityX- theangularVelocityXto set- Returns:
- a reference to this Builder
-
angularVelocityY
Sets theangularVelocityYand returns a reference to this Builder enabling method chaining.- Parameters:
angularVelocityY- theangularVelocityYto set- Returns:
- a reference to this Builder
-
angularVelocityZ
Sets theangularVelocityZand returns a reference to this Builder enabling method chaining.- Parameters:
angularVelocityZ- theangularVelocityZto set- Returns:
- a reference to this Builder
-
invert
Sets theinvertand returns a reference to this Builder enabling method chaining.- Parameters:
invert- theinvertto set- Returns:
- a reference to this Builder
-
build
Returns aBlackAndWhiteImageEffectbuilt from the parameters previously set.- Returns:
- a
BlackAndWhiteImageEffectbuilt with parameters of thisBlackAndWhiteImageEffect.Builder
-