Interface ItemModifier

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 ItemModifier
  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable org.bukkit.inventory.ItemStack
    Modifies an item before it is displayed.
  • Method Details

    • modify

      @Nullable @Nullable org.bukkit.inventory.ItemStack modify(ItemInfo info)
      Modifies an item before it is displayed. The original item can be accessed with ItemInfo.item().
      Parameters:
      info - the ItemInfo context object
      Returns:
      the modified item, or null if the item should not be displayed