Interface ItemProvider

All Known Implementing Classes:
ItemStackBuilder, ReactiveItemProvider, StillItemProvider
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ItemProvider
A functional interface that is used to represent items within Flare.
Can be used as:
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable org.bukkit.inventory.ItemStack
    Provides an item stack.
    static <V> @NotNull ReactiveItemProvider<V>
    reactive(@NotNull org.apache.commons.lang3.concurrent.Computable<@Nullable V,@Nullable org.bukkit.inventory.ItemStack> provider)
    Constructs a reactive item provider that returns a stack based on provider.
    static <V> @NotNull ReactiveItemProvider<V>
    reactiveBuild(@NotNull org.apache.commons.lang3.concurrent.Computable<@Nullable V,@NotNull ItemStackBuilder> provider)
    Constructs a reactive item provider that returns a stack based on provider.
    static @NotNull ItemProvider
    still(@NotNull ItemStackBuilder builder)
    Constructs a static item provider that returns the same stack all the time.
    static @NotNull ItemProvider
    still(@Nullable org.bukkit.inventory.ItemStack stack)
    Constructs a static item provider that returns the same stack all the time.