Package net.citizensnpcs.trait
Class ShopTrait.NPCShopItemEditor
java.lang.Object
net.citizensnpcs.api.gui.InventoryMenuPage
net.citizensnpcs.trait.ShopTrait.NPCShopItemEditor
- All Implemented Interfaces:
Runnable
- Enclosing class:
ShopTrait
-
Constructor Summary
ConstructorDescriptionNPCShopItemEditor
(ShopTrait.NPCShopItem item, Consumer<ShopTrait.NPCShopItem> consumer) -
Method Summary
Modifier and TypeMethodDescriptionvoid
initialise
(MenuContext ctx) void
onCancel
(InventoryMenuSlot slot, CitizensInventoryClickEvent event) void
onClose
(HumanEntity who) void
void
onEditName
(InventoryMenuSlot slot, CitizensInventoryClickEvent event) void
void
onRemove
(InventoryMenuSlot slot, CitizensInventoryClickEvent event) void
onSave
(InventoryMenuSlot slot, CitizensInventoryClickEvent event) Methods inherited from class net.citizensnpcs.api.gui.InventoryMenuPage
createInventory, onClick, run
-
Constructor Details
-
NPCShopItemEditor
-
-
Method Details
-
initialise
- Specified by:
initialise
in classInventoryMenuPage
-
onCancel
-
onClose
- Overrides:
onClose
in classInventoryMenuPage
-
onEditDescription
-
onEditName
-
onModifyDisplayItem
-
onRemove
-
onSave
-