Class SphereEffect.Builder
java.lang.Object
me.emafire003.dev.particleanimationlib.effects.SphereEffect.Builder
- Enclosing class:
SphereEffect
SphereEffect builder static inner class.-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanShould it display as an half sphere?booleanIf it is an half sphere, should it be inverted the other way around? -
Method Summary
Modifier and TypeMethodDescriptionbuild()Returns aSphereEffectbuilt from the parameters previously set.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.forced(boolean forced) Sets theforcedand returns a reference to this Builder enabling method chaining.halfSphere(boolean halfSphere) Sets thehalfSphereand returns a reference to this Builder enabling method chaining.invertHalfSphere(boolean invertHalfSphere) Sets theinvertHalfSphereand returns a reference to this Builder enabling method chaining.iterations(int iterations) 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 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.particleIncrease(int particleIncrease) Sets theparticleIncreaseand 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.radius(double radius) Sets theradiusand returns a reference to this Builder enabling method chaining.radiusIncrease(double radiusIncrease) Sets theradiusIncreaseand 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.spawnParticlesEveryNIteration(int val) Sets thespawnParticlesEveryNIterationand 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 useEyePos) 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.
-
Field Details
-
halfSphere
public boolean halfSphereShould it display as an half sphere? -
invertHalfSphere
public boolean invertHalfSphereIf it is an half sphere, should it be inverted the other way around? Like upside down
-
-
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
-
useEyePosAsOrigin
Sets theuseEyePosAsOriginand returns a reference to this Builder enabling method chaining.- Parameters:
useEyePos- 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
-
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
-
radius
Sets theradiusand returns a reference to this Builder enabling method chaining.- Parameters:
radius- theradiusto 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
-
radiusIncrease
Sets theradiusIncreaseand returns a reference to this Builder enabling method chaining.- Parameters:
radiusIncrease- theradiusIncreaseto set- Returns:
- a reference to this Builder
-
particleIncrease
Sets theparticleIncreaseand returns a reference to this Builder enabling method chaining.- Parameters:
particleIncrease- theparticleIncreaseto set- Returns:
- a reference to this Builder
-
halfSphere
Sets thehalfSphereand returns a reference to this Builder enabling method chaining.- Parameters:
halfSphere- thehalfSphereto set- Returns:
- a reference to this Builder
-
invertHalfSphere
Sets theinvertHalfSphereand returns a reference to this Builder enabling method chaining.- Parameters:
invertHalfSphere- theinvertHalfSphereto set- Returns:
- a reference to this Builder
-
build
Returns aSphereEffectbuilt from the parameters previously set.- Returns:
- a
SphereEffectbuilt with parameters of thisSphereEffect.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
-
forced
Sets theforcedand returns a reference to this Builder enabling method chaining.- Parameters:
forced- theforcedto set- Returns:
- a reference to this Builder
-