Class LineEffect.Builder
java.lang.Object
me.emafire003.dev.particleanimationlib.effects.LineEffect.Builder
- Enclosing class:
LineEffect
LineEffect builder static inner class.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Returns aLineEffectbuilt from the parameters previously set.entityOrigin(net.minecraft.entity.Entity entityOrigin) Sets theentityOriginand returns a reference to this Builder enabling method chaining.entityTarget(net.minecraft.entity.Entity entityTarget) Sets theentityTargetand returns a reference to this Builder enabling method chaining.executeOnStop(EffectModifier executeOnStop) Sets theexecuteOnStopand returns a reference to this Builder enabling method chaining.forced(boolean forced) Sets theforcedand returns a reference to this Builder enabling method chaining.isZigZag(boolean isZigZag) Sets theisZigZagand returns a reference to this Builder enabling method chaining.iterations(int iterations) Sets theiterationsand returns a reference to this Builder enabling method chaining.length(double length) Sets thelengthand returns a reference to this Builder enabling method chaining.limitParticlesEveryNIterations(int val) Sets thelimitParticlesEveryNIterationsand returns a reference to this Builder enabling method chaining.maxLength(double maxLength) Sets themaxLengthand 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.particle(net.minecraft.particle.ParticleEffect particle) Sets theparticleand returns a reference to this Builder enabling method chaining.particleLimit(int val) Sets theparticleLimitand returns a reference to this Builder enabling method chaining.particles(int particles) Sets theparticlesand 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.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 shouldUpdateYPR) 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.subEffectAtEnd(Effect subEffectAtEnd) Sets thesubEffectAtEndand returns a reference to this Builder enabling method chaining.targetOffset(net.minecraft.util.math.Vec3d targetOffset) Sets thetargetOffsetand returns a reference to this Builder enabling method chaining.targetPos(net.minecraft.util.math.Vec3d targetPos) Sets thetargetPosand returns a reference to this Builder enabling method chaining.updatePositions(boolean updatePositions) Sets theupdatePositionsand returns a reference to this Builder enabling method chaining.updateTargetPositions(boolean updateTargetPositions) Sets theupdateTargetPositionsand returns a reference to this Builder enabling method chaining.useEyePosAsOrigin(boolean useEyePos) Sets theuseEyePosAsOriginand returns a reference to this Builder enabling method chaining.useEyePosAsTarget(boolean useEyePos) Sets theuseEyePosAsTargetand 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.zigZagOffset(net.minecraft.util.math.Vec3d zigZagOffset) Sets thezigZagOffsetand returns a reference to this Builder enabling method chaining.zigZagRelativeOffset(net.minecraft.util.math.Vec3d zigZagRelativeOffset) Sets thezigZagRelativeOffsetand returns a reference to this Builder enabling method chaining.zigZags(int zigZags) Sets thezigZagsand returns a reference to this Builder enabling method chaining.
-
Method Details
-
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
-
executeOnStop
Sets theexecuteOnStopand returns a reference to this Builder enabling method chaining.- Parameters:
executeOnStop- theexecuteOnStopto 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
-
useEyePosAsOrigin
Sets theuseEyePosAsOriginand returns a reference to this Builder enabling method chaining.- Parameters:
useEyePos- theuseEyePosAsOriginto set- Returns:
- a reference to this Builder
-
useEyePosAsTarget
Sets theuseEyePosAsTargetand returns a reference to this Builder enabling method chaining.- Parameters:
useEyePos- theuseEyePosAsTargetto 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
-
world
Sets theworldand returns a reference to this Builder enabling method chaining.- Parameters:
world- theworldto set- Returns:
- a reference to this Builder
-
particle
Sets theparticleand returns a reference to this Builder enabling method chaining.- Parameters:
particle- theparticleto set- Returns:
- a reference to this Builder
-
isZigZag
Sets theisZigZagand returns a reference to this Builder enabling method chaining.- Parameters:
isZigZag- theisZigZagto set- Returns:
- a reference to this Builder
-
zigZags
Sets thezigZagsand returns a reference to this Builder enabling method chaining.- Parameters:
zigZags- thezigZagsto set- Returns:
- a reference to this Builder
-
zigZagOffset
Sets thezigZagOffsetand returns a reference to this Builder enabling method chaining.- Parameters:
zigZagOffset- thezigZagOffsetto set- Returns:
- a reference to this Builder
-
zigZagRelativeOffset
Sets thezigZagRelativeOffsetand returns a reference to this Builder enabling method chaining.- Parameters:
zigZagRelativeOffset- thezigZagRelativeOffsetto set- Returns:
- a reference to this Builder
-
particles
Sets theparticlesand returns a reference to this Builder enabling method chaining.- Parameters:
particles- theparticlesto set- Returns:
- a reference to this Builder
-
length
Sets thelengthand returns a reference to this Builder enabling method chaining.- Parameters:
length- thelengthto set- Returns:
- a reference to this Builder
-
maxLength
Sets themaxLengthand returns a reference to this Builder enabling method chaining.- Parameters:
maxLength- themaxLengthto set- Returns:
- a reference to this Builder
-
subEffectAtEnd
Sets thesubEffectAtEndand returns a reference to this Builder enabling method chaining.- Parameters:
subEffectAtEnd- thesubEffectAtEndto set- Returns:
- a reference to this Builder
-
targetPos
Sets thetargetPosand returns a reference to this Builder enabling method chaining.- Parameters:
targetPos- thetargetPosto set- Returns:
- a reference to this Builder
-
updateTargetPositions
Sets theupdateTargetPositionsand returns a reference to this Builder enabling method chaining.- Parameters:
updateTargetPositions- theupdateTargetPositionsto set- Returns:
- a reference to this Builder
-
entityTarget
Sets theentityTargetand returns a reference to this Builder enabling method chaining.- Parameters:
entityTarget- theentityTargetto set- Returns:
- a reference to this Builder
-
targetOffset
Sets thetargetOffsetand returns a reference to this Builder enabling method chaining.- Parameters:
targetOffset- thetargetOffsetto 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
-
build
Returns aLineEffectbuilt from the parameters previously set.- Returns:
- a
LineEffectbuilt with parameters of thisLineEffect.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
-
shouldLimitParticlesSpawnedPerIteration
Sets theshouldLimitParticlesSpawnedPerIterationand returns a reference to this Builder enabling method chaining.- Parameters:
val- theshouldLimitParticlesSpawnedPerIterationto 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
-
shouldSpawnParticlesEveryNIteration
Sets theshouldSpawnParticlesEveryNIterationand returns a reference to this Builder enabling method chaining.- Parameters:
val- theshouldSpawnParticlesEveryNIterationto 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
-