Interface ItemProvider

All Superinterfaces:
Cloneable, Supplier<org.bukkit.inventory.ItemStack>
All Known Implementing Classes:
ItemBuilder, ItemWrapper, PotionBuilder, SkullBuilder

public interface ItemProvider extends Supplier<org.bukkit.inventory.ItemStack>, Cloneable
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final ItemProvider
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.bukkit.inventory.ItemStack
    get()
    Builds the ItemStack
    org.bukkit.inventory.ItemStack
    getFor(@NotNull UUID playerUUID)
    Gets the ItemStack for a specific player.
  • Field Details

  • Method Details

    • get

      org.bukkit.inventory.ItemStack get()
      Builds the ItemStack
      Specified by:
      get in interface Supplier<org.bukkit.inventory.ItemStack>
      Returns:
      The ItemStack
    • getFor

      org.bukkit.inventory.ItemStack getFor(@NotNull @NotNull UUID playerUUID)
      Gets the ItemStack for a specific player. This is the method called by BaseWindow which gives you the option to (for example) create a subclass of ItemProvider that automatically translates the item's name into the player's language.
      Parameters:
      playerUUID - The UUID of the Player for whom this ItemStack should be made.
      Returns:
      The ItemStack