Interface Canvas.ItemDecorator

All Known Implementing Classes:
Canvas.AvoidEdgesDecorator, Canvas.EdgeDecorator, Canvas.FullDecorator
Enclosing class:
Canvas
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 static interface Canvas.ItemDecorator
Represents a decorator that puts "free" items in the inventory. Free items can be interpreted as items that are not associated with any button. This is useful, for example, to put a border around the inventory - We do not want to create objects for each item in the border. Instead, we can use this light-weight decorator.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    handle(@NotNull Canvas canvas, @NotNull org.bukkit.inventory.Inventory inventory)
    Decorates the inventory.
  • Method Details

    • handle

      void handle(@NotNull @NotNull Canvas canvas, @NotNull @NotNull org.bukkit.inventory.Inventory inventory)
      Decorates the inventory.
      Parameters:
      canvas - The canvas associated with the inventory.
      inventory - The inventory to decorate.