Class VortexEffect.Builder
java.lang.Object
me.emafire003.dev.particleanimationlib.effects.VortexEffect.Builder
- Enclosing class:
- VortexEffect
VortexEffect builder static inner class.-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanInverts the direction of the effect, making the particles appear from the max radius and end at the origin -
Method Summary
Modifier and TypeMethodDescriptionbuild()Returns aVortexEffectbuilt from the parameters previously set.circles(int circles) Sets thecirclesand 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.flipped(boolean flipped) Sets theflippedand returns a reference to this Builder enabling method chaining.helixes(int helixes) Sets thehelixesand returns a reference to this Builder enabling method chaining.inverted(boolean inverted) Sets theinvertedand returns a reference to this Builder enabling method chaining.iterations(int iterations) Sets theiterationsand returns a reference to this Builder enabling method chaining.lengthGrow(float lengthGrow) Sets thelengthGrowand 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.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.radials(double radials) Sets theradialsand returns a reference to this Builder enabling method chaining.radius(float radius) Sets theradiusand returns a reference to this Builder enabling method chaining.radiusGrow(float radiusGrow) Sets theradiusGrowand returns a reference to this Builder enabling method chaining.shouldUpdateYPR(boolean shouldUpdateYPR) Sets theshouldUpdateYPRand returns a reference to this Builder enabling method chaining.startRange(float startRange) Sets thestartRangeand 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.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.
-
Field Details
-
inverted
public boolean invertedInverts the direction of the effect, making the particles appear from the max radius and end at the origin
-
-
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
-
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
-
useEyePosAsOrigin
Sets theuseEyePosAsOriginand returns a reference to this Builder enabling method chaining.- Parameters:
useEyePos- theuseEyePosAsOriginto 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
-
radiusGrow
Sets theradiusGrowand returns a reference to this Builder enabling method chaining.- Parameters:
radiusGrow- theradiusGrowto set- Returns:
- a reference to this Builder
-
startRange
Sets thestartRangeand returns a reference to this Builder enabling method chaining.- Parameters:
startRange- thestartRangeto set- Returns:
- a reference to this Builder
-
lengthGrow
Sets thelengthGrowand returns a reference to this Builder enabling method chaining.- Parameters:
lengthGrow- thelengthGrowto set- Returns:
- a reference to this Builder
-
radials
Sets theradialsand returns a reference to this Builder enabling method chaining.- Parameters:
radials- theradialsto set- Returns:
- a reference to this Builder
-
circles
Sets thecirclesand returns a reference to this Builder enabling method chaining.- Parameters:
circles- thecirclesto set- Returns:
- a reference to this Builder
-
helixes
Sets thehelixesand returns a reference to this Builder enabling method chaining.- Parameters:
helixes- thehelixesto set- Returns:
- a reference to this Builder
-
flipped
Sets theflippedand returns a reference to this Builder enabling method chaining.- Parameters:
flipped- theinvertedto set- Returns:
- a reference to this Builder
-
inverted
Sets theinvertedand returns a reference to this Builder enabling method chaining.- Parameters:
inverted- theinvertedto 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 aVortexEffectbuilt from the parameters previously set.- Returns:
- a
VortexEffectbuilt with parameters of thisVortexEffect.Builder
-