public static interface ParticleEffect.Builder extends DataBuilder<ParticleEffect>
ParticleEffect
.Modifier and Type | Method and Description |
---|---|
ParticleEffect |
build()
Builds an instance of a ParticleEffect.
|
ParticleEffect.Builder |
from(ParticleEffect particleEffect)
Resets this builder to the values of the given built object.
|
default ParticleEffect.Builder |
offset(com.flowpowered.math.vector.Vector3d offset)
Sets the offset of the particle effect.
|
<V> ParticleEffect.Builder |
option(ParticleOption<V> option,
V value)
Sets the value of the specified
ParticleOption . |
default ParticleEffect.Builder |
quantity(int quantity)
Sets the amount of particles of the particle effect.
|
ParticleEffect.Builder |
reset()
Resets this builder to a "default" state such that there is no
remaining data to set.
|
ParticleEffect.Builder |
type(ParticleType particleType)
Sets the particle type for the particle effect.
|
default ParticleEffect.Builder |
velocity(com.flowpowered.math.vector.Vector3d velocity)
Sets the velocity of the particle effect.
|
build
ParticleEffect.Builder from(ParticleEffect particleEffect)
ResettableBuilder
from
in interface DataBuilder<ParticleEffect>
from
in interface ResettableBuilder<ParticleEffect,DataBuilder<ParticleEffect>>
particleEffect
- The built objectParticleEffect.Builder reset()
ResettableBuilder
reset
in interface DataBuilder<ParticleEffect>
reset
in interface ResettableBuilder<ParticleEffect,DataBuilder<ParticleEffect>>
ParticleEffect.Builder type(ParticleType particleType)
particleType
- The particle type<V> ParticleEffect.Builder option(ParticleOption<V> option, V value) throws IllegalArgumentException
ParticleOption
.option
- The optionvalue
- The valueIllegalArgumentException
- If the specified value isn't validdefault ParticleEffect.Builder velocity(com.flowpowered.math.vector.Vector3d velocity)
The default velocity is Vector3d.ZERO
.
velocity
- The velocitydefault ParticleEffect.Builder offset(com.flowpowered.math.vector.Vector3d offset)
The default offset is Vector3d.ZERO
.
offset
- The offsetdefault ParticleEffect.Builder quantity(int quantity) throws IllegalArgumentException
The default quantity is 1.
quantity
- The quantity particlesIllegalArgumentException
- If the quantity is less than oneParticleEffect build()