Package dev.crafty.core.gui.suppliers
Class MappedItemSupplier
java.lang.Object
dev.crafty.core.gui.ItemSupplier
dev.crafty.core.gui.suppliers.MappedItemSupplier
Supplies GUI items dynamically based on mapped data and a template.
Example Config:
type: MAPPED
mapper:
source: "get_all_player_items"
icon-template:
material: PLAYER_HEAD
name: "{item_name}"
lore: ["Owned item"]
skull-owner: "{item_owner}"
actions:
- "execute_function:handle_paginated_click"
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGuiItem[]
apply
(org.bukkit.inventory.ItemStack[] slotsToApplyTo, SectionWrapper itemSection, Menu menu) Methods inherited from class dev.crafty.core.gui.ItemSupplier
applyToAll, getActions, toArray, toArray
-
Constructor Details
-
MappedItemSupplier
public MappedItemSupplier()
-
-
Method Details
-
apply
public GuiItem[] apply(org.bukkit.inventory.ItemStack[] slotsToApplyTo, SectionWrapper itemSection, Menu menu) - Specified by:
apply
in classItemSupplier
-