Interface ParticleType
- All Superinterfaces:
DefaultedRegistryValue
Represents a particle that can be sent on a Minecraft client.
-
Method Summary
Modifier and TypeMethodDescriptiondefault <V> Optional<V>defaultOption(Supplier<? extends ParticleOption<V>> option) Gets the default value for the specifiedParticleOption, it may returnOptional.empty()if the particle option isn't supported by this particle type.<V> Optional<V>defaultOption(ParticleOption<V> option) Gets the default value for the specifiedParticleOption, it may returnOptional.empty()if the particle option isn't supported by this particle type.Map<ParticleOption<?>,Object> Gets a immutableMapwith all the availableParticleOptions and their values.Methods inherited from interface org.spongepowered.api.registry.DefaultedRegistryValue
asDefaultedReference, findKey, key
-
Method Details
-
defaultOption
Gets the default value for the specifiedParticleOption, it may returnOptional.empty()if the particle option isn't supported by this particle type.- Type Parameters:
V- The value type- Parameters:
option- The particle option- Returns:
- The option value if present, otherwise
Optional.empty()
-
defaultOption
Gets the default value for the specifiedParticleOption, it may returnOptional.empty()if the particle option isn't supported by this particle type.- Type Parameters:
V- The value type- Parameters:
option- The particle option- Returns:
- The option value if present, otherwise
Optional.empty()
-
defaultOptions
Map<ParticleOption<?>,Object> defaultOptions()Gets a immutableMapwith all the availableParticleOptions and their values. When a option isn't available inside thisMapit's most likely not supported by this particle type.- Returns:
- The default options
-