Interface ParticleType

    • Method Detail

      • defaultOption

        default <V> java.util.Optional<V> defaultOption​(java.util.function.Supplier<? extends ParticleOption<V>> option)
        Gets the default value for the specified ParticleOption, it may return Optional.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

        <V> java.util.Optional<V> defaultOption​(ParticleOption<V> option)
        Gets the default value for the specified ParticleOption, it may return Optional.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

        java.util.Map<ParticleOption<?>,​java.lang.Object> defaultOptions()
        Gets a immutable Map with all the available ParticleOptions and their values. When a option isn't available inside this Map it's most likely not supported by this particle type.
        Returns:
        The default options