Class AnimatedBallEffect.Builder
java.lang.Object
me.emafire003.dev.particleanimationlib.effects.AnimatedBallEffect.Builder
- Enclosing class:
- AnimatedBallEffect
AnimatedBallEffect builder static inner class.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Returns aAnimatedBallEffectbuilt from the parameters previously set.entityOrigin(net.minecraft.entity.Entity entityOrigin) Sets theentityOriginand returns a reference to this Builder enabling method chaining.factor(net.minecraft.util.math.Vec3d factor) Sets thefactorand returns a reference to this Builder enabling method chaining.iterations(int iterations) Sets theiterationsand 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.particles(int particles) Sets theparticlesand returns a reference to this Builder enabling method chaining.particlesPerIteration(int particlesPerIteration) Sets theparticlesPerIterationand 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.size(float size) Sets thesizeand 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.
-
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
-
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
-
particles
Sets theparticlesand returns a reference to this Builder enabling method chaining.- Parameters:
particles- theparticlesto set- Returns:
- a reference to this Builder
-
particlesPerIteration
Sets theparticlesPerIterationand returns a reference to this Builder enabling method chaining.- Parameters:
particlesPerIteration- theparticlesPerIterationto set- Returns:
- a reference to this Builder
-
size
Sets thesizeand returns a reference to this Builder enabling method chaining.- Parameters:
size- thesizeto set- Returns:
- a reference to this Builder
-
factor
Sets thefactorand returns a reference to this Builder enabling method chaining.- Parameters:
factor- A Vec3d representing the xyz factors (aka xyz "strech" values) of the effect- Returns:
- a reference to this Builder
-
rotation
Sets therotationand returns a reference to this Builder enabling method chaining.- Parameters:
rotation- A Vec3d representing the xyz rotations to set to the effect- Returns:
- a reference to this Builder
-
build
Returns aAnimatedBallEffectbuilt from the parameters previously set.- Returns:
- a
AnimatedBallEffectbuilt with parameters of thisAnimatedBallEffect.Builder
-