Interface KeyedItemProvider

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 KeyedItemProvider
Function to get a custom item from a key.
  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable org.bukkit.inventory.ItemStack
    Gets a custom item from a key.
  • Method Details

    • getItem

      @Nullable @Nullable org.bukkit.inventory.ItemStack getItem(String key)
      Gets a custom item from a key.
      Parameters:
      key - the key used in the menu file
      Returns:
      the item stack