Interface ParticleEffect.Builder
- All Superinterfaces:
- AbstractBuilder<ParticleEffect>,- Builder<ParticleEffect,,- ParticleEffect.Builder> - CopyableBuilder<ParticleEffect,,- ParticleEffect.Builder> - DataBuilder<ParticleEffect>,- ResettableBuilder<ParticleEffect,- ParticleEffect.Builder> 
- Enclosing interface:
- ParticleEffect
public static interface ParticleEffect.Builder
extends Builder<ParticleEffect,ParticleEffect.Builder>, CopyableBuilder<ParticleEffect,ParticleEffect.Builder>, DataBuilder<ParticleEffect>  
Represents a builder to create a 
ParticleEffect.- 
Method SummaryModifier and TypeMethodDescriptionbuild()Builds an instance of a ParticleEffect.default ParticleEffect.BuilderSets the offset of the particle effect.default <V> ParticleEffect.Builderoption(Supplier<? extends ParticleOption<V>> option, V value) Sets the value of the specifiedParticleOption.option(ParticleOption<V> option, V value) Sets the value of the specifiedParticleOption.default ParticleEffect.Builderquantity(int quantity) Sets the amount of particles of the particle effect.default <V> ParticleEffect.BuilderSets the scale of the particle effect.default ParticleEffect.Buildertype(Supplier<? extends ParticleType> particleType) Sets the particle type for the particle effect.type(ParticleType particleType) Sets the particle type for the particle effect.default ParticleEffect.BuilderSets the velocity of the particle effect.Methods inherited from interface org.spongepowered.api.util.CopyableBuilderfromMethods inherited from interface org.spongepowered.api.data.persistence.DataBuilderbuild
- 
Method Details- 
typeSets the particle type for the particle effect.- Parameters:
- particleType- The particle type
- Returns:
- This builder for chaining
 
- 
typeSets the particle type for the particle effect.- Parameters:
- particleType- The particle type
- Returns:
- This builder for chaining
 
- 
option<V> ParticleEffect.Builder option(ParticleOption<V> option, V value) throws IllegalArgumentException Sets the value of the specifiedParticleOption.- Type Parameters:
- V- The type of option value
- Parameters:
- option- The option
- value- The value
- Returns:
- This builder for chaining
- Throws:
- IllegalArgumentException- If the specified value isn't valid
 
- 
optiondefault <V> ParticleEffect.Builder option(Supplier<? extends ParticleOption<V>> option, V value) throws IllegalArgumentException Sets the value of the specifiedParticleOption.- Type Parameters:
- V- The type of option value
- Parameters:
- option- The option
- value- The value
- Returns:
- This builder for chaining
- Throws:
- IllegalArgumentException- If the specified value isn't valid
 
- 
scaleSets the scale of the particle effect.The default scale is 1. - Parameters:
- scale- The scale
- Returns:
- This builder for chaining
 
- 
velocitySets the velocity of the particle effect.The default velocity is Vector3d.ZERO.- Parameters:
- velocity- The velocity
- Returns:
- This builder for chaining
 
- 
offsetSets the offset of the particle effect.The default offset is Vector3d.ZERO.- Parameters:
- offset- The offset
- Returns:
- This builder for chaining
 
- 
quantitySets the amount of particles of the particle effect.The default quantity is 1. - Parameters:
- quantity- The quantity particles
- Returns:
- This builder, for chaining
- Throws:
- IllegalArgumentException- If the quantity is less than one
 
- 
buildParticleEffect build()Builds an instance of a ParticleEffect.- Specified by:
- buildin interface- AbstractBuilder<ParticleEffect>
- Returns:
- A new instance of a ParticleEffect
 
 
-