Class IngredientPreview

java.lang.Object
ke.ric.api.item.IngredientPreview

public final class IngredientPreview extends Object
Cosmetic ingredient icons. Identity, provenance, food and consume effects are never copied.
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.bukkit.inventory.ItemStack
    copy(org.bukkit.inventory.ItemStack source)
     
    static org.bukkit.inventory.ItemStack
    copy(org.bukkit.inventory.ItemStack source, Function<org.bukkit.Material, org.bukkit.inventory.ItemStack> emptyItem)
    The factory must supply a fresh, empty stack for the requested material.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • copy

      public static org.bukkit.inventory.ItemStack copy(org.bukkit.inventory.ItemStack source)
    • copy

      public static org.bukkit.inventory.ItemStack copy(org.bukkit.inventory.ItemStack source, Function<org.bukkit.Material, org.bukkit.inventory.ItemStack> emptyItem)
      The factory must supply a fresh, empty stack for the requested material.