Class ItemSupplier

java.lang.Object
dev.crafty.core.gui.ItemSupplier
Direct Known Subclasses:
ConditionalItemSupplier, DynamicItemSupplier, MappedItemSupplier, PaginatedMappedItemSupplier, StaticItemSupplier

public abstract class ItemSupplier extends Object
  • Constructor Details

    • ItemSupplier

      public ItemSupplier(ItemType type)
  • Method Details

    • apply

      public abstract GuiItem[] apply(org.bukkit.inventory.ItemStack[] slotsToApplyTo, SectionWrapper itemSection, Menu menu)
    • applyToAll

      protected void applyToAll(org.bukkit.inventory.ItemStack[] slotsToApplyTo, org.bukkit.inventory.ItemStack itemStack)
    • toArray

      protected GuiItem[] toArray(GuiItem... items)
    • toArray

      protected GuiItem[] toArray(GuiItem item, int times)
    • getActions

      protected List<Consumer<org.bukkit.event.inventory.InventoryClickEvent>> getActions(SectionWrapper section, Menu menu)