public interface ParticleEffect extends DataSerializable
| Modifier and Type | Interface and Description |
|---|---|
static interface |
ParticleEffect.Builder
Represents a builder to create a
ParticleEffect. |
| Modifier and Type | Method and Description |
|---|---|
static ParticleEffect.Builder |
builder()
Creates a new
ParticleEffect.Builder to build a ParticleEffect. |
<V> Optional<V> |
getOption(ParticleOption<V> option)
Gets the value for the specified
ParticleOption. |
default <V> Optional<V> |
getOptionOrDefault(ParticleOption<V> option)
Gets the value for the specified
ParticleOption or
the default value if not present. |
Map<ParticleOption<?>,Object> |
getOptions()
Gets a immutable
Map with all the available
ParticleOptions and their values. |
ParticleType |
getType()
Gets the type of the particle effect.
|
getContentVersion, toContainerstatic ParticleEffect.Builder builder()
ParticleEffect.Builder to build a ParticleEffect.ParticleType getType()
<V> Optional<V> getOption(ParticleOption<V> option)
ParticleOption.V - The value typeoption - The particle optionOptional.empty()default <V> Optional<V> getOptionOrDefault(ParticleOption<V> option)
ParticleOption or
the default value if not present.V - The value typeoption - The particle optionOptional.empty()Map<ParticleOption<?>,Object> getOptions()
Map with all the available
ParticleOptions and their values.