Class DonutEffect.Builder
java.lang.Object
me.emafire003.dev.particleanimationlib.effects.DonutEffect.Builder
- Enclosing class:
DonutEffect
DonutEffect builder static inner class.-
Field Summary
FieldsModifier and TypeFieldDescriptionintAmount of circles to build the torusintIncrease the amount of circles making up the donutintIncreases the number of circles bycircleIncreaseonce every tot iterations By default it's 20 iterations, so once every secondintIncreases the number of particles per circle byparticlesCircleIncreaseonce every tot iterations By default it's 20 iterations, so once every secondintAmount of particles inside a single vertical circleintIncreases the amount of particles inside a single vertical circle this much each iterationfloatRadius of the torusfloatIncreases the donut radius this much each tickfloatRadius of the tube (the circles on the outside).floatIncreases the radius of the tube (the circles on the outside) this much each iterationnet.minecraft.util.math.Vec3dRotation of the torus. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Returns aDonutEffectbuilt from the parameters previously set.circles(int val) Sets thecirclesand returns a reference to this Builder enabling method chaining.circlesIncrease(int val) Sets thecirclesIncreaseand 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.forced(boolean forced) Sets theforcedand returns a reference to this Builder enabling method chaining.increaseCirclesEveryNIterations(int val) Sets theincreaseCirclesEveryNIterationsand returns a reference to this Builder enabling method chaining.Sets theincreaseParticlesCircleEveryNIterationsand 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.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.particle(net.minecraft.particle.ParticleEffect val) 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.particlesCircle(int val) Sets theparticlesCircleand returns a reference to this Builder enabling method chaining.particlesCircleIncrease(int val) Sets theparticlesCircleIncreaseand 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.radiusDonut(float val) Sets theradiusDonutand returns a reference to this Builder enabling method chaining.radiusDonutIncrease(float val) Sets theradiusDonutIncreaseand returns a reference to this Builder enabling method chaining.radiusTube(float val) Sets theradiusTubeand returns a reference to this Builder enabling method chaining.radiusTubeIncrease(float val) Sets theradiusTubeIncreaseand 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.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.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.
-
Field Details
-
particlesCircle
public int particlesCircleAmount of particles inside a single vertical circle -
circles
public int circlesAmount of circles to build the torus -
radiusDonut
public float radiusDonutRadius of the torus -
radiusTube
public float radiusTubeRadius of the tube (the circles on the outside). -
rotation
public net.minecraft.util.math.Vec3d rotationRotation of the torus. -
radiusDonutIncrease
public float radiusDonutIncreaseIncreases the donut radius this much each tick -
radiusTubeIncrease
public float radiusTubeIncreaseIncreases the radius of the tube (the circles on the outside) this much each iteration -
particlesCircleIncrease
public int particlesCircleIncreaseIncreases the amount of particles inside a single vertical circle this much each iteration -
circlesIncrease
public int circlesIncreaseIncrease the amount of circles making up the donut -
increaseCirclesEveryNIterations
public int increaseCirclesEveryNIterationsIncreases the number of circles bycircleIncreaseonce every tot iterations By default it's 20 iterations, so once every second -
increaseParticlesCircleEveryNIterations
public int increaseParticlesCircleEveryNIterationsIncreases the number of particles per circle byparticlesCircleIncreaseonce every tot iterations By default it's 20 iterations, so once every second
-
-
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
-
particle
Sets theparticleand returns a reference to this Builder enabling method chaining.- Parameters:
val- theparticleto 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
-
particlesCircle
Sets theparticlesCircleand returns a reference to this Builder enabling method chaining.- Parameters:
val- theparticlesCircleto set- Returns:
- a reference to this Builder
-
circles
Sets thecirclesand returns a reference to this Builder enabling method chaining.- Parameters:
val- thecirclesto set- Returns:
- a reference to this Builder
-
radiusDonut
Sets theradiusDonutand returns a reference to this Builder enabling method chaining.- Parameters:
val- theradiusDonutto set- Returns:
- a reference to this Builder
-
radiusTube
Sets theradiusTubeand returns a reference to this Builder enabling method chaining.- Parameters:
val- theradiusTubeto 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
-
radiusDonutIncrease
Sets theradiusDonutIncreaseand returns a reference to this Builder enabling method chaining.- Parameters:
val- theradiusDonutIncreaseto set- Returns:
- a reference to this Builder
-
radiusTubeIncrease
Sets theradiusTubeIncreaseand returns a reference to this Builder enabling method chaining.- Parameters:
val- theradiusTubeIncreaseto set- Returns:
- a reference to this Builder
-
particlesCircleIncrease
Sets theparticlesCircleIncreaseand returns a reference to this Builder enabling method chaining.- Parameters:
val- theparticlesCircleIncreaseto set- Returns:
- a reference to this Builder
-
circlesIncrease
Sets thecirclesIncreaseand returns a reference to this Builder enabling method chaining.- Parameters:
val- thecirclesIncreaseto set- Returns:
- a reference to this Builder
-
increaseCirclesEveryNIterations
Sets theincreaseCirclesEveryNIterationsand returns a reference to this Builder enabling method chaining.- Parameters:
val- theincreaseCirclesEveryNIterationsto set- Returns:
- a reference to this Builder
-
increaseParticlesCircleEveryNIterations
Sets theincreaseParticlesCircleEveryNIterationsand returns a reference to this Builder enabling method chaining.- Parameters:
val- theincreaseParticlesCircleEveryNIterationsto 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 aDonutEffectbuilt from the parameters previously set.- Returns:
- a
DonutEffectbuilt with parameters of thisDonutEffect.Builder
-