Builder

A builder for ambient particle settings.

Note: Attempting to call Builder.build on this without setting the particle type will throw an IllegalStateException.

Functions

Link copied to clipboard
@Contract(value = "-> new", pure = true)
@NotNull
abstract fun build(): @NotNull AmbientParticleSettings
Link copied to clipboard
@Contract(value = "_ -> this", mutates = "this")
abstract fun data(data: ParticleData?): AmbientParticleSettings.Builder

Sets the particle data for the ambient particle settings to the given data.

Link copied to clipboard
@Contract(value = "_, _ -> this", mutates = "this")
open fun particle(type: ParticleType, data: ParticleData?): AmbientParticleSettings.Builder

Sets the particle type and data for the ambient particle settings to the given type and data.

Link copied to clipboard
@Contract(value = "_ -> this", mutates = "this")
abstract fun probability(probability: Float): AmbientParticleSettings.Builder

Sets the probability for the ambient particle settings to the given probability.

Link copied to clipboard
@Contract(value = "_ -> this", mutates = "this")
abstract fun type(type: ParticleType): AmbientParticleSettings.Builder

Sets the type of the particle for the ambient particle settings to the given type.