Interface HeadToItemstackMapper


public interface HeadToItemstackMapper
  • Method Summary

    Modifier and Type
    Method
    Description
    org.bukkit.inventory.ItemStack
    Get an ItemStack, based on the provided Head.
    org.bukkit.inventory.ItemStack
    getItemStack(Head head, int quantity)
    Get an ItemStack, based on the provided Head.
    List<org.bukkit.inventory.ItemStack>
    Get a list of ItemStacks, based on the provided list of Heads.
    List<org.bukkit.inventory.ItemStack>
    getItemStacks(List<Head> heads, int quantity)
    Get a list of ItemStacks, based on the provided list of Heads.
  • Method Details

    • getItemStacks

      List<org.bukkit.inventory.ItemStack> getItemStacks(List<Head> heads)
      Get a list of ItemStacks, based on the provided list of Heads. The number of items per stack is set to 1.
      Parameters:
      heads - the list of heads
      Returns:
      the list of itemstacks
    • getItemStacks

      List<org.bukkit.inventory.ItemStack> getItemStacks(List<Head> heads, int quantity)
      Get a list of ItemStacks, based on the provided list of Heads.
      Parameters:
      heads - the list of heads
      quantity - the number of items per stack
      Returns:
      the list of itemstacks
    • getItemStack

      org.bukkit.inventory.ItemStack getItemStack(Head head)
      Get an ItemStack, based on the provided Head. The number of items per stack is set to 1.
      Parameters:
      head - the head
      Returns:
      the itemstack
    • getItemStack

      org.bukkit.inventory.ItemStack getItemStack(Head head, int quantity)
      Get an ItemStack, based on the provided Head.
      Parameters:
      head - the head
      quantity - the number of items per stack
      Returns:
      the itemstack