Interface AmbientParticle
- All Superinterfaces:
Wrapper
A wrapper for ambient particles in a biome, including their type, probability, and optional data.
- Since:
- 1.1.0
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classBuilder for creating AmbientParticle instances.Nested classes/interfaces inherited from interface Wrapper
Wrapper.Context<C> -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic AmbientParticle.Builderbuilder()Creates a new AmbientParticle builder.static AmbientParticleof(ParticleTypes ambientParticle, float probability) Creates a new AmbientParticle instance with no particle data.static AmbientParticleof(ParticleTypes ambientParticle, float probability, @Nullable ParticleData particleData) Creates a new AmbientParticle instance.Gets the particle data.default ParticleOptionsDelegates the wrapped ambient particle to a Minecraft ParticleOptions.floatGets the probability of this particle being spawned.default AmbientParticle.BuilderConverts this AmbientParticle to a Builder instance.type()Gets the particle type.Methods inherited from interface Wrapper
asHandle, toMinecraft
-
Field Details
-
WIRE
-
-
Method Details
-
type
-
probability
Gets the probability of this particle being spawned.- Returns:
- the probability of this particle being spawned
- Since:
- 1.1.0
-
particleData
Gets the particle data.- Returns:
- the particle data, or null if
type()is simple - Since:
- 1.1.0
-
particleOptions
Delegates the wrapped ambient particle to a Minecraft ParticleOptions.- Returns:
- The corresponding Minecraft ParticleOptions.
- Since:
- 1.1.0
-
toBuilder
Converts this AmbientParticle to a Builder instance.- Returns:
- a new Builder instance with the same properties as this instance
- Since:
- 3.0.0
-
of
@AsOf("3.0.0") static AmbientParticle of(ParticleTypes ambientParticle, float probability, @Nullable ParticleData particleData) Creates a new AmbientParticle instance.- Parameters:
ambientParticle- The particle type.probability- The probability of the particle.particleData- The particle data, or null if the particle is simple.- Returns:
- A new AmbientParticle instance.
- Since:
- 3.0.0
-
of
Creates a new AmbientParticle instance with no particle data.- Parameters:
ambientParticle- The particle type.probability- The probability of the particle.- Returns:
- A new AmbientParticle instance with no particle data.
- Since:
- 3.0.0
-
builder
Creates a new AmbientParticle builder.- Returns:
- A new AmbientParticle builder.
- Since:
- 3.0.0
-