Class AmbientParticle.Builder
java.lang.Object
dev.wyck.wrapper.environment.particle.AmbientParticle.Builder
- Enclosing interface:
AmbientParticle
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the AmbientParticle instance.data(ParticleData data) Sets the particle data.probability(float probability) Sets the probability of the particle.type(ParticleTypes type) Sets the particle type.
-
Constructor Details
-
Builder
public Builder() -
Builder
-
-
Method Details
-
type
Sets the particle type.- Parameters:
type- The particle type.- Returns:
- This builder instance.
- Since:
- 3.0.0
-
probability
Sets the probability of the particle.- Parameters:
probability- The probability of the particle.- Returns:
- This builder instance.
- Since:
- 3.0.0
-
data
Sets the particle data.- Parameters:
data- The particle data.- Returns:
- This builder instance.
- Since:
- 3.0.0
-
build
Builds the AmbientParticle instance.- Returns:
- The built AmbientParticle instance.
- Since:
- 3.0.0
-